working quickvote support created
[selectricity] / app / views / quickvote / create.rhtml
diff --git a/app/views/quickvote/create.rhtml b/app/views/quickvote/create.rhtml
new file mode 100644 (file)
index 0000000..7074218
--- /dev/null
@@ -0,0 +1,46 @@
+<% -%>
+<h1>Create QuickVote</h1>
+
+<%= error_messages_for 'quickvote' %>
+
+<% if @quickvote %>
+<p>Please review the data you've entered and confirm. The candidates for
+the election submitted include:</p>
+
+<ul>
+<% for candidate in @quickvote.raw_candidates %>
+  <li><%= candidate %></li>
+<% end %>
+</ul>
+
+<% end %>
+
+<%= form_tag :action => 'create' %>
+<!--[form:election]-->
+
+<p><label for="quickvote_name">Vote Name<br />
+
+<em><font size="-1">Required; 5-12 characters; only letters and numbers; no spaces</font></em></label><br/>
+
+<%= text_field 'quickvote', 'name'  %></p>
+
+<p><label for="quickvote_description">Description <em><font
+size="-1">Optional</font></em></label><br/>
+
+<%= text_area 'quickvote', 'description', :rows => 2 %></p>
+
+<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?