fix: Customer additional field

This commit is contained in:
Jure Ursic 2020-06-18 04:58:39 +02:00
parent 628fec9a94
commit eed570dc87
5 changed files with 12 additions and 8 deletions

View File

@ -19,9 +19,7 @@ if endpoints.events || (endpoints.get && endpoints.get.events)
if endpoints.joboffers || (endpoints.get && endpoints.get.joboffers)
script(type="module" src="https://unpkg.com/@startinblox/component-job-board@0.3" defer)
script(type="module" src="https://unpkg.com/@startinblox/component-conversation@0.3" defer)
//- script(type="module" src="/lib/sib-job-board/sib-job-board.js" defer)
//- script(type="module" src="/lib/sib-conversation/sib-conversation.js" defer)
//- script(type="module" src="/lib/sib-job-board/dist/index.js" defer)
if (endpoints.uploads || (endpoints.get && endpoints.get.uploads)) && (endpoints.skills || (endpoints.get && endpoints.get.skills)) && (endpoints.users || (endpoints.get && endpoints.get.users))
script(type="module" src="https://unpkg.com/@startinblox/component-directory@0.4" defer)

View File

@ -34,5 +34,4 @@ nav.jsRightMenu(role='navigation')
sib-route(name='project-information')
li
a Information
sib-route(name='project-contributions-help')
sib-route(name='project-picture' use-id)

View File

@ -27,9 +27,15 @@ async function updateSources(resource) {
async function resToChildrens(resource) {
resource = resource.getResourceData();
refreshSibDisplays(resource["http://happy-dev.fr/owl/#user"]["@id"]);
refreshSibDisplays(resource["http://happy-dev.fr/owl/#project"]["@id"] + "members/");
refreshSibDisplays(resource["http://happy-dev.fr/owl/#circle"]["@id"] + "members/");
if (resource["http://happy-dev.fr/owl/#user"]) {
refreshSibDisplays(resource["http://happy-dev.fr/owl/#user"]["@id"]);
}
if (resource["http://happy-dev.fr/owl/#project"]) {
refreshSibDisplays(resource["http://happy-dev.fr/owl/#project"]["@id"] + "members/");
}
if (resource["http://happy-dev.fr/owl/#circle"]) {
refreshSibDisplays(resource["http://happy-dev.fr/owl/#circle"]["@id"] + "members/");
}
}
//auxiliary function updates displays using a given resource

View File

@ -31,7 +31,7 @@ div.content-box__info
next='project-information'
)
h2 PPhoto du projet
h2 Photo du projet
sib-form.form-picture(
bind-resources

View File

@ -11,4 +11,5 @@ div.content-box__info
nested-fields='customer'
fields='logo'
next='project-edit'
additional='name'
)