2020-12-10 15:28:46 +00:00
|
|
|
solid-ac-checker(permission='acl:Read', bind-resources)
|
2021-04-15 08:06:06 +00:00
|
|
|
div.segment.full.padding-large.sm-padding-top-small.sm-padding-right-xsmall.sm-padding-bottom-small.sm-padding-left-xsmall.border-bottom.border-color-grey.whitespace-normal
|
2021-04-15 08:39:05 +00:00
|
|
|
div.segment.half.sm-three-quarter.whitespace-normal
|
2021-04-15 08:06:06 +00:00
|
|
|
solid-display.text-xlarge.text-letter-spacing-large(
|
2020-12-10 15:28:46 +00:00
|
|
|
bind-resources
|
|
|
|
fields='const-title1, number, customer.name, dash, name'
|
|
|
|
|
|
|
|
class-const-title1='text-color-heading text-bold text-uppercase'
|
|
|
|
class-number='text-color-heading text-bold text-uppercase word-spacing-right'
|
|
|
|
class-customer.name='text-color-heading text-bold text-uppercase'
|
|
|
|
class-dash='text-color-heading text-bold text-xlarge'
|
|
|
|
class-name=''
|
|
|
|
|
|
|
|
value-const-title1='N°'
|
|
|
|
value-dash=' - '
|
|
|
|
)
|
2021-01-22 13:29:45 +00:00
|
|
|
div.segment.half.sm-hidden.text-right
|
2021-02-22 20:27:58 +00:00
|
|
|
solid-link(class='backlink', bind-resources, next=`${component.route}-profile` data-trans='project.edit.backlink')
|
2021-04-14 16:33:54 +00:00
|
|
|
div.segment.lg-hidden.sm-quarter.text-right
|
2021-04-15 11:13:48 +00:00
|
|
|
div.jsMobileRightMenuButton.icon.icon-options-vertical.icon-heading
|
2019-12-18 18:50:47 +00:00
|
|
|
|
2021-01-22 13:29:45 +00:00
|
|
|
div.segment.full.padding-large.whitespace-normal
|
2020-09-14 13:41:10 +00:00
|
|
|
|
2020-09-03 10:15:47 +00:00
|
|
|
solid-ac-checker(permission='acl:Write', bind-resources)
|
2021-02-22 20:27:58 +00:00
|
|
|
div.loader.loader-top(id=`loader-${component.route}-edit`)
|
2020-09-03 10:15:47 +00:00
|
|
|
div
|
|
|
|
div
|
|
|
|
div
|
|
|
|
div
|
2020-06-01 15:29:30 +00:00
|
|
|
|
2020-12-10 15:28:46 +00:00
|
|
|
//- Add translation for description and captain in the translate file
|
2021-02-22 20:27:58 +00:00
|
|
|
|
2021-05-19 15:01:23 +00:00
|
|
|
solid-form.form(
|
|
|
|
bind-resources
|
2019-05-14 15:32:42 +00:00
|
|
|
|
2021-05-19 15:01:23 +00:00
|
|
|
range-captain=`${getComponent('projects').endpoints.captains}`
|
|
|
|
|
|
|
|
required-status
|
|
|
|
required-customer.name
|
|
|
|
required-name
|
|
|
|
required-captain
|
|
|
|
loader-id=`loader-admin-${getComponent('projects').uniq}`
|
2019-12-18 18:50:47 +00:00
|
|
|
|
2021-05-19 15:01:23 +00:00
|
|
|
label-status=''
|
|
|
|
label-projectset=''
|
|
|
|
label-customerset=''
|
|
|
|
label-name=''
|
|
|
|
label-description=''
|
|
|
|
label-help=''
|
|
|
|
label-captain=''
|
|
|
|
label-customer.name=''
|
|
|
|
label-customer.address=''
|
|
|
|
label-customer.postcode=''
|
|
|
|
label-customer.city=''
|
|
|
|
label-customer.country=''
|
2020-12-10 15:28:46 +00:00
|
|
|
|
2021-05-19 15:01:23 +00:00
|
|
|
class-projectset='segment full padding-bottom-small margin-bottom-medium border-bottom border-color-grey text-color-heading text-bold text-letter-spacing-large text-xlarge'
|
|
|
|
class-customerset='segment full padding-bottom-small margin-bottom-medium border-bottom border-color-grey text-color-heading text-bold text-letter-spacing-large text-xlarge'
|
|
|
|
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.address='segment margin-bottom-medium full sm-padding-none text-small text-semibold text-uppercase text-color-heading'
|
|
|
|
class-customer.postcode='segment margin-bottom-medium third sm-full padding-right-xsmall sm-padding-none text-small text-semibold text-uppercase text-color-heading'
|
|
|
|
class-customer.city='segment margin-bottom-medium third sm-full padding-left-xxsmall padding-righ-xxsmall sm-padding-none text-small text-semibold text-uppercase text-color-heading'
|
|
|
|
class-customer.country='segment margin-bottom-medium third sm-full padding-left-xsmall 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-help='segment full text-small margin-bottom-medium padding-left-small'
|
|
|
|
class-linebreak='segment full sm-hidden'
|
|
|
|
|
|
|
|
widget-status='solid-form-hidden'
|
|
|
|
value-status='Private'
|
|
|
|
widget-projectset='solid-form-hidden-label'
|
|
|
|
widget-customerset='solid-form-hidden-label'
|
|
|
|
widget-description='solid-form-richtext-label'
|
|
|
|
widget-captain='solid-form-dropdown-autocompletion-label'
|
|
|
|
widget-help='solid-form-hidden-label'
|
|
|
|
widget-linebreak='solid-form-hidden'
|
|
|
|
widget-customer.address="solid-form-textarea-label"
|
2021-02-22 20:27:58 +00:00
|
|
|
|
2021-05-19 15:01:23 +00:00
|
|
|
submit-button=''
|
|
|
|
submit-widget="button"
|
|
|
|
class-submit-button="submit-button segment sm-full margin-top-xsmall text-xsmall children-link-button children-link-text-bold children-link-text-uppercase children-link-reversed color-secondary bordered children-button-icon children-icon-rocket children-icon-small children-icon-margin-right-xsmall"
|
|
|
|
|
|
|
|
next=getRoute('projects', true)
|
2020-09-03 10:15:47 +00:00
|
|
|
|
2021-05-19 15:01:23 +00:00
|
|
|
data-trans='label-status=project.edit.labelStatus;label-projectset=project.edit.labelProjectset;label-customerset=project.edit.labelCustomerset;label-customer.name=project.edit.labelCustomer;label-customer.address=project.edit.labelCustomerAddress;label-customer.postcode=project.edit.labelCustomerPostcode;label-customer.city=project.edit.labelCustomerCity;label-customer.country=project.edit.labelCustomerCountry;label-name=project.edit.labelName;label-description=project.edit.labelDescription;label-captain=project.edit.labelCaptain;label-help=project.edit.descriptionHelp;submit-button=project.edit.buttonSubmit'
|
|
|
|
)&attributes({
|
2021-05-20 10:57:50 +00:00
|
|
|
"fields": (componentSet.has('invoices') && getRoute('invoices')) ? "status, projectset, name, captain, description, help, linebreak, customerset, customer.name, customer.address, customer.postcode, customer.city, customer.country" : "status, name, captain, description, help, customer.name, linebreak",
|
|
|
|
"class-captain": (componentSet.has('invoices') && getRoute('invoices')) ? 'segment margin-bottom-medium half sm-full padding-left-small sm-padding-none text-small text-semibold text-uppercase text-color-heading whitespace-normal' : '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-name": (componentSet.has('invoices') && getRoute('invoices')) ? 'segment margin-bottom-medium half sm-full padding-right-small sm-padding-none text-small text-semibold text-uppercase text-color-heading' : 'segment margin-bottom-medium half sm-full sm-padding-none text-small text-semibold text-uppercase text-color-heading'
|
2021-04-28 14:17:23 +00:00
|
|
|
})
|
2021-05-19 15:01:23 +00:00
|
|
|
|
2021-05-20 10:57:50 +00:00
|
|
|
if componentSet.has('invoices') && getRoute('invoices')
|
2021-05-06 10:10:51 +00:00
|
|
|
h3.segment.full.padding-bottom-small.border-bottom.border-color-grey.text-color-heading.text-bold.text-letter-spacing-large(data-trans='project.edit.businessProviderTitle')
|
|
|
|
|
|
|
|
.segment.table-wrapper.margin-top-medium
|
|
|
|
.table
|
|
|
|
div.table-header.bg-color-third.text-color-heading
|
|
|
|
div.segment.table-cell.third(data-trans='project.edit.businessTableHeader1')
|
|
|
|
div.segment.table-cell.third(data-trans='project.edit.businessTableHeader2')
|
|
|
|
div.segment.table-cell.third
|
|
|
|
|
|
|
|
solid-display(
|
|
|
|
bind-resources
|
|
|
|
class='table-body'
|
|
|
|
nested-field='businessprovider'
|
|
|
|
fields='segment1(name), segment2(fee), remove'
|
|
|
|
|
|
|
|
class-segment1='segment table-cell third text-center'
|
|
|
|
class-segment2='segment table-cell third text-center'
|
|
|
|
class-remove='segment table-cell third text-center'
|
|
|
|
|
|
|
|
class-name='text-small text-semibold'
|
|
|
|
class-fee='text-small text-semibold'
|
|
|
|
|
|
|
|
multiple-businessprovider
|
|
|
|
multiple-businessprovider-fields="name, fee"
|
|
|
|
|
|
|
|
action-remove='remove'
|
|
|
|
widget-remove='hubl-circle-edit-members-delete'
|
|
|
|
)
|
|
|
|
|
|
|
|
solid-form.form.table-body.edit-businessprovider(
|
|
|
|
bind-resources
|
|
|
|
class='table-body'
|
|
|
|
nested-field='businessprovider'
|
|
|
|
fields='segment1(name), segment2(fee)'
|
|
|
|
|
|
|
|
placeholder-name=""
|
|
|
|
placeholder-fee=""
|
|
|
|
|
|
|
|
class-segment1='segment table-cell third text-center'
|
|
|
|
class-segment2='segment table-cell third text-center'
|
|
|
|
|
|
|
|
class-name="segment full text-small"
|
|
|
|
class-fee="segment full text-small"
|
|
|
|
|
|
|
|
widget-name="solid-form-placeholder-text"
|
|
|
|
widget-fee="solid-form-placeholder-text"
|
|
|
|
|
|
|
|
submit-button=''
|
|
|
|
submit-widget="button"
|
2021-05-12 18:30:08 +00:00
|
|
|
class-submit-button="segment children text-xsmall children-link-button children-link-text-bold children-link-text-uppercase children-link-color-secondary bordered"
|
2021-05-06 10:10:51 +00:00
|
|
|
|
|
|
|
data-trans='submit-button=project.edit.buttonAddBusinessProvider;placeholder-name=project.edit.businessTableHeader1;placeholder-fee=project.edit.businessTableHeader2'
|
|
|
|
)
|
|
|
|
|
2019-08-06 12:32:55 +00:00
|
|
|
|
2021-01-22 13:29:45 +00:00
|
|
|
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')
|
2019-08-06 12:32:55 +00:00
|
|
|
|
2020-09-03 10:15:47 +00:00
|
|
|
solid-ac-checker(permission='acl:Append', bind-resources, nested-field='members')
|
2021-05-12 18:30:08 +00:00
|
|
|
solid-form.segment.block.margin-bottom-xlarge.sm-whitespace-normal.form(
|
2020-09-03 10:15:47 +00:00
|
|
|
bind-resources
|
|
|
|
nested-field='members'
|
|
|
|
fields='user'
|
2021-02-22 20:27:58 +00:00
|
|
|
range-user=`${component.endpoints.users}`
|
2019-08-06 12:32:55 +00:00
|
|
|
|
2021-05-12 18:30:08 +00:00
|
|
|
class-user='add-member'
|
2020-09-03 10:15:47 +00:00
|
|
|
label-user=''
|
2020-09-23 15:25:38 +00:00
|
|
|
widget-user='solid-form-dropdown-autocompletion'
|
2019-12-18 18:50:47 +00:00
|
|
|
|
2020-10-21 13:31:05 +00:00
|
|
|
submit-button=''
|
2021-03-16 14:27:30 +00:00
|
|
|
submit-widget="button"
|
2021-05-12 18:30:08 +00:00
|
|
|
class-submit-button="add-member-button segment sm-full margin-top-xsmall text-xsmall children-link-button children-link-text-bold children-link-text-uppercase children-link-color-secondary bordered"
|
2020-10-22 17:18:32 +00:00
|
|
|
data-trans='submit-button=project.edit.buttonAddMember'
|
2020-09-03 10:15:47 +00:00
|
|
|
)
|
2019-12-18 18:50:47 +00:00
|
|
|
|
2021-01-10 17:23:22 +00:00
|
|
|
.segment.table-wrapper
|
2020-06-15 12:27:49 +00:00
|
|
|
.table
|
2020-12-10 15:28:46 +00:00
|
|
|
div.table-header.bg-color-third.text-color-heading
|
2021-01-22 13:29:45 +00:00
|
|
|
div.segment.table-cell.half(data-trans='project.edit.tableHeader2')
|
|
|
|
div.segment.table-cell.half(data-trans='project.edit.tableHeader1')
|
2020-06-15 12:27:49 +00:00
|
|
|
|
2020-06-18 18:02:54 +00:00
|
|
|
solid-display(
|
2020-06-15 12:27:49 +00:00
|
|
|
class='table-body'
|
|
|
|
bind-resources
|
2020-09-14 13:41:10 +00:00
|
|
|
nested-field='members'
|
2021-01-08 14:39:37 +00:00
|
|
|
fields='cell(segment1(user.account.picture), segment2(line1(user.name, is_admin), line2(atom, user.communities))), self'
|
2021-02-22 20:27:58 +00:00
|
|
|
loader-id=`loader-${component.route}-edit`
|
2020-06-15 12:27:49 +00:00
|
|
|
|
2021-01-22 13:29:45 +00:00
|
|
|
class-cell='segment table-cell half labelled-avatar two-lines text-left'
|
|
|
|
class-self='segment table-cell half text-center'
|
2021-01-08 14:39:37 +00:00
|
|
|
|
|
|
|
class-segment1='segment'
|
|
|
|
class-user.account.picture='avatar'
|
|
|
|
|
2021-01-22 13:29:45 +00:00
|
|
|
class-segment2='segment three-quarter margin-left-xsmall'
|
|
|
|
class-line1='segment block'
|
|
|
|
class-user.name='text-small text-semibold text-color-heading text-sub margin-right-medium'
|
|
|
|
class-is_admin='segment tag color-primary'
|
|
|
|
class-line2='segment block'
|
2021-01-08 14:39:37 +00:00
|
|
|
class-atom='icon icon-large icon-third mdi-atom margin-right-xxsmall'
|
2021-01-22 13:29:45 +00:00
|
|
|
class-user.communities='full'
|
2021-02-22 20:27:58 +00:00
|
|
|
|
2020-10-13 16:18:13 +00:00
|
|
|
multiple-user.communities
|
|
|
|
multiple-user.communities-fields="community.name"
|
2020-09-14 13:41:10 +00:00
|
|
|
|
|
|
|
widget-user.account.picture='hubl-user-avatar'
|
2021-01-08 14:39:37 +00:00
|
|
|
widget-is_admin='hubl-project-edit-admin'
|
2020-09-14 13:41:10 +00:00
|
|
|
|
|
|
|
action-self='self'
|
2021-02-22 20:27:58 +00:00
|
|
|
widget-self='hubl-project-edit-members-delete'
|
2020-06-15 12:27:49 +00:00
|
|
|
)
|