Commit a3f5bfef authored by Jasmine Principe's avatar Jasmine Principe

buttons

parent b5e99c92
<% provide(:candidate, "active") %> <% provide(:candidate, "active") %>
<% provide(:title, "Candidates") %> <% provide(:title, "Candidates") %>
<style>
h1{
letter-spacing: 2px;
}
</style>
<div class ="container"> <div class ="container">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-12">
<left> <left>
<h1>Candidates</h1> <h1>Candidates</h1>
<%=link_to "Add a candidate", new_admin_candidate_path%> <%= button_to "Add a Candidate", new_admin_candidate_path, :method => "get" %>
</left> </left>
<%@positions.each do |p|%> <%@positions.each do |p|%>
<hr> <hr>
<h3><center><%=p.name%></center></h3> <h3><center><%=p.name%></center></h3>
<<<<<<< HEAD
<table> <table>
=======
<table class="table table-hover">
<thead>
<th witdth = "40%"><center>Name</center></th>
<th><center>Slogan</center></th>
</thead>
>>>>>>> 3a7c99764459a08d3b3963ee6e918b827b0e4445
<%p.candidates.each do |c|%> <%p.candidates.each do |c|%>
<tr> <tr>
<td> <td>
......
<% provide(:position, "active") %> <% provide(:position, "active") %>
<% provide(:title, "Positions") %> <% provide(:title, "Positions") %>
<style>
h1{
letter-spacing: 2px;
}
</style>
<div class ="container"> <div class ="container">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-12">
<left> <left>
<h1>Positions</h1> <h1>Positions</h1>
<%=link_to "Add New Position", new_admin_position_path%> <%=button_to "Create a Position", new_admin_position_path, :method => "get" %>
</left> </left>
<%@positions.each do |p|%> <%@positions.each do |p|%>
<hr> <hr>
<h3><center><%= link_to p.name, admin_position_path(p.id) %></center></h3> <h3><left><%= link_to p.name, admin_position_path(p.id) %></left></h3>
<%end%> <%end%>
</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