Commit 7492712f authored by Anferny Vanta's avatar Anferny Vanta

with custom design

parent dd60a48d
......@@ -113,6 +113,11 @@ GEM
rails-deprecated_sanitizer (>= 1.0.1)
rails-html-sanitizer (1.0.3)
loofah (~> 2.0)
rails_12factor (0.0.3)
rails_serve_static_assets
rails_stdout_logging
rails_serve_static_assets (0.0.5)
rails_stdout_logging (0.0.5)
railties (4.2.5.1)
actionpack (= 4.2.5.1)
activesupport (= 4.2.5.1)
......@@ -176,6 +181,7 @@ DEPENDENCIES
jquery-rails
pg
rails (= 4.2.5.1)
rails_12factor
sass-rails (~> 5.0)
sdoc (~> 0.4.0)
simple_form
......
<h1>Current Tally</h1>
<table class="table table-striped">
<tbody>
<div class="jumbotron">
<h1><center>Banana Election System</h1>
<br>
<p><center><%= link_to "Vote now", vote_path, class: "btn btn-lg btn-success" %></p></center>
</div>
<h1 font size ="50"><center><u>Current Tally</u></center></h1>
<br>
<table width="100">
<thead>
<% @candidates.each do |position_id, candidates| %>
<%= Position.find(position_id).name %>
<ul>
<% candidates.each do |candidate| %>
<li><%= candidate.first_name %>&nbsp<%= candidate.last_name %>&nbsp<%= candidate.votes.count %></li>
<% end %>
</ul>
<li><strong><%= Position.find(position_id).name %></strong></li>
<table class="table table-striped">
<tbody>
<% candidates.each do |candidate| %>
<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<%= candidate.last_name %>,&nbsp;<%=candidate.first_name %>&nbsp;</td>
<td align ="right"><b><font color="red"><%= candidate.votes.count %></b></font> votes</td>
</tbody>
<% end %>
</table>
<% end %>
</tbody>
</thead>
</table>
<%= link_to "Vote", vote_path %>
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