changed images on the front page and added new headings
[selectricity] / app / views / quickvote / create.rhtml
index 7074218ecd17e5a336b9b4cd9195986a2d84f837..b1b6004ec7a75d60b76244a58f74138cf63576d2 100644 (file)
@@ -1,46 +1,69 @@
-<% -%>
-<h1>Create QuickVote</h1>
+<div id="voters-title">
+       <span class="header">Title</span>
+       <span class="subheader">Subtitle</span>
+       <div style="clear:both;"></div>
+</div>
+
+<div id="controlroom-title">
+       <span class="header">Title</span>
+       <span class="subheader">Subtitle</span>
+       <div style="clear:both;"></div>
+</div>
+
+<div id="quickvote-title">
+       <span class="header">Quickvote</span>
+       <span class="subheader"></span>
+       <div style="clear:both;"></div>
+</div>
 
 <%= error_messages_for 'quickvote' %>
 
-<% if @quickvote %>
-<p>Please review the data you've entered and confirm. The candidates for
-the election submitted include:</p>
+<span class="header">Header</span>
+<span class="subheader">Subheader</span>
+<div style="clear:both;"></div>
 
-<ul>
-<% for candidate in @quickvote.raw_candidates %>
-  <li><%= candidate %></li>
-<% end %>
-</ul>
+<span class="header">Header</span>
+<span class="subheader"></span>
+<div style="clear:both;"></div>
 
-<% end %>
+<span class="header">Header</span>
+<div style="clear:both;"></div>
+
+<p><label for="quickvote_candidate_names">Choices</p>
+
+<!-- the list of candidates -->
+<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">Vote Name<br />
+<p><label for="quickvote_name">One Word Description (for URL)</label></p>
 
-<em><font size="-1">Required; 5-12 characters; only letters and numbers; no spaces</font></em></label><br/>
+<p><em><font size="-1">required; 5-12 characters; only letters and numbers; no spaces</font></em></p>
 
-<%= text_field 'quickvote', 'name'  %></p>
+<p><%= text_field 'quickvote', 'name', :size => 15, :maxsize => 12  %></p>
 
-<p><label for="quickvote_description">Description <em><font
-size="-1">Optional</font></em></label><br/>
+<p><label for="quickvote_description">Description</label></p>
 
-<%= text_area 'quickvote', 'description', :rows => 2 %></p>
+<p><font size="-1">required; one line summary on the first line</font></em><br/>
+
+<%= text_area 'quickvote', 'description', :cols => 50, :rows => 4 %></p>
+
+<%= check_box('options', 'advanced', 
+    :onclick => 'Element.toggle($("advanced")); false;' )%>Advanced
+
+<div id="advanced" style="display: none">
+<%= render :partial => 'advanced', :locals => {:quickvote => @quickvote} %>
+</div>
+<br />
+
+<p><%= submit_tag "Create Quickvote" -%></p>
+
+<% end %>
 
-<p><label for="quickvote_candidatelist">Choices/Candidates<em><br />
-<font size="-1">Seperate choices with a ";". At least two are required.</font></em></label><br/>
 
-<%= text_area 'quickvote', 'candidatelist', :rows => 3 %></p>
 
-<p><% if @quickvote -%>
-     <%= submit_tag "Confirm" -%>
-     <%= hidden_field :quickvote, :reviewed, :value => 1 %>
-   <% else %>
-     <%= submit_tag "Create QuickVote" -%>
-   <%- end -%>
-</p>
 
-<%= end_form_tag %>
 

Benjamin Mako Hill || Want to submit a patch?