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
74a957db
Commit
74a957db
authored
Jul 20, 2016
by
Galen Evilla
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
last na talaga na-ooc kasi ako e
parent
20e72207
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
8 deletions
+6
-8
index.html.erb
Halalan-FINAL/app/views/admin/candidates/index.html.erb
+4
-6
new.html.erb
Halalan-FINAL/app/views/admin/candidates/new.html.erb
+1
-1
new.html.erb
Halalan-FINAL/app/views/admin/positions/new.html.erb
+1
-1
No files found.
Halalan-FINAL/app/views/admin/candidates/index.html.erb
View file @
74a957db
...
@@ -15,7 +15,10 @@
...
@@ -15,7 +15,10 @@
<%
if
@positions
.
size
>
0
%>
<%
if
@positions
.
size
>
0
%>
<%
@positions
.
each
do
|
p
|
%>
<%
@positions
.
each
do
|
p
|
%>
<hr>
<hr>
<h3><center>
<%=
p
.
name
%>
</center></h3>
<h3>
<%=
p
.
name
%>
</h3>
<div
class=
"btn btn-info"
role =
"button"
>
<%=
link_to
"Add a Candidate"
,
new_admin_candidate_path
,
:method
=>
"get"
%>
</div>
<%
if
p
.
candidates
.
size
>
0
%>
<%
if
p
.
candidates
.
size
>
0
%>
<table
class=
"table table-hover"
>
<table
class=
"table table-hover"
>
<thead>
<thead>
...
@@ -40,11 +43,6 @@
...
@@ -40,11 +43,6 @@
<%
else
%>
<%
else
%>
<h4><center>
No candidates available.
</center></h4>
<h4><center>
No candidates available.
</center></h4>
<%
end
%>
<%
end
%>
<center>
<div
class=
"btn btn-info"
role =
"button"
>
<%=
link_to
"Add a Candidate"
,
new_admin_candidate_path
,
:method
=>
"get"
%>
</div>
</center>
</table>
</table>
<%
end
%>
<%
end
%>
<%
else
%>
<%
else
%>
...
...
Halalan-FINAL/app/views/admin/candidates/new.html.erb
View file @
74a957db
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
<h1>
New Candidate
</h1>
<h1>
New Candidate
</h1>
<%=
render
partial:
"form"
%>
<%=
render
partial:
"form"
%>
<br>
<%=
link_to
"Back to Candidates"
,
admin_candidates_path
%>
<%=
link_to
"Back to Candidates"
,
admin_candidates_path
%>
</div>
</div>
</div>
</div>
...
...
Halalan-FINAL/app/views/admin/positions/new.html.erb
View file @
74a957db
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
<h1>
New Position
</h1>
<h1>
New Position
</h1>
<%=
render
partial:
"form"
%>
<%=
render
partial:
"form"
%>
<br>
<%=
link_to
"Back to Candidates"
,
admin_candidates_path
%>
<%=
link_to
"Back to Candidates"
,
admin_candidates_path
%>
</div>
</div>
</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