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
8d05d692
Commit
8d05d692
authored
Jul 20, 2016
by
Galen Evilla
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tweaks
parent
457b13e5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
show.html.erb
Halalan/app/views/admin/candidates/show.html.erb
+4
-4
edit.html.erb
Halalan/app/views/devise/registrations/edit.html.erb
+1
-1
new.html.erb
Halalan/app/views/devise/registrations/new.html.erb
+1
-1
No files found.
Halalan/app/views/admin/candidates/show.html.erb
View file @
8d05d692
...
...
@@ -7,7 +7,7 @@
<%
m
=
0
f
=
0
o
=
0
l
=
0
@candidate
.
votes
.
each
do
|
v
|
if
v
.
user
!=
nil
if
v
.
user
.
gender
==
"Male"
...
...
@@ -16,7 +16,7 @@
if
v
.
user
.
gender
==
"Female"
f
=
f
+
1
else
o
=
o
+
1
l
=
l
+
1
end
end
end
...
...
@@ -31,13 +31,13 @@
<tr>
<th>
Male Voters
</th>
<th>
Female Voters
</th>
<th>
Other
Voters
</th>
<th>
LGBT
Voters
</th>
<th>
Total Votes
</th>
</tr>
<tr>
<td>
<%=
m
%>
</td>
<td>
<%=
f
%>
</td>
<td>
<%=
o
%>
</td>
<td>
<%=
l
%>
</td>
<td>
<%=
@candidate
.
votes
.
count
%>
</td>
</tr>
</table>
...
...
Halalan/app/views/devise/registrations/edit.html.erb
View file @
8d05d692
...
...
@@ -8,7 +8,7 @@
<%=
f
.
input
:first_name
,
required:
true
,
autofocus:
true
%>
<%=
f
.
input
:last_name
,
required:
true
%>
<%=
f
.
input
:birthday
,
:end_year
=>
Date
.
today
.
year
-
18
,
:start_year
=>
1920
,
:order
=>
[
:day
,
:month
,
:year
],
required:
true
%>
<%=
f
.
input
:gender
,
as: :select
,
collection:
[
"Male"
,
"Female"
,
"
Other
"
],
required:
true
%>
<%=
f
.
input
:gender
,
as: :select
,
collection:
[
"Male"
,
"Female"
,
"
LGBT
"
],
required:
true
%>
<%=
f
.
input
:email
,
required:
true
%>
<%
if
devise_mapping
.
confirmable?
&&
resource
.
pending_reconfirmation?
%>
...
...
Halalan/app/views/devise/registrations/new.html.erb
View file @
8d05d692
...
...
@@ -9,7 +9,7 @@
<%=
f
.
input
:birthday
,
:start_year
=>
Date
.
today
.
year
-
18
,
:end_year
=>
1920
,
:order
=>
[
:day
,
:month
,
:year
],
:required
=>
true
%>
<%=
f
.
input
:gender
,
as: :select
,
collection:
[
"Male"
,
"Female"
,
"
Other
"
],
required:
true
%>
<%=
f
.
input
:gender
,
as: :select
,
collection:
[
"Male"
,
"Female"
,
"
LGBT
"
],
required:
true
%>
<%=
f
.
input
:email
,
required:
true
%>
<%=
f
.
input
:password
,
required:
true
,
hint:
(
"
#{
@minimum_password_length
}
characters minimum"
if
@minimum_password_length
)
%>
<%=
f
.
input
:password_confirmation
,
required:
true
%>
...
...
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