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
439dbf3e
Commit
439dbf3e
authored
Jul 20, 2016
by
Jasmine Principe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed candidates/positions index
parent
2e43fdba
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
26 deletions
+6
-26
index.html.erb
Halalan-trial/app/views/admin/candidates/index.html.erb
+3
-10
index.html.erb
Halalan-trial/app/views/admin/positions/index.html.erb
+3
-16
No files found.
Halalan-trial/app/views/admin/candidates/index.html.erb
View file @
439dbf3e
...
...
@@ -4,18 +4,14 @@
<div
class =
"container"
>
<div
class=
"row"
>
<div
class=
"col-md-12"
>
<
center
>
<
left
>
<h1>
Candidates
</h1>
<%=
link_to
"Add a candidate"
,
new_admin_candidate_path
%>
</
center
>
</
left
>
<%
@positions
.
each
do
|
p
|
%>
<hr>
<h3><center>
<%=
p
.
name
%>
</center></h3>
<table
class=
"table table-hover"
>
<thead>
<th><center>
Name
</center></th>
<th><center>
Slogan
</center></th>
</thead>
<table>
<%
p
.
candidates
.
each
do
|
c
|
%>
<tr>
<td>
...
...
@@ -23,9 +19,6 @@
<%=
link_to
c
.
full_name
,
admin_candidate_path
(
c
.
id
)
%>
</center>
</td>
<td>
<center>
<%=
c
.
slogan
%>
</center>
</td>
</tr>
<%
end
%>
</table>
...
...
Halalan-trial/app/views/admin/positions/index.html.erb
View file @
439dbf3e
...
...
@@ -4,27 +4,14 @@
<div
class =
"container"
>
<div
class=
"row"
>
<div
class=
"col-md-12"
>
<
center
>
<
left
>
<h1>
Positions
</h1>
<%=
link_to
"Add New Position"
,
new_admin_position_path
%>
</
center
>
</
left
>
<%
@positions
.
each
do
|
p
|
%>
<hr>
<h3><center>
<%=
link_to
p
.
name
,
admin_position_path
(
p
.
id
)
%>
</center></h3>
<table
class=
"table table-hover"
>
<thead>
<th><center>
Name
</center></th>
</thead>
<%
p
.
candidates
.
each
do
|
c
|
%>
<tr>
<td>
<center>
<%=
link_to
c
.
full_name
,
admin_candidate_path
(
c
.
id
)
%>
</center>
</td>
</tr>
<%
end
%>
</table>
<%
end
%>
</div>
</div>
...
...
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