Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
TAM
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EIP
Labrador
TAM
Merge requests
!382
Resolve "Copy job offer"
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Merged
Resolve "Copy job offer"
217-copy-job-offer
into
dev
Overview
5
Commits
7
Pipelines
16
Changes
4
Merged
Resolve "Copy job offer"
Danae Savvidi
requested to merge
217-copy-job-offer
into
dev
Jul 11, 2024
Overview
5
Commits
7
Pipelines
16
Changes
4
Closes
#217 (closed)
Edited
Jul 15, 2024
by
Danae Savvidi
0
0
Merge request reports
Compare
dev
version 6
78ef4be1
11 months ago
version 5
1e09e9a8
Jul 15, 2024
version 4
2c98b4fa
Jul 15, 2024
version 3
2d190827
Jul 15, 2024
version 2
0085c6c2
Jul 11, 2024
version 1
40ba71f7
Jul 11, 2024
dev (base)
and
latest version
latest version
42b79939
7 commits,
11 months ago
version 6
78ef4be1
6 commits,
11 months ago
version 5
1e09e9a8
5 commits,
Jul 15, 2024
version 4
2c98b4fa
4 commits,
Jul 15, 2024
version 3
2d190827
3 commits,
Jul 15, 2024
version 2
0085c6c2
2 commits,
Jul 11, 2024
version 1
40ba71f7
1 commit,
Jul 11, 2024
4 files
+
73
−
6
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
src/main/resources/templates/job_offer/create.html
+
62
−
6
View file @ 42b79939
Edit in single-file editor
Open in Web IDE
Show full file
@@ -30,14 +30,31 @@
class=
"dialog"
style=
"width: 40rem"
>
<form
th:action=
"@{/job-offer}"
th:method=
"post"
class=
"flex vertical p-7"
>
<h1
class=
"underlined font-500"
th:text=
"#{jobOffer.add}"
></h1>
<h1
th:if=
"${offer == null}"
class=
"underlined font-500"
th:text=
"#{jobOffer.add}"
></h1>
<h1
th:if=
"${offer != null}"
class=
"underlined font-500"
th:text=
"#{jobOffer.duplicate}"
></h1>
<div
th:if=
"${offer != null}"
class=
"banner"
data-type=
"warning"
>
<span
class=
"banner__icon fa-solid fa-warning"
></span>
<p>
Hiring and reject messages are also copied.
</p>
</div>
<div
class=
"grid col-2 gap-3 align-center"
style=
"--col-1: minmax(0, 12rem)"
>
<input
type=
"hidden"
name=
"editionId"
id=
"new-job-offer-edition-id"
/>
<input
type=
"hidden"
th:attrappend=
"value=${offer != null ? offer.editionId: ''}"
name=
"editionId"
id=
"new-job-offer-edition-id"
/>
<label
for=
"new-job-offer-course-name"
th:text=
"#{course}"
></label>
<input
type=
"text"
th:attrappend=
"value=${offer != null ? offer.edition.course.name : ''}"
id=
"new-job-offer-course-name"
name=
"courseName"
class=
"textfield"
@@ -46,6 +63,7 @@
<label
for=
"new-job-offer-edition-name"
th:text=
"#{edition}"
></label>
<input
type=
"text"
th:attrappend=
"value=${offer != null ? offer.edition.name : ''}"
id=
"new-job-offer-edition-name"
name=
"editionName"
class=
"textfield"
@@ -55,6 +73,7 @@
<input
id=
"new-job-offer-name"
th:name=
"name"
th:attrappend=
"value=${offer != null ? offer.name : ''}"
th:placeholder=
"#{jobOffer.description.enter}"
type=
"text"
class=
"textfield"
@@ -66,6 +85,7 @@
<input
id=
"new-job-offer-contract-name"
th:name=
"contractName"
th:attrappend=
"value=${offer != null ? offer.contractName : ''}"
th:placeholder=
"#{jobOffer.contractName.enter}"
type=
"text"
class=
"textfield"
@@ -85,15 +105,18 @@
<input
id=
"new-job-offer-baan-code"
th:name=
"baanCode"
th:attrappend=
"value=${offer?.baanCode != null ? offer.baanCode : ''}"
th:placeholder=
"#{jobOffer.baanCode.enter}"
type=
"text"
class=
"textfield invisible"
/>
class=
"textfield"
th:classappend=
"${offer == null} ? invisible"
/>
<label
for=
"new-job-offer-max-hours"
th:text=
"#{jobOffer.maxHours}"
></label>
<input
id=
"new-job-offer-max-hours"
th:name=
"maxHours"
th:placeholder=
"#{jobOffer.maxHours.enter}"
th:attrappend=
"value=${offer != null ? offer.maxHours : ''}"
type=
"number"
min=
"1"
class=
"textfield"
@@ -105,6 +128,7 @@
<input
id=
"new-job-offer-contract-start"
th:name=
"contractStartDate"
th:attrappend=
"value=${offer != null ? offer.contractStartDate : ''}"
th:placeholder=
"#{jobOffer.contractStartDate.enter}"
type=
"date"
class=
"textfield"
@@ -115,31 +139,63 @@
th:text=
"#{jobOffer.contractEndDate}"
></label>
<input
id=
"new-job-offer-contract-end"
th:attrappend=
"value=${offer != null ? offer.contractEndDate : ''}"
th:name=
"contractEndDate"
th:placeholder=
"#{jobOffer.contractEndDate.enter}"
type=
"date"
class=
"textfield"
required
/>
<input
th:if=
"offer != null"
id=
"new-job-offer-hiring-message"
th:name=
"hiringMessage"
th:placeholder=
"#{jobOffer.hiringMessage.enter}"
type=
"text"
class=
"textfield"
th:value=
"${offer?.hiringMessage}"
hidden
/>
<input
th:if=
"offer != null"
id=
"new-job-offer-reject-message"
th:name=
"rejectMessage"
th:placeholder=
"#{jobOffer.rejectMessage.enter}"
type=
"text"
class=
"textfield"
th:value=
"${offer?.hiringMessage}"
hidden
/>
<div
class=
"checkbox"
>
<input
type=
"checkbox"
id=
"new-job-offer-deadline-bool"
name=
"new-job-offer-deadline-bool"
onclick=
"toggleDatePicker('new-job-offer-deadline')"
/>
onclick=
"toggleDatePickerWith('new-job-offer-deadline', 'deadline-val')"
th:checked=
"${offer?.deadline != null}"
/>
<label
for=
"new-job-offer-deadline-bool"
th:text=
"#{jobOffer.deadline}"
></label>
<span
class=
"hidden"
id=
"deadline-val"
th:attrappend=
"value=${offer?.deadline != null ? offer.deadline : ''}"
></span>
</div>
<input
id=
"new-job-offer-deadline"
th:attrappend=
"value=${offer?.deadline != null ? offer.deadline : ''}"
th:name=
"deadline"
th:placeholder=
"#{jobOffer.date.enter}"
type=
"date"
class=
"textfield hidden"
/>
th:class=
"textfield"
th:classappend=
"${offer == null || offer.deadline == null} ? hidden"
/>
</div>
<div
class=
"checkbox"
>
<input
id=
"make-draft"
type=
"checkbox"
value=
"true"
th:name=
"hidden"
/>
<input
id=
"make-draft"
th:checked=
"${offer?.hidden != null}"
type=
"checkbox"
th:name=
"hidden"
/>
<label
for=
"make-draft"
th:text=
"#{jobOffer.draft}"
></label>
</div>
<div
class=
"flex space-between"
>
Loading