X-Git-Url: https://projects.mako.cc/source/selectricity-live/blobdiff_plain/c65b1e11059c5cf510b54c785d4a246215058f70..83a39529b634c0344a7884d5813e3f7e1a7dbcb4:/app/views/election/edit_voters.rhtml diff --git a/app/views/election/edit_voters.rhtml b/app/views/election/edit_voters.rhtml index 429a907..770c5ec 100644 --- a/app/views/election/edit_voters.rhtml +++ b/app/views/election/edit_voters.rhtml @@ -1,10 +1,51 @@ -<% @edit = true %> -

Edit Voter List

+
+ Edit Voter List + +
+<% if @election.active == 0 %> + +

> +<% if @election.kiosk? %> + Because you have enabled kiosk mode, there will be no registration of voters. +<% end %> +Anyone will be able to vote in this election.

+ +
> <%= render :partial => 'voter_list' %> -<%= form_tag :action => 'edit_voters', :id => @election.id %> +<% form_tag (:action => 'edit_voters', :id => @election.id) do %> <%= render :partial => 'voters_form' %> -<%= end_form_tag %> +<% end %> +
+ +<% unless @election.kiosk? %> + <%= check_box :election, :authenticated %> Only allow registered voters +<% end %> + +<%= observe_field "election_authenticated", + :url => { :action => 'toggle_authenticated', :id => @election.id }, + :complete => 'Element.toggle($("voter_info_box")); Element.toggle($("unauth_notice"));', + :with => 'authenticated' %> + + + +
+ Continue + +
+ +

When you are done entering voters, please click the button below +to proceed to the next step.

+ +<%= button_to 'Proceed to Next Step', :action => 'show', :id => @election.id %> + +<% else %> + +

You can not edit the list of voters once the election has begun. +please return to the <%= link_to "election overview page", :action => +'show', :id => @election.id %>.

+ +<% end %> -<%= button_to 'Done!', :action => 'show', :id => @election.id %>