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

some styles before defense

parent 54275f62
<h4>Displaying All Candidates Grouped By Positions </h4> <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"> <div class="container">
<center>
<% @positions.each do |p| %> <% @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> <h5> <%= p.name %></h5>
<ul > <ul >
...@@ -17,4 +18,5 @@ ...@@ -17,4 +18,5 @@
</ul> </ul>
</div> </div>
<% end %> <% end %>
</center>
</div> </div>
\ No newline at end of file
...@@ -3,8 +3,13 @@ ...@@ -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 "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> <%=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|%> <%@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%> <%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