-<% -%>
-<h1>Create QuickVote</h1>
+<div id="page-title">
+ <span class="header">Quickvote</span>
+ <span class="subheader">Create New QuickVote</span>
+ <div style="clear:both;"></div>
+</div>
-<%= error_messages_for 'quickvote' %>
+<div class="main-content">
-<p><label for="quickvote_candidatelist">Choices</p>
+<p><label for="quickvote_candidate_names">Choices</p>
<!-- the list of candidates -->
-<div id="candlist">
+<div id="candidate_names">
<%= render :partial => 'candidate_list' %>
</div>
-<%= form_tag :action => 'create' %>
+<% form_tag(:action => 'create') do %>
<!--[form:election]-->
+<p><label for="quickvote_name">One Word Description (for URL)</label></p>
+
+<p>required; 5-12 characters; only letters and numbers; no spaces</p>
+
+<p><%= text_field 'quickvote', 'name', :size => 15, :maxsize => 12 %></p>
+
+<p><label for="quickvote_description">Description</label></p>
+
+<p><font size="-1">required; free-form</font></em><br/>
+
+<%= text_field 'quickvote', 'description', :size => 50 %></p>
+
+<div id="advanced" style="display: none">
+ <div class="plain-header">
+ <span class="header">Advanced Options</span>
+ <span class="subheader"></span>
+ </div>
+ <div class="clear-div"></div>
+
+ <% fields_for 'quickvote', @quickvote do |quickform| %>
-<p><label for="quickvote_name">Super-short name (for URL)<br />
+ <p><label for="quickvote_election_method">Election Method</label></p>
-<em><font size="-1">required; 5-12 characters; only letters and numbers; no spaces</font></em></label><br/>
+ <p><%= quickform.select('election_method',
+ %w(ssd condorcet plurality approval borda) ) %></p>
-<%= text_field 'quickvote', 'name', :size => 15, :maxsize => 12 %></p>
+ <p><label for="quickvote_enddate">End Time</label></p>
+ <p><%= quickform.date_select(:enddate, :start_year => Time.now.year) %></p>
-<p><label for="quickvote_description">Description<em><br />
-<font size="-1">optional; one line summary on the first line</font></em></label><br/>
+ <p><label for="quickvote_visibility">Visibility</label></p>
-<%= text_area 'quickvote', 'description', :cols => 50, :rows => 4 %></p>
+ <p>Do you want the results to be visible while the election is active?</p>
-<%= submit_tag "Create Quickvote" -%>
+ <p>Yes <%= quickform.radio_button(:viewable, 1)%>
+ No <%= quickform.radio_button(:viewable, 0)%></p>
-<%= end_form_tag %>
+ <% if session[:user] %>
+ <p>Notification</p>
+ <p>Would you like to be e-mailed when this QuickVote concludes?</p>
+
+ <p>Yes <%= quickform.radio_button(:notices, 1)%>
+ No <%= quickform.radio_button(:notices, 0)%></p>
+ <% end -%>
+
+ <% end %>
+
+</div>
+<br />
+
+<p><%= submit_tag "Create Quickvote" -%></p>
+
+<% end %>
+
+</div>