Commit 71527855 authored by Galen Evilla's avatar Galen Evilla

e

parent fa2d026e
...@@ -4,11 +4,6 @@ ...@@ -4,11 +4,6 @@
<%=link_to "Delete", admin_candidate_path(@candidate.id), method: :delete%> <%=link_to "Delete", admin_candidate_path(@candidate.id), method: :delete%>
<br> <br>
<h3>Position: <%= @candidate.position.name %></h3> <h3>Position: <%= @candidate.position.name %></h3>
<%
m=0
f=0
o=0
%>
<% <%
m=0 m=0
f=0 f=0
...@@ -52,7 +47,7 @@ ...@@ -52,7 +47,7 @@
<ul> <ul>
<li> <li>
<% @candidate.votes.each do |v|%> <% @candidate.votes.each do |v|%>
<%="#{v.user.full_name}"%> <%= "#{v.user.full_name}"%>
<p> <p>
Comments: <%=v.comment%> Comments: <%=v.comment%>
</p> </p>
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
<tr> <tr>
<td><%=link_to c.full_name, admin_candidate_path(c.id)%></td> <td><%=link_to c.full_name, admin_candidate_path(c.id)%></td>
<td><%=c.slogan%></td> <td><%=c.slogan%></td>
<td><%=c.votes.count%> <progress value="<%=c.votes.count%>" max="<%=total%>" ></td> <td><%=c.votes.count%></td>
</tr> </tr>
<%end%> <%end%>
</table> </table>
......
...@@ -10,5 +10,5 @@ ...@@ -10,5 +10,5 @@
I cast my vote for I cast my vote for
<%= f.association :candidate, collection: Candidate.where(position_id:@pos), label_method: :full_name, value_method: :id %> <%= f.association :candidate, collection: Candidate.where(position_id:@pos), label_method: :full_name, value_method: :id %>
<%= f.input :comment, label: 'Comment:'%> <%= f.input :comment, label: 'Comment:'%>
<%= f.submit %> <%= f.submit label: 'Cast Vote' %>
<% end %> <% 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