X-Git-Url: https://projects.mako.cc/source/selectricity-live/blobdiff_plain/2ba40f97b78f529984ff26c7c7d61c91d213e7b0..83a39529b634c0344a7884d5813e3f7e1a7dbcb4:/app/views/election/edit_candidates.rhtml diff --git a/app/views/election/edit_candidates.rhtml b/app/views/election/edit_candidates.rhtml index b5f06ff..cd0bd5a 100644 --- a/app/views/election/edit_candidates.rhtml +++ b/app/views/election/edit_candidates.rhtml @@ -1,8 +1,33 @@ -

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

+
+ Edit Candidates + +
+ +
+ +<% if @election.active == 0 %> + +
+ Enter New Candidate + +
+ +<%= error_messages_for :candidate %> + +<% form_tag( { :action => :add_candidate, :id => @election.id }, + :multipart => true ) do %> +<%= render :partial => 'candidate_form' %> +

<%= submit_tag "Add Candidate" %>

+<% end %> + + +
+ Current Candidates + +
-<% unless @election.candidates.empty? %> -

The following are valid options or candidates in this election:

+<% unless @election.candidates.empty? %> <% @election.candidates.each do |candidate| %> <% @current_candidate = candidate %> <%= render :partial => 'candidate_line_edit' %> @@ -11,6 +36,21 @@ <% 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 %> + +
+ Continue + +
+ +

When you are done entering candidates, please click the button below +to proceed to the next step.

+ +<%= button_to "Proceed to Next Step", :action => 'new_voters', :id => @election %> + +<% else %> + +

You can not edit the list of candidates once the election has begun. +please return to the <%= link_to "election overview page", :action => +'show', :id => @election.id %>.

+ +<% end %>