<h1><strong><%= @election.name %>:</strong> Edit Overview</h1>
-<%= start_form_tag :action => 'update', :id => @election %>
+<% form_tag(:action => 'update', :id => @election) do %>
<%= render :partial => 'overview_form' %>
<%= submit_tag 'Done!' %>
-<%= end_form_tag %>
+<% end %>
<h1>Editing <%= @candidate.name %></h1>
<%= error_messages_for :candidate %>
-<%= form_tag( { :action => :update_candidate, :id => @candidate.id },
- :multipart => true ) %>
+<% form_tag( { :action => :update_candidate, :id => @candidate.id },
+ :multipart => true ) do %>
<%= render :partial => 'candidate_form' %>
<%= submit_tag "Save" %>
-<%= end_form_tag %>
+<% end %>
<p>Please enter new candidates below.</p>
-<%= form_tag( { :action => :add_candidate, :id => @election.id },
- :multipart => true ) %>
+<% form_tag( { :action => :add_candidate, :id => @election.id },
+ :multipart => true ) do %>
<%= render :partial => 'candidate_form' %>
<%= submit_tag "Add Candidate" %>
-<%= end_form_tag %>
+<% end %>
<%= button_to "Done!", :action => 'show', :id => @election %>
<%= render :partial => 'voter_list' %>
-<%= form_tag :action => 'edit_voters', :id => @election.id %>
+<% form_tag (:action => 'edit_voters', :id => @election.id) do %>
<%= render :partial => 'voters_form' %>
-<%= end_form_tag %>
+<% end %>
<%= button_to 'Done!', :action => 'show', :id => @election.id %>
<h2>Vote Overview</h2>
-<%= form_tag :action => 'create_election' %>
+<% form_tag (:action => 'create_election') do %>
<%= render :partial => 'overview_form' %>
<%= submit_tag "Done!" %>
-<%= end_form_tag %>
+<% end %>
<%= render :partial => 'voter_list' %>
-<%= form_tag :action => 'new_voters', :id => @election.id %>
+<% form_tag(:action => 'new_voters', :id => @election.id) do %>
<%= render :partial => 'voters_form' %>
-<%= end_form_tag %>
+<% end %>
<% %>
<!-- the list of candidates -->
-<% if @flash[:candlist] %>
+<% if flash[:candlist] %>
<ul>
- <% for cand in @flash[:candlist] %>
+ <% for cand in flash[:candlist] %>
<li><%= cand.capitalize %></li>
<% end %>
</ul>
<% end %>
-<%= form_remote_tag :update => 'candlist',
+<% form_remote_tag(:update => 'candlist',
:url => { :action => 'add_candidate' },
- :complete => "Field.focus('ajax_newcandidate')" %>
+ :complete => "Field.focus('ajax_newcandidate')") do %>
<p>
<%= text_field "ajax", "newcandidate", :size => 40 %>
<%= submit_tag "Add(+)" %>
</p>
-<%= end_form_tag %>
+<% end %>
<%= render :partial => 'candidate_list' %>
</div>
-<%= form_tag :action => 'create' %>
+<% form_tag(:action => 'create') do %>
<!--[form:election]-->
<p><label for="quickvote_name">One Word Description (for URL)<br />
<%= submit_tag "Create Quickvote" -%>
-<%= end_form_tag %>
+<% end %>
<h3>Please Login</h3>
<div class="form-padding">
- <%= start_form_tag :action => 'login' %>
+ <% form_tag(:action => 'login') do %>
<table>
<%= form_input :text_field, "Login ID", "login", :size => 30 %>
<%= form_input :password_field, "Password", "password", :size => 30 %>
<p><%= link_to 'Register for an account', :action => 'signup' %></p>
<p><%= link_to 'Forgot my password', :action => 'forgot_password' %></p>
</div>
- <%= end_form_tag %>
+ <% end %>
</div>
</div>
<em>(For example, 123 or 321 or 213, etc.)</em></p>
<% if @voter.election.quickvote? %>
- <%= form_tag quickaction_url( :ident => @voter.election.name, :action => 'confirm') %>
+ <% form_tag(quickaction_url( :ident => @voter.election.name, :action => 'confirm')) do %>
<% else %>
<%= form_tag :action => 'review', :id => @voter.password %>
<% end %>
<%= text_field :vote, :votestring -%>
<%= submit_tag "Vote!" %>
-<%= end_form_tag %>
+<% end %>
<p>Please enter your password/token to log in and vote:</p>
-<%= form_tag :action => 'index' %>
+<% form_tag(:action => 'index') do %>
<%= text_field :vote, :password %>
<%= submit_tag "Log In" %>
-<%= end_form_tag %>
+<% end %>