Adapted Sib App for ETUC & more flexible way to handle optional components
This commit is contained in:
@ -10,7 +10,7 @@ div.content-box__info
|
||||
sib-form(
|
||||
data-holder
|
||||
fields='user, project'
|
||||
range-user=`${endpoints.users}`
|
||||
range-user=`${endpoints.users || endpoints.get.users}`
|
||||
value-project='${src}'
|
||||
widget-project='sib-form-hidden'
|
||||
naked
|
||||
@ -19,7 +19,7 @@ div.content-box__info
|
||||
h1.centered New project
|
||||
|
||||
sib-form.block(
|
||||
data-src=`${endpoints.projects}`
|
||||
data-src=`${endpoints.projects || endpoints.post.projects}`
|
||||
|
||||
fields='line-1(customer, name), line-3(project.description), fieldset-fee, line-4(businessProvider.name, businessProvider.fee), fieldset-captain, line-10(captain)'
|
||||
|
||||
@ -33,7 +33,7 @@ div.content-box__info
|
||||
|
||||
label-customer='Customer'
|
||||
class-customer='member-select form-label is-light is-half-width'
|
||||
range-customer=`${endpoints.customers}`
|
||||
range-customer=`${endpoints.customers || endpoints.get.customers}`
|
||||
widget-customer='sib-form-auto-completion'
|
||||
|
||||
label-name='Project\'s name*'
|
||||
@ -49,7 +49,7 @@ div.content-box__info
|
||||
label-businessProvider.fee='Amount of the contribution'
|
||||
class-businessProvider.fee='form-label is-light is-half-width'
|
||||
|
||||
range-captain=`${endpoints.users}`
|
||||
range-captain=`${endpoints.users || endpoints.get.users}`
|
||||
class-captain='member-select form-label is-light is-half-width'
|
||||
widget-captain='sib-form-auto-completion'
|
||||
|
||||
|
Reference in New Issue
Block a user