]> projects.mako.cc - selectricity/blob - app/views/election/_candidate_list.rhtml
TODO has been modified to relfect bug changes already delt with. Also, autogenerated...
[selectricity] / app / views / election / _candidate_list.rhtml
1 <ul id="candidate_list">
2   <% @election.candidates.each do |candidate| %>
3       <% @current_candidate = candidate %>
4       <%= render(:partial => 'election/candidate_line')%>
5     <% end %>
6 </ul>
7
8 <script>
9 function show_candidate_info(id) {
10     Element.hide($("show_candidate_link_" + id));
11     Element.show($("candidate_description_" + id));
12     Element.show($("hide_candidate_link_" + id));
13 }
14
15 function hide_candidate_info(id) {
16     Element.hide($("hide_candidate_link_" + id));
17     Element.hide($("candidate_description_" + id));
18     Element.show($("show_candidate_link_" + id));
19 }
20 </script>

Benjamin Mako Hill || Want to submit a patch?