projects
/
selectricity-live
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Mostly worked on the candidate adding feature to include pictures and
[selectricity-live]
/
app
/
views
/
election
/
_candidates_form.rhtml
diff --git
a/app/views/election/_candidates_form.rhtml
b/app/views/election/_candidates_form.rhtml
index ca6e73ed91e9478c3dfb147a07fe2e83c1809884..452892340e55aaa1347567a17dc555b058700d95 100644
(file)
--- a/
app/views/election/_candidates_form.rhtml
+++ b/
app/views/election/_candidates_form.rhtml
@@
-1,15
+1,9
@@
<% %>
<% %>
-<p>Please enter candidates for <strong><%= @election.name %></strong>.</p>
-<%= form_remote_tag(:update => "candidate_list",
- :url => { :action => :add_candidate, :id => @election.id },
- :position => "bottom" ) %>
+<%= form_tag( { :action => :add_candidate, :id => @election.id },
+ :multipart => true ) %>
-<p>New candidate name:<br />
-<%= text_field :newcandidate, :name %></p>
-
-<p>Candidate description/platform (optional):<br />
-<%= text_area :newcandidate, :description %></p>
+<%= render_partial 'candidate_form' %>
<%= submit_tag "Add Candidate" %>
<%= end_form_tag %>
<%= submit_tag "Add Candidate" %>
<%= end_form_tag %>
Benjamin Mako Hill
||
Want to submit a patch?