feature: possibility to update a job offer, added

This commit is contained in:
Gaëlle Morin 2019-06-11 18:37:06 +02:00
parent 03878f2c45
commit 9d6758fe67
7 changed files with 47 additions and 4 deletions

View File

@ -13,7 +13,7 @@ link(rel='stylesheet', href='https://fonts.googleapis.com/css?family=Open+Sans:3
//- script(type="module" src="/lib/sib-notifications/sib-notifications.js")
//- script(type="module" src="/lib/sib-conversation/sib-conversation.js")
//- script(type="module" src="/lib/sib-directory/sib-directory.js")
//- script(type="module" src="/lib/sib-joboffers/sib-joboffers.js")
//- script(type="module" src="/lib/sib-job-board/sib-job-board.js")
//- CDN
script(type="module" src="https://unpkg.com/@startinblox/core@0.7")

View File

@ -25,6 +25,10 @@ html(lang="en")
sib-link(class="backlink", next="job-offers") Back
include page-job-offer-create.pug
#job-offer-edit(hidden).no-sidebar
sib-link(class="backlink", next="job-offers") Back
include page-job-offer-edit.pug
#project(hidden).with-sidebar
include page-project.pug

View File

@ -11,6 +11,7 @@ nav#main__menu
div.menu-label Job offers
div.menu-icon.icon-briefcase
sib-route(hidden, name='job-offer-create')
sib-route(hidden, name='job-offer-edit', use-id)
div.divider
div.menu-wrapper
div.menu

View File

@ -0,0 +1,28 @@
.content-box.with-form
h1 Edit your job offer
sib-form.block(
bind-resources
range-skills=`${sdn}/skills/`
data-fields='title, description, skills, closingDate'
class-title='field form-label is-light is-expanded'
label-title='Title*'
class-description='field form-label is-light is-expanded'
label-description='Description*'
widget-description='sib-form-textarea'
class-skills='form-label is-dark'
label-skills='The required skills for this mission:*'
multiple-skills='sib-multiple-select'
widget-skills='sib-form-auto-completion'
class-closingDate='form-label is-dark'
label-closingDate='Publication end date:*'
widget-closingDate='sib-form-date'
next='job-offers'
)

View File

@ -8,4 +8,3 @@
sib-link(next="job-offer-create").plus-button
div.icon-plus
div Post a new offer

View File

@ -49,6 +49,7 @@
border: 2px solid $color-222-57-95;
color: $color-233-18-29;
/*flex: 1 1 0; Problem on Firefox for input type date*/
line-height: 1;
margin-top: 0.8rem;
min-width: 0;
padding: 1rem;

View File

@ -66,7 +66,7 @@ sib-job-board {
display: flex;
margin: -0.25em;
>* {
>*:not(sib-action) {
margin: 0.25em;
}
@ -170,4 +170,14 @@ sib-job-board {
}
}
}
}
}
sib-action[name='edit'] {
margin-left: auto;
color: $color-215-6-63;
&>sib-link {
@include icon('options-vertical');
font-size: 2rem;
}
}