From 52dc49fcd26333cfa3e0ebae1aa9e1fb38314da4 Mon Sep 17 00:00:00 2001 From: gaelle morin Date: Wed, 8 Jan 2020 10:58:59 +0100 Subject: [PATCH] 'fieldset' added to admin-project-create --- src/page-admin-projects-create.pug | 18 +++++++++++++++++- src/styles/base/form.scss | 3 ++- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/src/page-admin-projects-create.pug b/src/page-admin-projects-create.pug index 808edc0..7a36080 100644 --- a/src/page-admin-projects-create.pug +++ b/src/page-admin-projects-create.pug @@ -1,3 +1,7 @@ +sib-widget(name='hd-template-project-title') + template + p ${value} + div.content-box__info sib-link(class="backlink" next='admin-project-list') Back @@ -17,7 +21,19 @@ div.content-box__info sib-form.block( data-src=`${endpoints.projects}` - fields='line-1(customer.name, name), line-2(customer.logo), line-3(project.description), line-4(businessProvider.name, businessProvider.fee), line-5(customer.companyRegister), line-6(customer.address), line-7(customer.firstName, customer.lastName), line-8(customer.role), line-9(customer.email, customer.phone), line-10(captain)' + fields='line-1(customer.name, name), line-2(customer.logo), line-3(project.description), fieldset-fee, line-4(businessProvider.name, businessProvider.fee), fieldset-customer, line-5(customer.companyRegister), line-6(customer.address), line-7(customer.firstName, customer.lastName), line-8(customer.role), line-9(customer.email, customer.phone), fieldset-captain, line-10(captain)' + + class-fieldset-fee='fieldset' + value-fieldset-fee='Fee' + widget-fieldset-fee='hd-template-project-title' + + class-fieldset-customer='fieldset' + value-fieldset-customer='Customer\'s information' + widget-fieldset-customer='hd-template-project-title' + + class-fieldset-captain='fieldset' + value-fieldset-captain='Captain' + widget-fieldset-captain='hd-template-project-title' label-customer.name='Customer\'s name*' class-customer.name='form-label is-light is-half-width' diff --git a/src/styles/base/form.scss b/src/styles/base/form.scss index ef13710..3dff76e 100644 --- a/src/styles/base/form.scss +++ b/src/styles/base/form.scss @@ -19,7 +19,8 @@ flex: 1 0 100%; font-size: 1.8rem; font-weight: 600; - padding-bottom: 1rem; + margin: 2.6rem 0 1.8rem; + padding-bottom: 0.8rem; } p.center {