modified party_list index page

parent 0c21c196
......@@ -6,7 +6,8 @@
<h3><%= p.name %><h3>
<ul><h4>Candidates</h4></ul>
<ul><% p.candidates.each do |candidate| %>
<h5><%= candidate.first_name %> <%= candidate.last_name %></h5>
<h5><%= candidate.first_name %> <%= candidate.last_name %> - <%= candidate.position.name %></h5>
<% end %>
</ul>
<h5>Actions: <%= link_to "Show", admin_party_list_path(p.id) %> <%= link_to "Edit", edit_admin_party_list_path(p.id) %> <%= link_to "Delete", admin_party_list_path(p.id), method: :delete, data: { confirm: 'Are you sure?' } %>
......
......@@ -6,8 +6,9 @@
<h4>Party List Description</h4>
<%= p.description %>
<h4>Party List Candidates</h4>
<% p.candidates.each do |candidate| %>
<%= candidate.first_name %> <%= candidate.last_name %>
<%= candidate.first_name %> <%= candidate.last_name %> - <%= candidate.position.name %><br>
<% end %>
<hr>
<% 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