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
a3f5bfef
Commit
a3f5bfef
authored
Jul 20, 2016
by
Jasmine Principe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
buttons
parent
b5e99c92
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
12 deletions
+15
-12
index.html.erb
Halalan-trial/app/views/admin/candidates/index.html.erb
+6
-9
index.html.erb
Halalan-trial/app/views/admin/positions/index.html.erb
+9
-3
No files found.
Halalan-trial/app/views/admin/candidates/index.html.erb
View file @
a3f5bfef
<%
provide
(
:candidate
,
"active"
)
%>
<%
provide
(
:title
,
"Candidates"
)
%>
<style>
h1
{
letter-spacing
:
2px
;
}
</style>
<div
class =
"container"
>
<div
class=
"row"
>
<div
class=
"col-md-12"
>
<left>
<h1>
Candidates
</h1>
<%=
link_to
"Add a candidate"
,
new_admin_candidate_path
%>
<%=
button_to
"Add a Candidate"
,
new_admin_candidate_path
,
:method
=>
"get"
%>
</left>
<%
@positions
.
each
do
|
p
|
%>
<hr>
<h3><center>
<%=
p
.
name
%>
</center></h3>
<
<<<<<<
HEAD
<table>
=======
<table
class=
"table table-hover"
>
<thead>
<th
witdth =
"40%"
><center>
Name
</center></th>
<th><center>
Slogan
</center></th>
</thead>
>>>>>>> 3a7c99764459a08d3b3963ee6e918b827b0e4445
<%
p
.
candidates
.
each
do
|
c
|
%>
<tr>
<td>
...
...
Halalan-trial/app/views/admin/positions/index.html.erb
View file @
a3f5bfef
<%
provide
(
:position
,
"active"
)
%>
<%
provide
(
:title
,
"Positions"
)
%>
<style>
h1
{
letter-spacing
:
2px
;
}
</style>
<div
class =
"container"
>
<div
class=
"row"
>
<div
class=
"col-md-12"
>
<left>
<h1>
Positions
</h1>
<%=
link_to
"Add New Position"
,
new_admin_position_path
%>
<%=
button_to
"Create a Position"
,
new_admin_position_path
,
:method
=>
"get"
%>
</left>
<%
@positions
.
each
do
|
p
|
%>
<hr>
<h3><
center>
<%=
link_to
p
.
name
,
admin_position_path
(
p
.
id
)
%>
</center
></h3>
<h3><
left>
<%=
link_to
p
.
name
,
admin_position_path
(
p
.
id
)
%>
</left
></h3>
<%
end
%>
</div>
</div>
</div>
</div>
\ 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