Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
final_project
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
evilla_gomez_guian_principe
final_project
Commits
f252bec3
Commit
f252bec3
authored
Jul 20, 2016
by
Galen Evilla
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tweaks some more
parent
5fed7c3e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
16 deletions
+19
-16
index.html.erb
Halalan-FINAL/app/views/admin/candidates/index.html.erb
+2
-3
show.html.erb
Halalan-FINAL/app/views/admin/candidates/show.html.erb
+17
-13
No files found.
Halalan-FINAL/app/views/admin/candidates/index.html.erb
View file @
f252bec3
...
...
@@ -16,7 +16,6 @@
<%
@positions
.
each
do
|
p
|
%>
<hr>
<h3><center>
<%=
p
.
name
%>
</center></h3>
<%
if
p
.
candidates
.
size
>
0
%>
<table
class=
"table table-hover"
>
<thead>
...
...
@@ -39,7 +38,7 @@
</tr>
<%
end
%>
<%
else
%>
<h4><center>
No c
reated candidates
.
</center></h4>
<h4><center>
No c
andidates available
.
</center></h4>
<%
end
%>
<center>
<div
class=
"btn btn-info"
role =
"button"
>
...
...
@@ -49,7 +48,7 @@
</table>
<%
end
%>
<%
else
%>
<h4><center>
No c
reated candidates
.
</center></h4>
<h4><center>
No c
andidates available
.
</center></h4>
<%
end
%>
</div>
</div>
...
...
Halalan-FINAL/app/views/admin/candidates/show.html.erb
View file @
f252bec3
...
...
@@ -26,7 +26,7 @@
<h2>
<%=
@candidate
.
position
.
name
%>
</h2>
<br>
<h3>
"
<%=
@candidate
.
slogan
%>
"
</h3>
<h3>
"
<%=
@candidate
.
slogan
%>
"
</h3>
<br>
<center>
<table
class=
"table table-hover"
>
...
...
@@ -46,18 +46,22 @@
</table>
</center>
<hr>
<h3>
Voters who voted for
<%=
@candidate
.
full_name
%>
</h3>
<ul>
<li>
<%
@candidate
.
votes
.
each
do
|
v
|
%>
<%=
"
#{
v
.
user
.
full_name
}
"
%>
<p>
Comments:
<%=
v
.
comment
%>
</p>
</li>
<%
end
%>
</ul>
<%
if
@candidate
.
votes
.
count
>
0
%>
<h3>
Voters who voted for
<%=
@candidate
.
full_name
%>
</h3>
<ul>
<li>
<%
@candidate
.
votes
.
each
do
|
v
|
%>
<%=
"
#{
v
.
user
.
full_name
}
"
%>
<br>
<p>
Comments:
<%=
v
.
comment
%>
</p>
</li>
<%
end
%>
</ul>
<%
else
%>
<h3>
No Voters.
</h3>
<%
end
%>
<hr>
<%=
link_to
"Back to Candidates"
,
admin_candidates_path
%>
</div>
...
...
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