projects
/
selectricity
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added a series of files so that elections can be created and edited and
[selectricity]
/
app
/
views
/
elections
/
_candidates_form.rhtml
diff --git
a/app/views/elections/_candidates_form.rhtml
b/app/views/elections/_candidates_form.rhtml
index d739dbf62fdac6210092306c0523dcb06751b5a5..814b38f29945295cb04af224505cb8f779410dc3 100644
(file)
--- a/
app/views/elections/_candidates_form.rhtml
+++ b/
app/views/elections/_candidates_form.rhtml
@@
-1,13
+1,6
@@
<p>Please enter candidates for <strong><%= @election.name %></strong>.</p>
<p>Please enter candidates for <strong><%= @election.name %></strong>.</p>
- <ul id="candidates_list">
- <% @election.candidates.each do |candidate| %>
- <% @candidate = candidate %>
- <%= render :partial => 'candidate_line' %>
- <% end %>
- </ul>
-
- <%= form_remote_tag(:update => "candidates_list",
+ <%= form_remote_tag(:update => "candidate_list",
:url => { :action => :add_candidate, :id => @election.id },
:position => "top" ) %>
:url => { :action => :add_candidate, :id => @election.id },
:position => "top" ) %>
Benjamin Mako Hill
||
Want to submit a patch?