fix: author and skill on job offer creation
This commit is contained in:
parent
0f04796f62
commit
747faa30cc
@ -4,7 +4,7 @@ div
|
||||
.form-view
|
||||
sib-form.block(
|
||||
data-src=`${sdn}/job-offers/`,
|
||||
data-fields="author, description, skills",
|
||||
data-fields="description, skills",
|
||||
widget-author='sib-form-dropdown',
|
||||
widget-skills='sib-form-multiple-dropdown',
|
||||
range-skills= `${sdn}/skills/`,
|
||||
)
|
||||
|
@ -1,9 +1,9 @@
|
||||
template#chat-link
|
||||
sib-link(next="member-chat") ${value}
|
||||
sib-display#member-info(
|
||||
data-fields='available, header, name, pseudonym, infos, skills',
|
||||
data-fields='available, header, name, pseudonym, infos, skills, city, country',
|
||||
set-header='picture',
|
||||
set-infos='cell, roles,send, user.email, number, foaf:homepage',
|
||||
set-infos='cell, roles, send, user.email, number, foaf:homepage',
|
||||
set-name='user.first_name, user.last_name',
|
||||
set-pseudonym='before-pseudo, pseudo',
|
||||
value-before-pseudo='@',
|
||||
@ -12,7 +12,6 @@ sib-display#member-info(
|
||||
widget-available='hdapp-available',
|
||||
widget-picture='sib-display-img',
|
||||
widget-user='hdapp-userinfo',
|
||||
widget-cell='hdapp-usercell',
|
||||
widget-number='sib-display-tel',
|
||||
widget-foaf:homepage='hdapp-hyperlink',
|
||||
widget-user.email='sib-display-mailto',
|
||||
|
@ -7,8 +7,8 @@ div.grid-layer
|
||||
h1 Members
|
||||
sib-display#profiles-list(
|
||||
data-src=`${sdn}/members/`,
|
||||
data-fields='header, infos, group, role, more',
|
||||
set-header='picture, user, pseudonym, bio, send',
|
||||
data-fields='header, infos, groups, role, more',
|
||||
set-header='picture, user, pseudonym, bio, send, city, country',
|
||||
set-infos='cell, roles, user.email, foaf:homepage, skills',
|
||||
set-pseudonym='before-pseudo,pseudo'
|
||||
label-skills='skill',
|
||||
@ -20,7 +20,6 @@ div.grid-layer
|
||||
widget-picture='sib-display-img',
|
||||
widget-user='hdapp-userinfo',
|
||||
widget-foaf:hompage='hdapp-hyperlink',
|
||||
widget-cell='hdapp-usercell',
|
||||
widget-roles='sib-display-lookuplist',
|
||||
widget-skills='sib-display-lookuplist',
|
||||
set-name='pseudo,user.first_name,user.last_name',
|
||||
|
@ -27,32 +27,6 @@ document.addEventListener('WebComponentsReady', function(event) {
|
||||
}
|
||||
customElements.define('hdapp-userinfo', HDAppUserInfo);
|
||||
|
||||
class HDAppCell extends SIBDisplayLookupList {
|
||||
get parentElement() {
|
||||
return 'div';
|
||||
}
|
||||
getTemplate(value, index) {
|
||||
var city, country;
|
||||
|
||||
if (typeof value == 'object')
|
||||
if (Object.keys(value).length > 1) {
|
||||
city = value.city;
|
||||
country = value.country;
|
||||
} else {
|
||||
store.get(value).then(resource => {
|
||||
this.value.push(resource);
|
||||
this.render();
|
||||
});
|
||||
if (Array.isArray(this.value))
|
||||
this.value.splice(this.value.indexOf(value), 1);
|
||||
else this.value = [];
|
||||
return '';
|
||||
}
|
||||
return `<span>${city} - ${country}</span>`;
|
||||
}
|
||||
}
|
||||
customElements.define('hdapp-usercell', HDAppCell);
|
||||
|
||||
class HDAppMail extends SIBWidget {
|
||||
get template() {
|
||||
return `<a href="mailto:${this.value}"><div class="icon-envelope"></div><div>SEND A MESSAGE</div></a>`;
|
||||
|
Loading…
Reference in New Issue
Block a user