everyvote / everyvote_mini

Election information app for university student governments and other organizations
www.everyvote.org
1 stars 0 forks source link

include constituency selector in Run for Office (create candidate) form #26

Closed mitchdowney closed 11 years ago

mitchdowney commented 11 years ago

Currently the Run for Office form looks like this:

image

Currently the election pull-down shows the name of every election in the database, which is a problem. Instead, we need to setup the Run for Office form so the user can select a constituency, THEN select from an election within that constituency.

So in other words, we need 2 dynamic drop-down menus on this form. A constituency selector, and then an election selector populated only with the elections from the selected constituency.

scvnc commented 11 years ago

I'll have to see how it's set up right now to really know if this is worthwhile.

I think simply changing the title of the page to "Run for Office in XYZ student association" would make the intent clear. The user already selected a constituency by pressing "run for office" on the constituency info screen.

mitchdowney commented 11 years ago

Right now the Run for Office button appears on each page (whether an election is viewed or not), and I don't think information about the constituency is being passed to the Run for Office (create_candidate) form, because ALL elections (regardless of constituency) are available as options in the Election dropdown.

A solution as you explain it would work well though, if we can only show the Run for Office button when a user is viewing an election_detail page, and then automatically set the Election field to the election the user had open when they clicked the Run for Office button.

mitchdowney commented 11 years ago

going to sidestep and shelve this issue for now