]> projects.mako.cc - selectricity/blob - app/views/election/_progress.rhtml
Document the SelectricityAPI
[selectricity] / 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?