X-Git-Url: https://projects.mako.cc/source/selectricity/blobdiff_plain/04f827dd4647f3a7d6e5bd8f5e9083c730a8dccc..268caae2a993a7ce262cabdaedf391fe8c5aa400:/app/views/quickvote/create.rhtml?ds=sidebyside diff --git a/app/views/quickvote/create.rhtml b/app/views/quickvote/create.rhtml index 7074218..7ccb644 100644 --- a/app/views/quickvote/create.rhtml +++ b/app/views/quickvote/create.rhtml @@ -3,44 +3,40 @@ <%= error_messages_for 'quickvote' %> -<% if @quickvote %> -

Please review the data you've entered and confirm. The candidates for -the election submitted include:

+

- - -<% end %> + +
+<%= render :partial => 'candidate_list' %> +
-<%= form_tag :action => 'create' %> +<% form_tag(:action => 'create') do %> -


-Required; 5-12 characters; only letters and numbers; no spaces
+<%= text_field 'quickvote', 'name', :size => 15, :maxsize => 12 %>

-<%= text_field 'quickvote', 'name' %>

+


-


+<%= text_area 'quickvote', 'description', :cols => 50, :rows => 4 %>

-<%= text_area 'quickvote', 'description', :rows => 2 %>

+<%= check_box('options', 'advanced', + :onclick => 'Element.toggle($("advanced")); false;' )%>Advanced + + +
+ +<%= submit_tag "Create Quickvote" -%> + +<% end %> -


-<%= text_area 'quickvote', 'candidatelist', :rows => 3 %>

-

<% if @quickvote -%> - <%= submit_tag "Confirm" -%> - <%= hidden_field :quickvote, :reviewed, :value => 1 %> - <% else %> - <%= submit_tag "Create QuickVote" -%> - <%- end -%> -

-<%= end_form_tag %>