Commit 2920b041 authored by Galen Evilla's avatar Galen Evilla

formats

parent 8142eeb2
......@@ -7,7 +7,5 @@ module Users
@votes = Vote.all
render "pages/profile.html.erb"
end
end
end
......@@ -2,19 +2,32 @@
<% provide(:title, "Candidates") %>
<center>
<h1>CANDIDATES</h1>
<h1>CANDIDATES</h1>
<%=link_to "Add a candidate", new_admin_candidate_path%>
</center>
<hr>
<% @positions.each do |p| %>
<h3><%= p.name %></h3>
<ul>
<% p.candidates.each do |c|%>
<li><%=link_to c.full_name, admin_candidate_path(c.id)%></li>
<% end %>
</ul>
<%@positions.each do |p|%>
<div class ="section">
<div class ="box">
<h4><center><%=p.name%></center></h4>
<table>
<thead>
<th><center>&nbsp;</center></th>
<th><center>Name</center></th>
<th><center>Slogan</center></th>
<th><center>&nbsp;</center></th>
</thead>
<%p.candidates.each do |c|%>
<tr>
<td></td>
<td><center><%=link_to c.full_name, admin_candidate_path(c.id)%></center></td>
<td><center><%=c.slogan%></center></td>
</tr>
<%end%>
</table>
</div>
</div>
<% end %>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment