Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
MIS21FinalsElection
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
Dean Krisitan Bardeloza
MIS21FinalsElection
Commits
2f546dba
Commit
2f546dba
authored
Jul 19, 2016
by
Kristoff Sison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added a Profile Edit page and pages for About and User
parent
efd7db55
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
2 deletions
+35
-2
edit.html.erb
Election/app/views/devise/registrations/edit.html.erb
+4
-0
application.html.erb
Election/app/views/layouts/application.html.erb
+1
-2
about.html.erb
Election/app/views/pages/about.html.erb
+12
-0
user_votes.html.erb
Election/app/views/votes/user_votes.html.erb
+18
-0
No files found.
Election/app/views/devise/registrations/edit.html.erb
View file @
2f546dba
...
@@ -4,6 +4,10 @@
...
@@ -4,6 +4,10 @@
<%=
f
.
error_notification
%>
<%=
f
.
error_notification
%>
<div
class=
"form-inputs"
>
<div
class=
"form-inputs"
>
<%=
f
.
input
:first_name
,
required
:true
%>
<%=
f
.
input
:last_name
,
required
:true
%>
<%=
f
.
input
:birthday
,
as: :date
,
start_year:
Time
.
now
.
year
-
100
,
end_year:
Time
.
now
.
year
-
18
,
include_blank: :false
%>
<%=
f
.
input
:gender
,
as: :select
,
collection:
[
"Male"
,
"Female"
],
required:
true
%>
<%=
f
.
input
:email
,
required:
true
,
autofocus:
true
%>
<%=
f
.
input
:email
,
required:
true
,
autofocus:
true
%>
<%
if
devise_mapping
.
confirmable?
&&
resource
.
pending_reconfirmation?
%>
<%
if
devise_mapping
.
confirmable?
&&
resource
.
pending_reconfirmation?
%>
...
...
Election/app/views/layouts/application.html.erb
View file @
2f546dba
...
@@ -7,9 +7,8 @@
...
@@ -7,9 +7,8 @@
<%=
csrf_meta_tags
%>
<%=
csrf_meta_tags
%>
</head>
</head>
<body>
<body>
<%
if
user_signed_in?
%>
<%
if
user_signed_in?
%>
<%=
"You are logged in as:
#{
current_user
.
email
}
"
%>
<%=
link_to
"Log Out"
,
destroy_user_session_path
,
method: :delete
%>
||
<%=
"You are logged in as:
#{
current_user
.
email
}
"
%>
<%=
link_to
'Edit Profile'
,
edit_user_registration_path
%>
||
<%=
link_to
"Log Out"
,
destroy_user_session_path
,
method: :delete
%>
||
<%
else
%>
<%
else
%>
<%=
""
%>
<%=
""
%>
<%
end
%>
<%
end
%>
...
...
Election/app/views/pages/about.html.erb
0 → 100644
View file @
2f546dba
<!DOCTYPE html>
<html>
<h1>
About Page
</h1>
<body>
MIS21 - B
Alfonso Arvisu
Bianca Tarun
Dean Bardeloza
Kristoff Sison
</body>
</html>
\ No newline at end of file
Election/app/views/votes/user_votes.html.erb
0 → 100644
View file @
2f546dba
<h1>
Profile Page
</h1>
<table
class=
"table table-striped"
>
<thead>
<th>
Vote ID
</th>
<th>
Candidate Voted
</th>
<th>
Voted on
</th>
</thead>
<tbody>
<%
@votes
.
each
do
|
v
|
%>
<tr>
<td>
<%=
v
.
id
%>
</td>
<td>
<%=
v
.
candidate
.
first_name
%>
"
<%=
v
.
candidate
.
nickname
%>
"
<%=
v
.
candidate
.
last_name
%>
</td>
<td>
<%=
v
.
created_at
%>
</td>
</tr>
<%
end
%>
</tbody>
</table>
\ No newline at end of file
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