Merge branch 'gm-module-joboffers' into 'staging'

Use the Job-board component

See merge request startinblox/applications/sib-app!38
This commit is contained in:
Jean-Baptiste Pasquier 2019-06-11 13:24:08 +00:00
commit 248f77769d
4 changed files with 14 additions and 51 deletions

View File

@ -13,6 +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-notifications/sib-notifications.js")
//- script(type="module" src="/lib/sib-conversation/sib-conversation.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-directory/sib-directory.js")
//- script(type="module" src="/lib/sib-joboffers/sib-joboffers.js")
//- CDN //- CDN
script(type="module" src="https://unpkg.com/@startinblox/core@0.7") script(type="module" src="https://unpkg.com/@startinblox/core@0.7")
@ -21,4 +22,4 @@ script(type="module" src="https://unpkg.com/@startinblox/component-chat@0.1")
script(type="module" src="https://unpkg.com/@startinblox/component-notifications@0.1") script(type="module" src="https://unpkg.com/@startinblox/component-notifications@0.1")
script(type="module" src="https://unpkg.com/@startinblox/component-conversation@0.2") script(type="module" src="https://unpkg.com/@startinblox/component-conversation@0.2")
script(type="module" src="https://unpkg.com/@startinblox/component-directory@0.1") script(type="module" src="https://unpkg.com/@startinblox/component-directory@0.1")
script(type="module" src="https://unpkg.com/@startinblox/component-job-board@0.1")

View File

@ -1,48 +1,11 @@
div.job-offers__main .job-offers__container
sib-job-board(
include templates/hd-user-avatar.pug data-src=`${sdn}/job-offers/`,
include templates/template-groups.pug range-skills=`${sdn}/skills/`
include templates/template-skills.pug
include templates/template-joboffers-filter.pug
sib-widget(name='hd-contact-author')
template
p ${JSON.stringify(value)}
sib-link(next='messages', data-src="${value.profile['@id']}") Send a message
div.job-offers__content
h1 New offers
span Here you can find and post offers
sib-display#offers-list(
data-src=`${sdn}/sources/job-offers/`,
data-fields='user-thumb, creationDate, title, description, skills, author',
set-user-thumb='author.account.picture, author.first_name, author.groups',
widget-author.account.picture='hd-user-avatar',
widget-author.groups='groups-name',
multiple-author.groups,
widget-skills='skills-name',
multiple-skills,
widget-author='hd-contact-author',
search-range-skills=`${sdn}/skills/`,
search-fields='content, open, skills',
set-content='title, description',
search-label-content='Search by keyword',
search-label-skills='Search by skills',
search-widget-content='sib-form-placeholder-text',
search-widget-skills='sib-form-placeholder-dropdown',
search-widget-open='joboffers-filter'
) )
div.job-offers__newoffer div.job-offers__newoffer
template#groups-list-template
p ${value}
sib-link(next="job-offer-create").plus-button sib-link(next="job-offer-create").plus-button
div.icon-plus div.icon-plus
div Post a new offer div Post a new offer

View File

@ -52,7 +52,7 @@
} }
} }
#offers-list, #members-list { .job-board, #members-list {
sib-form { sib-form {
@extend %filters; @extend %filters;
} }

View File

@ -1,8 +1,8 @@
.job-offers__main { .job-offers__container {
@extend %grid-layer; @extend %grid-layer;
} }
.job-offers__content { sib-job-board {
@extend %grid-layer-main; @extend %grid-layer-main;
@extend %containerV; @extend %containerV;
} }
@ -34,7 +34,7 @@
} }
} }
#offers-list { .job-board__list {
@extend %grid-layer; @extend %grid-layer;
>sib-form { >sib-form {
@ -87,7 +87,7 @@
} }
} }
hd-user-avatar { author-avatar {
background-color: $color-0-0-100; background-color: $color-0-0-100;
border-radius: 50%; border-radius: 50%;
height: 4.25rem; height: 4.25rem;
@ -131,7 +131,7 @@
} }
} }
hd-contact-author { author-contact {
color: $color-244-73-62; color: $color-244-73-62;
font-size: 1.3rem; font-size: 1.3rem;
float: right; float: right;
@ -170,5 +170,4 @@
} }
} }
} }
} }