hubl/src/views/partials/project/page-project-edit.pug

118 lines
4.8 KiB
Plaintext
Raw Normal View History

2020-12-10 15:28:46 +00:00
solid-ac-checker(permission='acl:Read', bind-resources)
div.segment.full.padding-large.border-bottom.border-color-grey
div.segment.half.sm-full
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=' - '
)
div.segment.half.sm-hidden.text-right
solid-link(class='backlink', bind-resources, next=`${component.route}-profile` data-trans='project.edit.backlink')
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)
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-01-08 14:39:37 +00:00
solid-form.form(
2020-09-03 10:15:47 +00:00
bind-resources
fields='customer.name, name, description, help, 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
2021-02-26 14:47:21 +00:00
range-captain=component.endpoints.captains
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=''
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-name='segment margin-bottom-medium half sm-full padding-left-small 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-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-help='segment full sm-full text-small margin-bottom-medium padding-left-small'
2020-12-10 15:28:46 +00:00
widget-description='solid-form-richtext-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'
widget-help='solid-form-hidden-label'
2020-09-03 10:15:47 +00:00
partial=""
submit-button='Enregistrer'
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'
2020-09-03 10:15:47 +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')
2020-09-03 10:15:47 +00:00
solid-ac-checker(permission='acl:Append', bind-resources, nested-field='members')
solid-form.segment.block.margin-bottom-xlarge.form(
2020-09-03 10:15:47 +00:00
bind-resources
nested-field='members'
fields='user'
range-user=`${component.endpoints.users}`
class-user='add-member whitespace-normal'
2020-09-03 10:15:47 +00:00
label-user=''
widget-user='solid-form-dropdown-autocompletion'
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
)
2021-01-10 17:23:22 +00:00
.segment.table-wrapper
.table
2020-12-10 15:28:46 +00:00
div.table-header.bg-color-third.text-color-heading
div.segment.table-cell.half(data-trans='project.edit.tableHeader2')
div.segment.table-cell.half(data-trans='project.edit.tableHeader1')
2020-06-18 18:02:54 +00:00
solid-display(
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'
loader-id=`loader-${component.route}-edit`
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'
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'
class-user.communities='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='hubl-project-edit-members-delete'
)