X-Git-Url: https://projects.mako.cc/source/selectricity/blobdiff_plain/c35eb01007440d21ded1ec10e56406108fe44294..ad088c1324d08a65f6f5336bedf7a88a8a8950e7:/app/views/election/edit_voters.rhtml
diff --git a/app/views/election/edit_voters.rhtml b/app/views/election/edit_voters.rhtml
index 8819b95..77093fe 100644
--- a/app/views/election/edit_voters.rhtml
+++ b/app/views/election/edit_voters.rhtml
@@ -3,11 +3,26 @@
+
>Anyone will be able to
+vote in this election.
+
+>
<%= render :partial => 'voter_list' %>
<% form_tag (:action => 'edit_voters', :id => @election.id) do %>
<%= render :partial => 'voters_form' %>
<% end %>
+
+
+<%= check_box :election, :authenticated %> Only allow registered voters
+
+<%= observe_field "election_authenticated",
+ :url => { :action => 'toggle_authenticated', :id => @election.id },
+ :complete => 'Element.toggle($("voter_info_box")); Element.toggle($("unauth_notice"));',
+ :with => 'authenticated' %>
+
+