]> projects.mako.cc - selectricity-live/blob - app/views/election/_progress.rhtml
520894cdb79ec4d2ffd5304cc7f04b88a5b182ad
[selectricity-live] / app / views / election / _progress.rhtml
1 <% progress_steps = [ ['overview', 'General Information'],
2                       ['candidates', 'Candidates'],
3                       ['voters', 'Voters'],
4                       ['review', 'Review'] ] %>
5 <div id="election_creation_progress_bar">
6
7 <ul>
8 <% progress_steps.each_with_index do |kv, i| -%>
9   <% step, description = kv -%>
10   <li class="<%= step == progress ? 'step_selected' : 'step_unselected' -%>
11              <%= " last" if i + 1 == progress_steps.length -%>
12              ">Step <%= i + 1 %>: <%= description %></li>
13 <% end -%>
14 </ul>
15
16 </div>

Benjamin Mako Hill || Want to submit a patch?