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
71527855
Commit
71527855
authored
Jul 20, 2016
by
Galen Evilla
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
e
parent
fa2d026e
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
8 deletions
+3
-8
show.html.erb
Halalan/app/views/admin/candidates/show.html.erb
+1
-6
index.html.erb
Halalan/app/views/pages/index.html.erb
+1
-1
_form.html.erb
Halalan/app/views/voting/votes/_form.html.erb
+1
-1
No files found.
Halalan/app/views/admin/candidates/show.html.erb
View file @
71527855
...
...
@@ -4,11 +4,6 @@
<%=
link_to
"Delete"
,
admin_candidate_path
(
@candidate
.
id
),
method: :delete
%>
<br>
<h3>
Position:
<%=
@candidate
.
position
.
name
%>
</h3>
<%
m
=
0
f
=
0
o
=
0
%>
<%
m
=
0
f
=
0
...
...
@@ -52,7 +47,7 @@
<ul>
<li>
<%
@candidate
.
votes
.
each
do
|
v
|
%>
<%=
"
#{
v
.
user
.
full_name
}
"
%>
<%=
"
#{
v
.
user
.
full_name
}
"
%>
<p>
Comments:
<%=
v
.
comment
%>
</p>
...
...
Halalan/app/views/pages/index.html.erb
View file @
71527855
...
...
@@ -25,7 +25,7 @@
<tr>
<td>
<%=
link_to
c
.
full_name
,
admin_candidate_path
(
c
.
id
)
%>
</td>
<td>
<%=
c
.
slogan
%>
</td>
<td>
<%=
c
.
votes
.
count
%>
<progress
value=
"
<%=
c
.
votes
.
count
%>
"
max=
"
<%=
total
%>
"
>
</td>
<td>
<%=
c
.
votes
.
count
%>
</td>
</tr>
<%
end
%>
</table>
...
...
Halalan/app/views/voting/votes/_form.html.erb
View file @
71527855
...
...
@@ -10,5 +10,5 @@
I cast my vote for
<%=
f
.
association
:candidate
,
collection:
Candidate
.
where
(
position_id
:@pos
),
label_method: :full_name
,
value_method: :id
%>
<%=
f
.
input
:comment
,
label:
'Comment:'
%>
<%=
f
.
submit
%>
<%=
f
.
submit
label:
'Cast Vote'
%>
<%
end
%>
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