Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
VenJob
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Đường Sỹ Hoàng
VenJob
Commits
c492ff7d
Commit
c492ff7d
authored
Jan 15, 2020
by
Đường Sỹ Hoàng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Render breadcrum partial,fix form template
parent
bf0013a2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
48 additions
and
72 deletions
+48
-72
app/views/apply/_apply_breadcrumb.html.erb
+13
-0
app/views/apply/confirm.html.erb
+18
-34
app/views/apply/done.html.erb
+3
-14
app/views/apply/new.html.erb
+14
-24
No files found.
app/views/apply/_apply_breadcrumb.html.erb
0 → 100644
View file @
c492ff7d
<nav
aria-label=
"breadcrumb"
>
<ol
class=
"breadcrumb"
>
<li
class=
"breadcrumb-item
<%=
content_for
(
:new_step
)
%>
"
aria-current=
"page"
>
Apply New
</li>
<li
class=
"breadcrumb-item
<%=
content_for
(
:confirm_step
)
%>
"
>
Apply Confirmation
</li>
<li
class=
"breadcrumb-item
<%=
content_for
(
:done_step
)
%>
"
>
Apply Finish
</li>
</ol>
</nav>
app/views/apply/confirm.html.erb
View file @
c492ff7d
<!--links menu-->
<%=
content_for
(
:confirm_step
,
"active"
)
%>
<nav
aria-label=
"breadcrumb"
>
<ol
class=
"breadcrumb"
>
<%=
render
"apply_breadcrumb"
%>
<li
class=
"breadcrumb-item"
>
<%=
link_to
"Apply New"
,
apply_path
%>
</li>
<li
class=
"breadcrumb-item active"
aria-current=
"page"
>
Apply Confirm
</li>
<li
class=
"breadcrumb-item"
>
<%=
link_to
"Apply Finish"
,
"#"
%>
</li>
</ol>
<div
class=
"container"
>
<div
class=
"container"
>
<div
class=
"d-flex justify-content-center "
>
<div
class=
"d-flex justify-content-center "
>
<div
class=
"card"
>
<div
class=
"card"
>
</nav>
<%=
form_for
(
@apply
,
url:
done_path
(
@job
))
do
|
f
|
%>
<%=
form_for
(
@apply
,
url:
done_path
(
@job
))
do
|
f
|
%>
<div
class=
"field"
>
<div
class =
"form-group row"
>
<%=
f
.
label
:username
%>
</br>
<%=
@apply
.
username
%>
<%=
f
.
hidden_field
:username
,
value:
@apply
.
username
%>
</div>
<div
class=
"field"
>
<%=
f
.
label
:first_name
%>
<%=
f
.
label
:first_name
%>
<
/br
>
<
div
class =
"form-control"
>
<%=
@apply
.
first_name
%>
<%=
@apply
.
first_name
%>
</div>
<%=
f
.
hidden_field
:first_name
,
value:
@apply
.
first_name
%>
<%=
f
.
hidden_field
:first_name
,
value:
@apply
.
first_name
%>
</div>
</div>
<div
class
=
"field
"
>
<div
class
=
"form-group row
"
>
<%=
f
.
label
:last_name
%>
<%=
f
.
label
:last_name
%>
<
/br
>
<
div
class =
"form-control"
>
<%=
@apply
.
last_name
%>
<%=
@apply
.
last_name
%>
</div>
<%=
f
.
hidden_field
:last_name
,
value:
@apply
.
last_name
%>
<%=
f
.
hidden_field
:last_name
,
value:
@apply
.
last_name
%>
</div>
</div>
<div
class
=
"field
"
>
<div
class
=
"form-group row
"
>
<%=
f
.
label
:email
%>
<%=
f
.
label
:email
%>
<
/br
>
<
div
class =
"form-control"
>
<%=
@apply
.
email
%>
<%=
@apply
.
email
%>
</div>
<%=
f
.
hidden_field
:email
,
value:
@apply
.
email
%>
<%=
f
.
hidden_field
:email
,
value:
@apply
.
email
%>
</div>
</div>
<div
class
=
"field
"
>
<div
class
=
"form-group row
"
>
<%=
f
.
label
:CV_URL
%>
<%=
f
.
label
:CV_URL
%>
<
/br
>
<
div
class =
"form-control"
>
<%=
@apply
.
cv_url
%>
<%=
@apply
.
cv_url
%>
</div>
<%=
f
.
hidden_field
:cv_url
,
value:
@apply
.
cv_url
%>
<%=
f
.
hidden_field
:cv_url
,
value:
@apply
.
cv_url
%>
</div>
</div>
</br>
</br>
<div
class
=
"field
"
>
<div
class
=
"form-group
"
>
<div
class =
"actions"
>
<div
class =
"actions"
>
<%=
f
.
submit
"Done"
,
class:
"btn btn-primary"
%>
<%=
f
.
submit
"Done"
,
class:
"btn btn-primary"
%>
</div>
<div
class=
"action float-right"
>
<%=
link_to
"Edit"
,
apply_path
(
@job
,
apply:
{
first_name:
@apply
.
first_name
,
<%=
link_to
"Edit"
,
apply_path
(
@job
,
apply:
{
first_name:
@apply
.
first_name
,
last_name:
@apply
.
last_name
,
last_name:
@apply
.
last_name
,
email:
@apply
.
email
,
email:
@apply
.
email
,
cv_url:
@apply
.
cv_url
}),
class:
"btn btn-primary"
%>
cv_url:
@apply
.
cv_url
}),
class:
"btn
float-right
btn-primary"
%>
</div>
</div>
</div>
<%
end
%>
<%
end
%>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
app/views/apply/done.html.erb
View file @
c492ff7d
<!--links menu-->
<%=
content_for
(
:done_step
,
"active"
)
%>
<nav
aria-label=
"breadcrumb"
>
<ol
class=
"breadcrumb"
>
<%=
render
"apply_breadcrumb"
%>
<li
class =
"breadcrumb-item"
>
<%=
link_to
"Apply New"
%>
</li>
<li
class=
"breadcrumb-item"
>
<%=
link_to
"Apply Confirmation"
,
"#"
%>
</li>
<li
class =
"breadcrumb-item active"
aria-current=
"page"
>
Apply Finish
</li>
</ol>
</nav>
<h4>
Thank you for apply
</h4>
<h4>
Thank you for apply
</h4>
</br>
</br>
...
...
app/views/apply/new.html.erb
View file @
c492ff7d
<!--links menu-->
<%=
content_for
(
:new_step
,
"active"
)
%>
<nav
aria-label=
"breadcrumb"
>
<%=
render
"apply_breadcrumb"
%>
<ol
class=
"breadcrumb"
>
<li
class=
"breadcrumb-item active"
aria-current=
"page"
>
Apply New
</li>
<li
class=
"breadcrumb-item"
>
<%=
link_to
"Apply Confirmation"
,
"#"
%>
</li>
<li
class=
"breadcrumb-item"
>
<%=
link_to
"Apply Finish"
,
"#"
%>
</li>
</ol>
</nav>
<div
class=
"container"
>
<div
class=
"container"
>
<div
class=
"d-flex justify-content-center "
>
<div
class=
"d-flex justify-content-center "
>
...
@@ -20,34 +8,36 @@
...
@@ -20,34 +8,36 @@
<h2>
Apply Form
</h2>
<h2>
Apply Form
</h2>
</div>
</div>
<%=
form_for
(
@apply
,
url:
confirm_path
(
@job
))
do
|
f
|
%>
<%=
form_for
(
@apply
,
url:
confirm_path
(
@job
))
do
|
f
|
%>
<div
class=
"field
"
>
<div
class =
"form-group row
"
>
<%=
f
.
label
:first_name
%>
<%=
f
.
label
:first_name
%>
</br>
</br>
<%=
f
.
text_field
:first_name
%>
<%=
f
.
text_field
:first_name
,
class:
"form-control"
%>
</div>
</div>
<div
class
=
"field
"
>
<div
class
=
"form-group row
"
>
<%=
f
.
label
:last_name
%>
<%=
f
.
label
:last_name
%>
</br>
</br>
<%=
f
.
text_field
:last_name
%>
<%=
f
.
text_field
:last_name
,
class:
"form-control"
%>
</div>
</div>
<div
class
=
"field
"
>
<div
class
=
"form-group row
"
>
<%=
f
.
label
:email
%>
<%=
f
.
label
:email
%>
</br>
</br>
<%=
f
.
email_field
:email
%>
<%=
f
.
email_field
:email
,
class:
"form-control"
%>
</div>
</div>
<div
class
=
"field
"
>
<div
class
=
"form-group row"
"
>
<%=
f
.
label
:CV_URL
%>
<%=
f
.
label
:CV_URL
%>
</br>
</br>
<%=
f
.
url_field
:cv_url
%>
<%=
f
.
url_field
:cv_url
,
class:
"form-control"
%>
</div>
</div>
</br>
<div
class =
"actions"
>
<div
class =
"actions
text-center
"
>
<%=
f
.
submit
"Confirm"
,
class:
"btn btn-primary"
%>
<%=
f
.
submit
"Confirm"
,
class:
"btn btn-primary"
%>
</div>
</div>
<%
end
%>
<%
end
%>
</div>
</div>
</div>
</div>
</div>
</div>
</br>
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