Renamed "elections" controller to "election."
[selectricity-live] / app / views / election / _candidates_form.rhtml
diff --git a/app/views/election/_candidates_form.rhtml b/app/views/election/_candidates_form.rhtml
new file mode 100644 (file)
index 0000000..814b38f
--- /dev/null
@@ -0,0 +1,11 @@
+<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" ) %>
+
+  <p>New candidate name:
+  <%= text_field_tag :newcandidate %>
+
+  <%= submit_tag "Add" %>
+  <%= end_form_tag %>

Benjamin Mako Hill || Want to submit a patch?