Moved files around a bit more.
[selectricity] / app / views / quickvote / create.rhtml
1 <h2>Create QuickVote</h2>
2
3 <%= error_messages_for 'quickvote' %>
4
5 <h3><label for="quickvote_candidate_names">Choices</h3>
6
7 <!-- the list of candidates -->
8 <div id="candidate_names">
9 <%= render :partial => 'candidate_list' %>
10 </div>
11
12 <% form_tag(:action => 'create') do %>
13 <!--[form:election]-->
14
15 <h3><label for="quickvote_name">One Word Description (for URL)</label></h3>
16
17 <p><em><font size="-1">required; 5-12 characters; only letters and numbers; no spaces</font></em></p>
18
19 <p><%= text_field 'quickvote', 'name', :size => 15, :maxsize => 12  %></p>
20
21 <h3><label for="quickvote_description">Description</label></h3>
22
23 <p><font size="-1">required; one line summary on the first line</font></em><br/>
24
25 <%= text_area 'quickvote', 'description', :cols => 50, :rows => 4 %></p>
26
27 <%= check_box('options', 'advanced', 
28     :onclick => 'Element.toggle($("advanced")); false;' )%>Advanced
29
30 <div id="advanced" style="display: none">
31 <%= render :partial => 'advanced', :locals => {:quickvote => @quickvote} %>
32 </div>
33 <br />
34
35 <p><%= submit_tag "Create Quickvote" -%></p>
36
37 <% end %>
38
39
40
41
42

Benjamin Mako Hill || Want to submit a patch?