Working on a step-by-step workflow audit.
[selectricity] / app / views / site / index.rhtml
1 <% %>
2
3 <table width="auto" padding="5px">
4 <tr>
5 <td width="47%" valign="top">
6 <h2>Voters</h2>
7
8 <p>If you have received an email with a token inviting you to vote in an
9 ongoing election, you can log in to vote using your token here.</p>
10
11 <%= form_tag :controller => 'voter', :action => 'index' %>
12 <%= text_field :vote, :password %>
13 <%= submit_tag "Log In" %>
14 <%= end_form_tag %>
15
16 <p><%= link_to 'Lost or forgot your token?', :controller => 'voter', :action => 'forgot_password' %></p>
17 </td>
18
19 <td width="6%"></td>
20
21 <td width="47%" valign="top">
22
23 <% if session[:user] %>
24   <%= render_partial 'user_summary' %> 
25 <% else %>
26   <h2>Election Administrators</h2>
27   <p>You must have an account to start a new election or to administer an
28   existing vote. You can log in or create a new account below.</p>
29
30   <%= render_partial 'basic_login' %>
31 <% end %>
32 </td>
33 </tr>
34 </table>

Benjamin Mako Hill || Want to submit a patch?