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
68c2d345
Commit
68c2d345
authored
Jul 21, 2016
by
Dean Krisitan Bardeloza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modified party_list index page
parent
0c21c196
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
index.html.erb
Election/app/views/admin/party_lists/index.html.erb
+2
-1
index.html.erb
Election/app/views/party_lists/index.html.erb
+2
-1
No files found.
Election/app/views/admin/party_lists/index.html.erb
View file @
68c2d345
...
@@ -6,7 +6,8 @@
...
@@ -6,7 +6,8 @@
<h3>
<%=
p
.
name
%>
<h3>
<h3>
<%=
p
.
name
%>
<h3>
<ul><h4>
Candidates
</h4></ul>
<ul><h4>
Candidates
</h4></ul>
<ul>
<%
p
.
candidates
.
each
do
|
candidate
|
%>
<ul>
<%
p
.
candidates
.
each
do
|
candidate
|
%>
<h5>
<%=
candidate
.
first_name
%>
<%=
candidate
.
last_name
%>
</h5>
<h5>
<%=
candidate
.
first_name
%>
<%=
candidate
.
last_name
%>
-
<%=
candidate
.
position
.
name
%>
</h5>
<%
end
%>
<%
end
%>
</ul>
</ul>
<h5>
Actions:
<%=
link_to
"Show"
,
admin_party_list_path
(
p
.
id
)
%>
<%=
link_to
"Edit"
,
edit_admin_party_list_path
(
p
.
id
)
%>
<%=
link_to
"Delete"
,
admin_party_list_path
(
p
.
id
),
method: :delete
,
data:
{
confirm:
'Are you sure?'
}
%>
<h5>
Actions:
<%=
link_to
"Show"
,
admin_party_list_path
(
p
.
id
)
%>
<%=
link_to
"Edit"
,
edit_admin_party_list_path
(
p
.
id
)
%>
<%=
link_to
"Delete"
,
admin_party_list_path
(
p
.
id
),
method: :delete
,
data:
{
confirm:
'Are you sure?'
}
%>
...
...
Election/app/views/party_lists/index.html.erb
View file @
68c2d345
...
@@ -6,8 +6,9 @@
...
@@ -6,8 +6,9 @@
<h4>
Party List Description
</h4>
<h4>
Party List Description
</h4>
<%=
p
.
description
%>
<%=
p
.
description
%>
<h4>
Party List Candidates
</h4>
<h4>
Party List Candidates
</h4>
<%
p
.
candidates
.
each
do
|
candidate
|
%>
<%
p
.
candidates
.
each
do
|
candidate
|
%>
<%=
candidate
.
first_name
%>
<%=
candidate
.
last_name
%>
<%=
candidate
.
first_name
%>
<%=
candidate
.
last_name
%>
-
<%=
candidate
.
position
.
name
%>
<br>
<%
end
%>
<%
end
%>
<hr>
<hr>
<%
end
%>
<%
end
%>
...
...
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