Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
MIS21_Final_Project_Group_Vanta
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Anferny Vanta
MIS21_Final_Project_Group_Vanta
Commits
7492712f
Commit
7492712f
authored
Jul 20, 2016
by
Anferny Vanta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
with custom design
parent
dd60a48d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
11 deletions
+27
-11
Gemfile.lock
Gemfile.lock
+6
-0
index.html.erb
app/views/votes/index.html.erb
+21
-11
mydb.dump
mydb.dump
+0
-0
No files found.
Gemfile.lock
View file @
7492712f
...
@@ -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
...
...
app/views/votes/index.html.erb
View file @
7492712f
<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>
<%=
candidate
.
last_name
%>
,
<%=
candidate
.
first_name
%>
</td>
</ul>
<td
align =
"right"
><b><font
color=
"red"
>
<%=
candidate
.
votes
.
count
%>
</b></font>
votes
</td>
</tbody>
<%
end
%>
</table>
<%
end
%>
<%
end
%>
</t
body
>
</t
head
>
</table>
</table>
<%=
link_to
"Vote"
,
vote_path
%>
mydb.dump
0 → 100644
View file @
7492712f
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment