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
73cd571a
Commit
73cd571a
authored
Jul 20, 2016
by
Jasmine Principe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
candidates show
parent
edd4e3e8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
17 deletions
+16
-17
show.html.erb
Halalan-trial/app/views/admin/candidates/show.html.erb
+16
-7
index.html.erb
Halalan-trial/app/views/pages/index.html.erb
+0
-10
No files found.
Halalan-trial/app/views/admin/candidates/show.html.erb
View file @
73cd571a
<%
provide
(
:candidate
,
"active"
)
%>
<%
provide
(
:title
,
"
#{
@candidate
.
full_name
}
"
)
%>
<style>
p
{
display
:
inline
;
}
h1
{
display
:
inline
}
</style>
<div
class=
"container"
>
<div
class=
"row"
>
<div
class=
"col-md-12"
>
<h1>
Name of the Candidate:
<%=
@candidate
.
full_name
%>
</h1>
<br>
<h1><font
size=
"20"
>
<%=
@candidate
.
full_name
%>
</font></h1>
<p>
<%=
link_to
"Edit"
,
edit_admin_candidate_path
(
@candidate
.
id
)
%>
<br>
<%=
link_to
"Delete"
,
admin_candidate_path
(
@candidate
.
id
),
method: :delete
%>
<
br
>
<h
3>
Position:
<%=
@candidate
.
position
.
name
%>
</h3
>
<
/p
>
<h
2>
<%=
@candidate
.
position
.
name
%>
</h2
>
<%
m
=
0
f
=
0
...
...
@@ -29,7 +40,7 @@
%>
<%
end
%>
<br>
<h3>
Slogan:
<%=
@candidate
.
slogan
%>
</h3>
<h3>
"
<%=
@candidate
.
slogan
%>
"
</h3>
<br>
<center>
<table
class=
"table table-hover"
>
...
...
@@ -62,8 +73,6 @@
<%
end
%>
</ul>
<hr>
<%=
link_to
"Back to Candidates"
,
admin_candidates_path
%>
</div>
</div>
</div>
\ No newline at end of file
Halalan-trial/app/views/pages/index.html.erb
View file @
73cd571a
...
...
@@ -4,16 +4,6 @@
<div
class =
"container"
>
<div
class=
"row"
>
<div
class=
"col-md-12"
>
<%
if
user_signed_in?
%>
<%
case
current_user
.
role
%>
<%
when
'voter'
%>
<h3>
Welcome,
<%=
current_user
.
first_name
%>
!
</h3>
<%
when
'admin'
%>
<h3>
Welcome, Administrator
</h3>
<%
end
%>
<%
else
%>
<h3>
Welcome
</h3>
<%
end
%>
<h1><center>
Current Vote Tally
</center></h1>
<hr>
<%
@positions
.
each
do
|
p
|
%>
...
...
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