merged in licensing changes (we'll have to undo this eventually)
[selectricity] / app / views / election / _overview_form.rhtml
index 8efa1b3769651142c5455f41c7516be1c8618d81..be90de6593f3944d0c87accd0dff4e792f6dec2a 100644 (file)
@@ -2,14 +2,14 @@
 
 <!--[form:election]-->
 <p><label for="election_name">Title</label><br/>
-<%= text_field 'election', 'name', :size => 60 %></p>
+<%= text_field :election, :name, :size => 60 %></p>
 
 <p><label for="election_description">Description</label><br/>
-<%= text_area 'election', 'description', :rows => 5, :cols => 60 %></p>
+<%= text_area :election, :description, :rows => 5, :cols => 60 %></p>
 
 <!--
 <p><label for="election_anonymous">Anonymous Vote</label>
-<%= check_box 'election', 'anonymous', {}, 1, 0  %></p>
+<%= check_box :election, :anonymous, {}, 1, 0  %></p>
 
 <p>Election/Voting Start Date<br />
 <%= datetime_select :election, :startdate %></p>
 <% type_hash = {}; ELECTION_TYPES.each {|k,v| type_hash[v] = k} %>
 <%= select_tag 'election[election_method]', options_for_select(type_hash, @election.election_method) %></p>
 
+<p><label for="election_election_method">Enable Embeddable Elections?</label>
+<%= check_box :election, :embeddable %></p>
+
+<p><label for="election_election_method">Should results be visible before end of election?</label>
+<%= check_box :election, :early_results%></p>
+
 <!--[eoform:election]-->
 

Benjamin Mako Hill || Want to submit a patch?