Commit 74a957db authored by Galen Evilla's avatar Galen Evilla

last na talaga na-ooc kasi ako e

parent 20e72207
...@@ -15,7 +15,10 @@ ...@@ -15,7 +15,10 @@
<% if @positions.size > 0 %> <% if @positions.size > 0 %>
<%@positions.each do |p|%> <%@positions.each do |p|%>
<hr> <hr>
<h3><center><%=p.name%></center></h3> <h3><%=p.name%></h3>
<div class="btn btn-info" role ="button">
<%= link_to "Add a Candidate", new_admin_candidate_path, :method => "get" %>
</div>
<% if p.candidates.size > 0 %> <% if p.candidates.size > 0 %>
<table class="table table-hover"> <table class="table table-hover">
<thead> <thead>
...@@ -40,11 +43,6 @@ ...@@ -40,11 +43,6 @@
<%else%> <%else%>
<h4><center>No candidates available.</center></h4> <h4><center>No candidates available.</center></h4>
<%end%> <%end%>
<center>
<div class="btn btn-info" role ="button">
<%= link_to "Add a Candidate", new_admin_candidate_path, :method => "get" %>
</div>
</center>
</table> </table>
<%end%> <%end%>
<% else %> <% else %>
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<h1>New Candidate</h1> <h1>New Candidate</h1>
<%= render partial: "form" %> <%= render partial: "form" %>
<br>
<%= link_to "Back to Candidates", admin_candidates_path %> <%= link_to "Back to Candidates", admin_candidates_path %>
</div> </div>
</div> </div>
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<h1>New Position</h1> <h1>New Position</h1>
<%= render partial: "form" %> <%= render partial: "form" %>
<br>
<%= link_to "Back to Candidates", admin_candidates_path %> <%= link_to "Back to Candidates", admin_candidates_path %>
</div> </div>
</div> </div>
......
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