MAPC / bostonparks

REPOSITORY MOVED TO https://github.com/codeforboston/bostongreenmap
bostongreenmap.org
BSD 3-Clause "New" or "Revised" License
2 stars 2 forks source link

link activities and neighborhood dropdown menus #9

Closed cspanring closed 12 years ago

cspanring commented 12 years ago

only show activities that are available in neighborhoods and vice versa, whenever the two dropdowns appear together.

tyrelsouza commented 12 years ago

Does this mean on the homepage, show only two dropdowns

Neighborhoods in find a greenspace,

Activities in Play

When either are selected, update the ui by adding another dropdown box to show the correlated Neighborhood -> activities, or Activities -> Neighborhood?

cspanring commented 12 years ago

On the homepage there are neighborhood and activities in the play section (I just realized that #15 is a duplicate that I added, should be merged).

see for example the school district and school dropdown here: http://greenstreets.mapc.org/studentform/ only schools that are within the school district appear.

the basic idea is: we shouldn't list an activity that's not available in a neighborhood and shouldn't list neighborhoods that don't have the selected activity. those combination lead to an empty search results page and I think we can avoid this by catching non-existent combination before a user can select them.

tyrelsouza commented 12 years ago

If you check the latest changes I made to home.html, this should be happening.

https://github.com/MAPC/bostonparks/commit/9f796ac194160f3f84a75ea34633a0a22b5cee2e

Is where I have this, it seems to have disappeared though. I will try to get this back and showing.

tyrelsouza commented 12 years ago

This has been pushed, please let me know if this behavior is the way you anticipate by pulling latest changes for parkmap/templates/parkmap/home.html

cspanring commented 12 years ago

Thanks, that's exactly what I meant.