X-Git-Url: https://projects.mako.cc/source/selectricity/blobdiff_plain/ac5e3489e8b886b7b8a7252ab56ddeb3d3bdadc7..008cc97a2f0d84b4de46f2125133afe6c7f620c7:/app/views/quickvote/create.rhtml?ds=inline diff --git a/app/views/quickvote/create.rhtml b/app/views/quickvote/create.rhtml index 0a5d4aa..b1b6004 100644 --- a/app/views/quickvote/create.rhtml +++ b/app/views/quickvote/create.rhtml @@ -1,47 +1,69 @@ -<% -%> -

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

+
+ Title + Subtitle +
+
+ +
+ Title + Subtitle +
+
+ +
+ Quickvote + +
+
<%= error_messages_for 'quickvote' %> -<% if @quickvote %> +Header +Subheader +
-

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

+Header + +
- +Header +
-<% end %> +

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

-required; 5-12 characters; only letters and numbers; no spaces
+

required; 5-12 characters; only letters and numbers; no spaces

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

+

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

-


+

+ +

required; one line summary on the first line
<%= text_area 'quickvote', 'description', :cols => 50, :rows => 4 %>

-


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

+
+ +

<%= submit_tag "Create Quickvote" -%>

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

-

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

-<%= end_form_tag %>