hubl/src/views/admin/page-admin-projects-create.pug

60 lines
1.9 KiB
Plaintext
Raw Normal View History

sib-widget(name='hd-template-project-title')
template
p ${value}
div.content-box__info
2020-04-02 16:09:23 +00:00
sib-link(class="backlink right" next='admin-project-list') Back
2019-12-12 13:34:09 +00:00
sib-widget(name="admin-project-add-user")
template
sib-form(
data-holder
fields='user, project'
range-user=`${endpoints.users || endpoints.get.users}`
2019-12-12 13:34:09 +00:00
value-project='${src}'
widget-project='sib-form-hidden'
naked
)
h1.centered New project
2020-04-02 16:09:23 +00:00
sib-form(
data-src=`${endpoints.projects || endpoints.post.projects}`
2020-01-14 10:57:22 +00:00
fields='line-1(customer, name), line-3(project.description), fieldset-fee, line-4(businessProvider.name, businessProvider.fee), fieldset-captain, line-10(captain)'
class-fieldset-fee='fieldset'
value-fieldset-fee='Fee'
widget-fieldset-fee='hd-template-project-title'
class-fieldset-captain='fieldset'
value-fieldset-captain='Captain'
widget-fieldset-captain='hd-template-project-title'
2020-01-14 10:57:22 +00:00
label-customer='Customer'
class-customer='member-select form-label is-light is-half-width'
range-customer=`${endpoints.customers || endpoints.get.customers}`
widget-customer='sib-form-auto-completion'
label-name='Project\'s name*'
class-name='form-label is-light is-half-width'
label-project.description='Project description'
class-project.description='form-label is-light is-full-width'
widget-project.description='sib-form-textarea'
label-businessProvider.name='Business provider*'
class-businessProvider.name='form-label is-light is-half-width'
label-businessProvider.fee='Amount of the contribution'
class-businessProvider.fee='form-label is-light is-half-width'
range-captain=`${endpoints.users || endpoints.get.users}`
class-captain='member-select form-label is-light is-half-width'
widget-captain='sib-form-auto-completion'
next='admin-project-list'
submit-button='Save'
)