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

with custom design

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