Commit a3f5bfef authored by Jasmine Principe's avatar Jasmine Principe

buttons

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