X-Git-Url: https://projects.mako.cc/source/selectricity-live/blobdiff_plain/c933ff40da110253bc4c474d9c79c3a4ed98721d..2ba40f97b78f529984ff26c7c7d61c91d213e7b0:/app/views/election/edit_candidates.rhtml diff --git a/app/views/election/edit_candidates.rhtml b/app/views/election/edit_candidates.rhtml index 0c416d5..b5f06ff 100644 --- a/app/views/election/edit_candidates.rhtml +++ b/app/views/election/edit_candidates.rhtml @@ -1,14 +1,16 @@ -<% @edit = true %>

<%= @election.name %>: Edit Candidates

-

The following are valid options or candidates in this election:

+<% unless @election.candidates.empty? %> +

The following are valid options or candidates in this election:

- + <% @election.candidates.each do |candidate| %> + <% @current_candidate = candidate %> + <%= render :partial => 'candidate_line_edit' %> + <% end %> +<% else %> +

There are no candidates registered for this election.

+<% end %> +

Please enter new candidates below.

<%= render :partial => 'candidates_form' %> <%= button_to "Done!", :action => 'show', :id => @election %>