Commit 2e43fdba authored by Jasmine Principe's avatar Jasmine Principe

positions show

parent b5735bbd
<% provide(:position, "active") %> <% provide(:position, "active") %>
<% provide(:title, "#{@position.name}" ) %> <% provide(:title, "#{@position.name}" ) %>
<style>
p{
margin-bottom: 0;
padding-bottom: 0;
display:inline;
}
h1{
display:inline
}
</style>
<div class="container"> <div class="container">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-12">
<h1><%= @position.name%></h1> <h1><font size="20"><%= @position.name%></font></h1>
<p>
<%=link_to "Edit", edit_admin_position_path(@position.id)%> <%=link_to "Edit", edit_admin_position_path(@position.id)%>
<br>
<%=link_to "Delete", admin_position_path(@position.id), method: :delete%> <%=link_to "Delete", admin_position_path(@position.id), method: :delete%>
<br> </p>
<hr> <hr>
<h2>Candidates for <%=@position.name%></h2> <h2>Candidates for <%=@position.name%></h2>
...@@ -18,8 +29,9 @@ ...@@ -18,8 +29,9 @@
<li><%=link_to c.full_name, admin_candidate_path(c.id)%></li> <li><%=link_to c.full_name, admin_candidate_path(c.id)%></li>
<%end%> <%end%>
</ul> </ul>
<br>
<%= link_to "Back to Positions", admin_positions_path %> <%= link_to "< Back to Positions", admin_positions_path %>
</div> </div>
</div> </div>
</div> </div>
\ No newline at end of file
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