Commit 73cd571a authored by Jasmine Principe's avatar Jasmine Principe

candidates show

parent edd4e3e8
<% provide(:candidate, "active") %>
<% provide(:title, "#{@candidate.full_name}" ) %>
<style>
p{
display:inline;
}
h1{
display:inline
}
</style>
<div class="container">
<div class="row">
<div class="col-md-12">
<h1>Name of the Candidate: <%= @candidate.full_name%></h1>
<%=link_to "Edit", edit_admin_candidate_path(@candidate.id)%>
<br>
<h1><font size="20"><%= @candidate.full_name%></font></h1>
<p>
<%=link_to "Edit", edit_admin_candidate_path(@candidate.id)%>
<%=link_to "Delete", admin_candidate_path(@candidate.id), method: :delete%>
<br>
<h3>Position: <%= @candidate.position.name %></h3>
</p>
<h2><%= @candidate.position.name %></h2>
<%
m=0
f=0
......@@ -29,7 +40,7 @@
%>
<%end%>
<br>
<h3>Slogan: <%= @candidate.slogan%></h3>
<h3>" <%= @candidate.slogan%> "</h3>
<br>
<center>
<table class="table table-hover">
......@@ -62,8 +73,6 @@
<%end%>
</ul>
<hr>
<%= link_to "Back to Candidates", admin_candidates_path %>
</div>
</div>
</div>
\ No newline at end of file
......@@ -4,16 +4,6 @@
<div class ="container">
<div class="row">
<div class="col-md-12">
<% if user_signed_in? %>
<% case current_user.role %>
<% when 'voter' %>
<h3>Welcome, <%= current_user.first_name%>! </h3>
<% when 'admin' %>
<h3>Welcome, Administrator</h3>
<% end %>
<% else %>
<h3>Welcome</h3>
<% end %>
<h1><center>Current Vote Tally</center></h1>
<hr>
<%@positions.each do |p|%>
......
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