Working on a step-by-step workflow audit.
[selectricity] / app / views / election / _candidates_form.rhtml
index 814b38f29945295cb04af224505cb8f779410dc3..ca6e73ed91e9478c3dfb147a07fe2e83c1809884 100644 (file)
@@ -1,11 +1,15 @@
+<% %>
 <p>Please enter candidates for <strong><%= @election.name %></strong>.</p>
 
-  <%= form_remote_tag(:update => "candidate_list",
-                      :url => { :action => :add_candidate, :id => @election.id },
-                      :position => "top" ) %>
+<%= form_remote_tag(:update => "candidate_list",
+                    :url => { :action => :add_candidate, :id => @election.id },
+                    :position => "bottom" ) %>
 
-  <p>New candidate name:
-  <%= text_field_tag :newcandidate %>
+<p>New candidate name:<br />
+<%= text_field :newcandidate, :name %></p>
+<p>Candidate description/platform (optional):<br />
+<%= text_area :newcandidate, :description %></p>
 
-  <%= submit_tag "Add" %>
-  <%= end_form_tag %>
+<%= submit_tag "Add Candidate" %>
+<%= end_form_tag %>

Benjamin Mako Hill || Want to submit a patch?