X-Git-Url: https://projects.mako.cc/source/selectricity-live/blobdiff_plain/04f827dd4647f3a7d6e5bd8f5e9083c730a8dccc..3096416bbb8fdc92d7619aecc8237a57532d9066:/app/views/quickvote/create.rhtml?ds=inline diff --git a/app/views/quickvote/create.rhtml b/app/views/quickvote/create.rhtml index 7074218..0a5d4aa 100644 --- a/app/views/quickvote/create.rhtml +++ b/app/views/quickvote/create.rhtml @@ -1,15 +1,16 @@ <% -%> -

Create QuickVote

+

<%= @quickvote ? "Review and Confirm" : "Create QuickVote" %>

<%= error_messages_for 'quickvote' %> <% if @quickvote %> -

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

+ +

Please review the data you've entered and confirm it. The candidates +for the vote you've submitted include:

@@ -18,27 +19,27 @@ the election submitted include:

<%= form_tag :action => 'create' %> -


+required; 5-12 characters; only letters and numbers; no spaces
-<%= text_field 'quickvote', 'name' %>

+<%= text_field 'quickvote', 'name', :size => 15, :maxsize => 12 %>

-


+


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

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


+seperate choices with a ";"; at least two are required
-<%= text_area 'quickvote', 'candidatelist', :rows => 3 %>

+<%= text_area 'quickvote', 'candidatelist', :cols => 50, :rows => 2 %>

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