diff --git a/config.sample.json b/config.sample.json index 27aed52..54ce4fc 100644 --- a/config.sample.json +++ b/config.sample.json @@ -7,6 +7,7 @@ "groups": "http://localhost:8000/groups/", "joboffers": "http://localhost:8000/job-offers/", "projects": "http://localhost:8000/projects/", + "customers": "http://localhost:8000/customers/", "skills": "http://localhost:8000/skills/", "users": "http://localhost:8000/users/" } diff --git a/src/page-project-edit.pug b/src/page-project-edit.pug index 19a0dc1..2ea3ab8 100644 --- a/src/page-project-edit.pug +++ b/src/page-project-edit.pug @@ -13,18 +13,16 @@ div.content-box__info sib-form.form-container.block( bind-resources - fields='fieldset-info, block-project__info(customer.name, name, customer.logo, description), fieldset-fee, block-project__fee(businessProvider, businessProviderFee), fieldset-customer, block-project__customer(customer.companyRegister, customer.address, customer.firstName, customer.lastName, customer.role, customer.email, customer.phone)' + fields='fieldset-info, block-project__info(customer, name, description), fieldset-fee, block-project__fee(businessProvider, businessProviderFee)' - class-customer.name='form-label is-light is-half-width' + class-customer='form-label is-light is-half-width' class-name='form-label is-light is-half-width' - class-customer.logo='form-label is-light is-full-width' class-description='form-label is-light is-full-width' label-fieldset-info='' - label-customer.name='Customer\'s name' + label-customer='Customer' + range-customer=`${endpoints.customer}` label-name='Project\'s name*' - label-customer.logo='Customer\'s logo' label-description='Project description' - upload-url-customer.logo='' widget-fieldset-info='hd-fieldset-title' widget-description='sib-form-textarea' @@ -36,24 +34,6 @@ div.content-box__info label-businessproviderfee='Amount of the contribution' widget-fieldset-fee='hd-fieldset-title' - class-fieldset-customer='fieldset' - class-customer.companyregister='form-label is-light is-half-width' - class-customer.address='form-label is-light is-half-width' - class-customer.firstname='form-label is-light is-half-width' - class-customer.lastname='form-label is-light is-half-width' - class-customer.role='form-label is-light is-half-width' - class-customer.email='form-label is-light is-half-width' - class-customer.phone='form-label is-light is-half-width' - label-fieldset-customer='Customer\'s information' - label-customer.companyregister='Company register*' - label-customer.address='Address' - label-customer.firstname='Name of the contact at the customer\'s premises' - label-customer.lastname='Firstname of the contact at the customer\'s premises' - label-customer.role='Role within the company' - label-customer.email='Email' - label-customer.phone='Phone' - widget-fieldset-customer='hd-fieldset-title' - submit-button='Save' )