2020-12-10 15:28:46 +00:00
|
|
|
solid-ac-checker(permission='acl:Read', bind-resources)
|
2021-01-05 17:18:43 +00:00
|
|
|
div.segment.lg-full.padding-large.border-bottom.border-color-grey
|
|
|
|
div.segment.lg-half
|
2020-12-10 15:28:46 +00:00
|
|
|
solid-display.text-xxlarge.text-letter-spacing-large(
|
|
|
|
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-05 17:18:43 +00:00
|
|
|
div.segment.lg-half.text-right
|
2021-01-15 09:37:22 +00:00
|
|
|
solid-link(class='backlink', bind-resources, next='project-profile' data-trans='project.edit.backlink')
|
2019-12-18 18:50:47 +00:00
|
|
|
|
2021-01-05 17:18:43 +00:00
|
|
|
div.segment.lg-full.padding-large.whitespace-normal
|
2020-09-14 13:41:10 +00:00
|
|
|
|
|
|
|
solid-widget(name="project-edit-members-delete")
|
|
|
|
template
|
|
|
|
solid-ac-checker(permission="acl:Delete" data-src="${src}")
|
|
|
|
solid-delete(
|
2020-12-10 15:28:46 +00:00
|
|
|
class='button text-xsmall text-bold text-uppercase color-secondary bordered'
|
2020-09-14 13:41:10 +00:00
|
|
|
data-src="${src}"
|
2020-10-21 13:31:05 +00:00
|
|
|
data-label=''
|
|
|
|
data-trans='data-label=project.edit.buttonDelete'
|
2020-09-14 13:41:10 +00:00
|
|
|
)
|
2019-12-18 18:50:47 +00:00
|
|
|
|
2021-01-08 14:39:37 +00:00
|
|
|
solid-widget(name='hubl-project-edit-admin')
|
|
|
|
template ${value ? "Administrateur" : ""}
|
|
|
|
|
2020-09-03 10:15:47 +00:00
|
|
|
solid-ac-checker(permission='acl:Write', bind-resources)
|
|
|
|
div#loader-project-edit.loader.loader-top
|
|
|
|
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-01-08 14:39:37 +00:00
|
|
|
solid-form.form(
|
2020-09-03 10:15:47 +00:00
|
|
|
bind-resources
|
|
|
|
|
2021-01-08 14:39:37 +00:00
|
|
|
fields='customer.name, name, description, captain, linebreak'
|
2020-09-24 10:56:19 +00:00
|
|
|
required-customer.name
|
|
|
|
required-name
|
2020-12-10 15:28:46 +00:00
|
|
|
required-captain
|
|
|
|
range-captain=`${endpoints.users || endpoints.get.users}`
|
2019-05-14 15:32:42 +00:00
|
|
|
|
2020-10-21 13:31:05 +00:00
|
|
|
label-name=''
|
|
|
|
label-customer.name=''
|
2020-12-10 15:28:46 +00:00
|
|
|
label-description=''
|
|
|
|
label-captain=''
|
2019-12-18 18:50:47 +00:00
|
|
|
|
2021-01-05 17:18:43 +00:00
|
|
|
class-customer.name='segment margin-bottom-medium lg-half padding-right-small text-small text-semibold text-uppercase text-color-heading'
|
|
|
|
class-name='segment margin-bottom-medium lg-half padding-left-small text-small text-semibold text-uppercase text-color-heading'
|
2020-12-10 15:28:46 +00:00
|
|
|
class-description='segment margin-bottom-medium lg-full text-small text-semibold text-uppercase text-color-heading'
|
2021-01-08 14:39:37 +00:00
|
|
|
class-captain='segment margin-bottom-medium lg-half padding-right-small text-small text-semibold text-uppercase text-color-heading whitespace-normal'
|
|
|
|
class-linebreak='segment lg-full'
|
2020-12-10 15:28:46 +00:00
|
|
|
|
2021-01-10 17:23:22 +00:00
|
|
|
widget-description='solid-form-textarea-label'
|
2020-12-10 15:28:46 +00:00
|
|
|
widget-captain='solid-form-dropdown-autocompletion-label'
|
2021-01-08 14:39:37 +00:00
|
|
|
widget-linebreak='solid-form-hidden'
|
2020-12-10 15:28:46 +00:00
|
|
|
|
2020-09-03 10:15:47 +00:00
|
|
|
partial=""
|
|
|
|
|
|
|
|
submit-button='Enregistrer'
|
|
|
|
next='project-information'
|
2020-10-21 14:18:23 +00:00
|
|
|
|
2020-12-14 13:18:26 +00:00
|
|
|
data-trans='label-name=project.edit.labelName;label-captain=project.edit.labelCaptain;label-customer.name=project.edit.labelCustomer;label-description=project.edit.labelDescription;submit-button=project.edit.buttonSubmit'
|
2020-09-03 10:15:47 +00:00
|
|
|
)
|
2019-08-06 12:32:55 +00:00
|
|
|
|
2021-01-05 17:18:43 +00:00
|
|
|
h3.segment.lg-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-01-08 14:39:37 +00:00
|
|
|
solid-form.block.segment.margin-bottom-xlarge.form(
|
2020-09-03 10:15:47 +00:00
|
|
|
bind-resources
|
|
|
|
nested-field='members'
|
|
|
|
fields='user'
|
|
|
|
range-user=`${endpoints.users || endpoints.get.users}`
|
2019-08-06 12:32:55 +00:00
|
|
|
|
2020-12-10 15:28:46 +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=''
|
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-10 17:23:22 +00:00
|
|
|
div.segment.table-cell.lg-two-third(data-trans='project.edit.tableHeader1')
|
|
|
|
div.segment.table-cell.lg-third(data-trans='project.edit.tableHeader2')
|
2020-06-15 12:27:49 +00:00
|
|
|
|
|
|
|
//-class='table-body'
|
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'
|
2020-09-03 10:15:47 +00:00
|
|
|
loader-id='loader-project-edit'
|
2020-06-15 12:27:49 +00:00
|
|
|
|
2021-01-21 13:58:43 +00:00
|
|
|
class-cell='segment table-cell lg-two-third labelled-avatar two-lines text-left'
|
|
|
|
class-self='segment table-cell lg-third text-center'
|
2021-01-08 14:39:37 +00:00
|
|
|
|
|
|
|
class-segment1='segment'
|
|
|
|
class-user.account.picture='avatar'
|
|
|
|
|
|
|
|
class-segment2='segment lg-three-quarter margin-left-xsmall'
|
|
|
|
class-line1='block'
|
2021-01-21 13:58:43 +00:00
|
|
|
class-user.name='text-small text-semibold text-color-heading text-sub'
|
2021-01-08 14:39:37 +00:00
|
|
|
class-is_admin='segment margin-left-medium tag color-primary'
|
|
|
|
class-line2='block'
|
|
|
|
class-atom='icon icon-large icon-third mdi-atom margin-right-xxsmall'
|
|
|
|
class-user.communities='lg-full'
|
|
|
|
|
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'
|
|
|
|
widget-self='project-edit-members-delete'
|
2020-06-15 12:27:49 +00:00
|
|
|
)
|