update: add client address on edit and create form
This commit is contained in:
parent
df030b04e5
commit
13c4aa488a
@ -202,6 +202,7 @@
|
|||||||
"labelDescription": "Project description",
|
"labelDescription": "Project description",
|
||||||
"descriptionHelp": "You can use markdown",
|
"descriptionHelp": "You can use markdown",
|
||||||
"labelCustomer": "Customer name*",
|
"labelCustomer": "Customer name*",
|
||||||
|
"labelCustomerAddress": "Customer address",
|
||||||
"labelCaptain": "Project captain*",
|
"labelCaptain": "Project captain*",
|
||||||
"buttonSubmit": "Save"
|
"buttonSubmit": "Save"
|
||||||
},
|
},
|
||||||
@ -211,6 +212,7 @@
|
|||||||
"title": "Edit your project",
|
"title": "Edit your project",
|
||||||
"labelName": "Project name *",
|
"labelName": "Project name *",
|
||||||
"labelCustomer": "Customer name *",
|
"labelCustomer": "Customer name *",
|
||||||
|
"labelCustomerAddress": "Customer address",
|
||||||
"labelCaptain": "Captain *",
|
"labelCaptain": "Captain *",
|
||||||
"labelDescription": "Project description",
|
"labelDescription": "Project description",
|
||||||
"descriptionHelp": "You can use markdown",
|
"descriptionHelp": "You can use markdown",
|
||||||
|
@ -202,6 +202,7 @@
|
|||||||
"labelDescription": "Descripción del proyecto",
|
"labelDescription": "Descripción del proyecto",
|
||||||
"descriptionHelp": "Puedes usar markdown",
|
"descriptionHelp": "Puedes usar markdown",
|
||||||
"labelCustomer": "Nombre del/la clientx *",
|
"labelCustomer": "Nombre del/la clientx *",
|
||||||
|
"labelCustomerAddress": "Dirección del/la clientx",
|
||||||
"labelCaptain": "Líder del proyecto *",
|
"labelCaptain": "Líder del proyecto *",
|
||||||
"buttonSubmit": "Guardar"
|
"buttonSubmit": "Guardar"
|
||||||
},
|
},
|
||||||
@ -211,6 +212,7 @@
|
|||||||
"title": "Modificar tu proyecto",
|
"title": "Modificar tu proyecto",
|
||||||
"labelName": "Nombre del proyecto *",
|
"labelName": "Nombre del proyecto *",
|
||||||
"labelCustomer": "Nombre del/la clientx *",
|
"labelCustomer": "Nombre del/la clientx *",
|
||||||
|
"labelCustomerAddress": "Dirección del/la clientx",
|
||||||
"labelCaptain": "Capitain *",
|
"labelCaptain": "Capitain *",
|
||||||
"labelDescription": "Descripción del proyecto",
|
"labelDescription": "Descripción del proyecto",
|
||||||
"descriptionHelp": "Puedes usar markdown",
|
"descriptionHelp": "Puedes usar markdown",
|
||||||
|
@ -200,6 +200,7 @@
|
|||||||
"labelDescription": "Description du projet",
|
"labelDescription": "Description du projet",
|
||||||
"descriptionHelp": "Vous pouvez utiliser Markdown",
|
"descriptionHelp": "Vous pouvez utiliser Markdown",
|
||||||
"labelCustomer": "Nom du client*",
|
"labelCustomer": "Nom du client*",
|
||||||
|
"labelCustomerAddress": "Adresse du client",
|
||||||
"labelCaptain": "Capitaine du projet*",
|
"labelCaptain": "Capitaine du projet*",
|
||||||
"buttonSubmit": "Enregistrer"
|
"buttonSubmit": "Enregistrer"
|
||||||
},
|
},
|
||||||
@ -209,6 +210,7 @@
|
|||||||
"title": "Modifie ton projet",
|
"title": "Modifie ton projet",
|
||||||
"labelName": "Nom du projet *",
|
"labelName": "Nom du projet *",
|
||||||
"labelCustomer": "Nom du client *",
|
"labelCustomer": "Nom du client *",
|
||||||
|
"labelCustomerAddress": "Adresse du client",
|
||||||
"labelCaptain": "Capitaine *",
|
"labelCaptain": "Capitaine *",
|
||||||
"labelDescription": "Description du projet",
|
"labelDescription": "Description du projet",
|
||||||
"descriptionHelp": "Vous pouvez utiliser Markdown",
|
"descriptionHelp": "Vous pouvez utiliser Markdown",
|
||||||
|
@ -16,7 +16,7 @@ div.segment.full.padding-large.sm-padding-xsmall.sm-padding-top-medium.whitespac
|
|||||||
solid-form.form(
|
solid-form.form(
|
||||||
data-src=`${getComponent('projects').endpoints.post}`
|
data-src=`${getComponent('projects').endpoints.post}`
|
||||||
|
|
||||||
fields='status, customer.name, name, description, help, captain, linebreak'
|
fields='status,customer(customer.name, customer.address), name, description, help, captain, linebreak'
|
||||||
range-captain=`${getComponent('projects').endpoints.captains}`
|
range-captain=`${getComponent('projects').endpoints.captains}`
|
||||||
|
|
||||||
required-status
|
required-status
|
||||||
@ -27,13 +27,15 @@ div.segment.full.padding-large.sm-padding-xsmall.sm-padding-top-medium.whitespac
|
|||||||
|
|
||||||
label-status=''
|
label-status=''
|
||||||
label-customer.name=''
|
label-customer.name=''
|
||||||
|
label-customer.address=''
|
||||||
label-name=''
|
label-name=''
|
||||||
label-description=''
|
label-description=''
|
||||||
label-help=''
|
label-help=''
|
||||||
label-captain=''
|
label-captain=''
|
||||||
|
|
||||||
class-customer.name='segment margin-bottom-medium half sm-full padding-right-small sm-padding-none text-small text-semibold text-uppercase text-color-heading'
|
class-customer.name='segment margin-bottom-medium half sm-full padding-right-small sm-padding-none text-small text-semibold text-uppercase text-color-heading'
|
||||||
class-name='segment margin-bottom-medium half sm-full padding-left-small sm-padding-none text-small text-semibold text-uppercase text-color-heading'
|
class-customer.address='segment margin-bottom-medium half sm-full padding-right-small sm-padding-none text-small text-semibold text-uppercase text-color-heading'
|
||||||
|
class-name='segment margin-bottom-medium half sm-full sm-padding-none text-small text-semibold text-uppercase text-color-heading'
|
||||||
class-description='segment margin-bottom-xxsmall full text-small text-semibold text-uppercase text-color-heading'
|
class-description='segment margin-bottom-xxsmall full text-small text-semibold text-uppercase text-color-heading'
|
||||||
class-help='segment full text-small margin-bottom-medium padding-left-small'
|
class-help='segment full text-small margin-bottom-medium padding-left-small'
|
||||||
class-captain='segment margin-bottom-medium half sm-full padding-right-small sm-padding-none text-small text-semibold text-uppercase text-color-heading whitespace-normal'
|
class-captain='segment margin-bottom-medium half sm-full padding-right-small sm-padding-none text-small text-semibold text-uppercase text-color-heading whitespace-normal'
|
||||||
@ -50,5 +52,5 @@ div.segment.full.padding-large.sm-padding-xsmall.sm-padding-top-medium.whitespac
|
|||||||
submit-widget="button"
|
submit-widget="button"
|
||||||
next=getRoute('projects', true)
|
next=getRoute('projects', true)
|
||||||
|
|
||||||
data-trans='label-status=project.create.labelStatus;label-customer.name=project.create.labelCustomer;label-name=project.create.labelName;label-description=project.create.labelDescription;label-captain=project.create.labelCaptain;label-help=project.create.descriptionHelp;submit-button=project.create.buttonSubmit'
|
data-trans='label-status=project.create.labelStatus;label-customer.name=project.create.labelCustomer;label-customer.address=project.create.labelCustomerAddress;label-name=project.create.labelName;label-description=project.create.labelDescription;label-captain=project.create.labelCaptain;label-help=project.create.descriptionHelp;submit-button=project.create.buttonSubmit'
|
||||||
)
|
)
|
||||||
|
@ -32,7 +32,7 @@ div.segment.full.padding-large.whitespace-normal
|
|||||||
solid-form.form(
|
solid-form.form(
|
||||||
bind-resources
|
bind-resources
|
||||||
|
|
||||||
fields='customer.name, name, description, help, captain, linebreak'
|
fields='customer(customer.name, customer.address), name, description, help, captain, linebreak'
|
||||||
required-customer.name
|
required-customer.name
|
||||||
required-name
|
required-name
|
||||||
required-captain
|
required-captain
|
||||||
@ -40,12 +40,14 @@ div.segment.full.padding-large.whitespace-normal
|
|||||||
|
|
||||||
label-name=''
|
label-name=''
|
||||||
label-customer.name=''
|
label-customer.name=''
|
||||||
|
label-customer.address=''
|
||||||
label-description=''
|
label-description=''
|
||||||
label-captain=''
|
label-captain=''
|
||||||
label-help=''
|
label-help=''
|
||||||
|
|
||||||
class-customer.name='segment margin-bottom-medium half sm-full padding-right-small sm-padding-none text-small text-semibold text-uppercase text-color-heading'
|
class-customer.name='segment margin-bottom-medium half sm-full padding-right-small sm-padding-none text-small text-semibold text-uppercase text-color-heading'
|
||||||
class-name='segment margin-bottom-medium half sm-full padding-left-small sm-padding-none text-small text-semibold text-uppercase text-color-heading'
|
class-customer.address='segment margin-bottom-medium half sm-full padding-right-small sm-padding-none text-small text-semibold text-uppercase text-color-heading'
|
||||||
|
class-name='segment margin-bottom-medium half sm-full sm-padding-none text-small text-semibold text-uppercase text-color-heading'
|
||||||
class-description='segment margin-bottom-xxsmall full text-small text-semibold text-uppercase text-color-heading'
|
class-description='segment margin-bottom-xxsmall full text-small text-semibold text-uppercase text-color-heading'
|
||||||
class-captain='segment margin-bottom-medium half sm-full padding-right-small sm-padding-none text-small text-semibold text-uppercase text-color-heading whitespace-normal'
|
class-captain='segment margin-bottom-medium half sm-full padding-right-small sm-padding-none text-small text-semibold text-uppercase text-color-heading whitespace-normal'
|
||||||
class-linebreak='segment full'
|
class-linebreak='segment full'
|
||||||
@ -62,7 +64,7 @@ div.segment.full.padding-large.whitespace-normal
|
|||||||
submit-widget="button"
|
submit-widget="button"
|
||||||
next=`${component.route}-information`
|
next=`${component.route}-information`
|
||||||
|
|
||||||
data-trans='label-name=project.edit.labelName;label-captain=project.edit.labelCaptain;label-customer.name=project.edit.labelCustomer;label-description=project.edit.labelDescription;label-help=project.edit.descriptionHelp;submit-button=project.edit.buttonSubmit'
|
data-trans='label-name=project.edit.labelName;label-captain=project.edit.labelCaptain;label-customer.name=project.edit.labelCustomer;label-customer.address=project.edit.labelCustomerAddress;label-description=project.edit.labelDescription;label-help=project.edit.descriptionHelp;submit-button=project.edit.buttonSubmit'
|
||||||
)
|
)
|
||||||
|
|
||||||
h3.segment.full.padding-bottom-small.border-bottom.border-color-grey.text-color-heading.text-bold.text-letter-spacing-large(data-trans='project.edit.subTitle')
|
h3.segment.full.padding-bottom-small.border-bottom.border-color-grey.text-color-heading.text-bold.text-letter-spacing-large(data-trans='project.edit.subTitle')
|
||||||
|
Loading…
Reference in New Issue
Block a user