Commit 04fad600 authored by royce-matthew's avatar royce-matthew

some styles before defense

parent 54275f62
<h4>Displaying All Candidates Grouped By Positions </h4>
<%=link_to "+ new Candidate", new_admin_candidate_path%>
<%=link_to "Add a Candidate", new_admin_candidate_path%>
<div class="container">
<center>
<% @positions.each do |p| %>
<div style="display:inline-block; border:solid 1px; padding:40px; bottom:0; width:140px; margin:20px;">
<div style="display:inline-block; border:solid 1px; padding:30px; bottom:0; width:140px; margin:20px;">
<h5> <%= p.name %></h5>
<ul >
......@@ -17,4 +18,5 @@
</ul>
</div>
<% end %>
</center>
</div>
\ No newline at end of file
......@@ -3,8 +3,13 @@
<%=link_to "Edit", edit_admin_position_path(@position.id), {:style=>"font-size:18px; text-decoration:none; color:rgba(0,0,0,0.5)"}%>
<%=link_to "OBOSEN", admin_position_path(@position.id), {:style=>"font-size:18px; text-decoration:none; color:rgba(200,0,0,0.5)", method: :delete}%></h1>
<br>
<h5 style="margin-bottom:0px;">Candidates for <%=@position.name%></h5>
<ul style="list-style:none;">
<%@position.candidates.each do |c|%>
<li><%=link_to c.full_name, admin_candidate_path(c.id)%></li>
<li style="margin:2px;"><%=link_to c.full_name, admin_candidate_path(c.id)%></li>
<%end%>
<%= link_to "Back to Positions", admin_positions_path %>
</ul>
<%= link_to "<Back to Positions", admin_positions_path, {:style=>"color:#004e7e"} %>
\ 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