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

109 lines
3.6 KiB
Plaintext
Raw Normal View History

2020-05-29 16:12:29 +00:00
div.content-box__info
2020-09-14 13:41:10 +00:00
solid-widget(name="circle-edit-members-delete")
template
solid-ac-checker(permission="acl:Delete", data-src="${src}")
2020-06-18 18:02:54 +00:00
solid-delete(
2020-05-11 18:20:13 +00:00
class='button text-bold text-uppercase reversed button-secondary bordered with-icon icon-close'
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=circle.edit.buttonDelete'
2019-10-24 19:23:11 +00:00
)
2020-10-21 13:31:05 +00:00
solid-link(class="backlink right", bind-resources, next='circle-profile' data-trans='circle.edit.backlink')
2020-06-18 18:02:54 +00:00
solid-ac-checker(permission='acl:Write', bind-resources)
2020-10-21 13:31:05 +00:00
h1(data-trans='circle.edit.title')
2020-08-31 10:04:51 +00:00
div#loader-circle-edit.loader.loader-top
div
div
div
div
2020-06-18 18:02:54 +00:00
solid-form.form.button-register(
2019-12-10 10:52:39 +00:00
bind-resources
2019-11-14 12:27:04 +00:00
fields='line-1(name, subtitle), description, help, line-2(status, owner)'
2020-09-24 10:56:19 +00:00
required-status
required-name
required-owner
required-subtitle
range-owner=`${endpoints.users || endpoints.get.users}`
2020-10-21 13:31:05 +00:00
label-name=''
label-owner=''
label-description=''
label-subtitle=''
label-status=''
label-help=''
class-name='form-label is-light is-half-width input-text-like'
2020-05-29 16:12:29 +00:00
class-owner='form-label is-light is-half-width member-select color'
class-subtitle='form-label is-light is-half-width input-text-like'
class-status='form-label is-light is-half-width member-select color'
class-description='form-label is-light is-full-width input-text-like'
class-help='is-small'
widget-status='hubl-status'
widget-description='solid-form-textarea-label'
widget-help='solid-form-hidden-label'
2020-09-14 13:41:10 +00:00
widget-owner='solid-form-dropdown-autocompletion-label'
2019-12-10 10:52:39 +00:00
partial=''
2019-10-24 19:23:11 +00:00
2020-04-21 09:28:24 +00:00
submit-button='Enregistrer'
2019-12-10 10:52:39 +00:00
next='circle-information'
data-trans='label-name=circle.edit.labelStatus;label-name=circle.edit.labelName;label-owner=circle.edit.labelOwner;label-description=circle.edit.labelDescription;submit-button=circle.edit.buttonSubmit;label-subtitle=circle.edit.labelSubtitle;label-help=circle.edit.descriptionHelp;label-status=circle.edit.labelStatus'
2019-12-10 10:52:39 +00:00
)
2020-10-21 13:31:05 +00:00
h2(data-trans='circle.edit.subTitle')
2020-06-18 18:02:54 +00:00
solid-ac-checker(permission='acl:Append', bind-resources, nested-field='members')
solid-form.block.select-add(
2019-12-10 10:52:39 +00:00
bind-resources
nested-field='members'
fields='user'
range-user=`${endpoints.users || endpoints.get.users}`
2019-11-11 10:50:10 +00:00
class-user='team'
widget-user='solid-form-dropdown-autocompletion'
2019-11-11 10:50:10 +00:00
2020-10-21 13:31:05 +00:00
submit-button=''
2020-10-22 11:48:49 +00:00
data-trans='submit-button=circle.edit.buttonAddMember'
2019-12-10 10:52:39 +00:00
)
2019-11-11 10:50:10 +00:00
.table-wrapper
.table
div.table-header.grey-color
2020-10-21 19:36:09 +00:00
div.w280(data-trans='circle.edit.tableHeader1')
div.w162(data-trans='circle.edit.tableHeader2')
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'
2020-10-13 16:18:13 +00:00
fields='classGroup(classGrid(user.account.picture, sup(user.name, user.groups), sub(user.communities))), self'
2020-08-31 10:04:51 +00:00
loader-id='loader-circle-edit'
2020-09-14 13:41:10 +00:00
class-classGroup='w280 cell border cell-with-id-card user-thumb is-spaced'
class-user.account.picture='user-thumb__picture avatar'
class-user.name='user-thumb__name'
class-user.groups='user-thumb__groups'
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'
multiple-user.groups
multiple-user.groups-fields='name'
2020-09-14 13:41:10 +00:00
action-self='self'
widget-self='circle-edit-members-delete'
)
2019-11-11 10:22:37 +00:00
2020-09-14 13:41:10 +00:00
//- Only to show the table grid
div.w162.cell.border