cluster configuration for new machine
[selectricity-live] / app / views / election / edit_voters.rhtml
1 <div id="title-header">
2   <span class="header">Edit Voter List</span>
3   <span class="subheader"></span>
4 </div>
5
6 <p id="unauth_notice" <%= 'style="display: none;"' if @election.authenticated %>>Anyone will be able to
7 vote in this election.</p>
8
9 <div id="voter_info_box" <%= 'style="display: none;"' unless @election.authenticated %>>
10 <%= render :partial => 'voter_list' %>
11
12 <% form_tag (:action => 'edit_voters', :id => @election.id) do %>
13 <%= render :partial => 'voters_form' %>
14 <% end %>
15 </div>
16
17 <%= check_box :election, :authenticated %> Only allow registered voters 
18
19 <%= observe_field "election_authenticated",
20       :url => { :action => 'toggle_authenticated', :id => @election.id },
21       :complete => 'Element.toggle($("voter_info_box")); Element.toggle($("unauth_notice"));',
22       :with => 'authenticated' %>
23
24 <script type="text/javascript">
25 </script>
26
27 <div class="normal-header">
28   <span class="header">Continue</span>
29   <span class="subheader"></span>
30 </div>
31
32 <p>When you are done entering voters, please click the button below
33 to proceed to the next step.</p>
34
35 <%= button_to 'Proceed to Next Step!', :action => 'show', :id => @election.id %>

Benjamin Mako Hill || Want to submit a patch?