Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
candi-date-tayo
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
George Nicole Balmaceda
candi-date-tayo
Commits
04fad600
Commit
04fad600
authored
Jul 19, 2016
by
royce-matthew
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
some styles before defense
parent
54275f62
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
+11
-4
index.html.erb
app/views/admin/candidates/index.html.erb
+4
-2
show.html.erb
app/views/admin/positions/show.html.erb
+7
-2
No files found.
app/views/admin/candidates/index.html.erb
View file @
04fad600
<h4>
Displaying All Candidates Grouped By Positions
</h4>
<%=
link_to
"
+ new
Candidate"
,
new_admin_candidate_path
%>
<%=
link_to
"
Add a
Candidate"
,
new_admin_candidate_path
%>
<div
class=
"container"
>
<center>
<%
@positions
.
each
do
|
p
|
%>
<div
style=
"display:inline-block; border:solid 1px; padding:
4
0px; bottom:0; width:140px; margin:20px;"
>
<div
style=
"display:inline-block; border:solid 1px; padding:
3
0px; bottom:0; width:140px; margin:20px;"
>
<h5>
<%=
p
.
name
%>
</h5>
<ul
>
...
...
@@ -17,4 +18,5 @@
</ul>
</div>
<%
end
%>
</center>
</div>
\ No newline at end of file
app/views/admin/positions/show.html.erb
View file @
04fad600
...
...
@@ -3,8 +3,13 @@
<%=
link_to
"Edit"
,
edit_admin_position_path
(
@position
.
id
),
{
:style
=>
"font-size:18px; text-decoration:none; color:rgba(0,0,0,0.5)"
}
%>
<%=
link_to
"OBOSEN"
,
admin_position_path
(
@position
.
id
),
{
:style
=>
"font-size:18px; text-decoration:none; color:rgba(200,0,0,0.5)"
,
method: :delete
}
%>
</h1>
<br>
<h5
style=
"margin-bottom:0px;"
>
Candidates for
<%=
@position
.
name
%>
</h5>
<ul
style=
"list-style:none;"
>
<%
@position
.
candidates
.
each
do
|
c
|
%>
<li>
<%=
link_to
c
.
full_name
,
admin_candidate_path
(
c
.
id
)
%>
</li>
<li
style=
"margin:2px;"
>
<%=
link_to
c
.
full_name
,
admin_candidate_path
(
c
.
id
)
%>
</li>
<%
end
%>
<%=
link_to
"Back to Positions"
,
admin_positions_path
%>
</ul>
<%=
link_to
"<Back to Positions"
,
admin_positions_path
,
{
:style
=>
"color:#004e7e"
}
%>
\ 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