2020-12-06 17:28:28 +00:00
|
|
|
solid-ac-checker(permission='acl:Read', bind-resources)
|
2021-01-08 22:31:48 +00:00
|
|
|
div.segment.lg-full.padding-large.border-bottom.border-color-grey
|
|
|
|
div.segment.lg-half
|
2020-12-06 17:28:28 +00:00
|
|
|
solid-display.text-xxlarge.text-letter-spacing-large(
|
|
|
|
bind-resources
|
|
|
|
fields='name, dash, description'
|
|
|
|
|
|
|
|
value-dash=' - '
|
|
|
|
|
|
|
|
class-name='text-color-heading text-bold'
|
|
|
|
class-dash='text-color-heading text-bold'
|
|
|
|
)
|
2021-01-08 22:31:48 +00:00
|
|
|
div.segment.lg-half.text-right
|
2020-12-06 17:28:28 +00:00
|
|
|
solid-link(class="backlink right", bind-resources, next='circle-profile' data-trans='circle.edit.backlink')
|
2019-10-15 15:10:16 +00:00
|
|
|
|
2021-01-08 22:31:48 +00:00
|
|
|
div.segment.lg-full.padding-large.whitespace-normal
|
2019-10-21 13:38:49 +00:00
|
|
|
|
2020-09-14 13:41:10 +00:00
|
|
|
solid-widget(name="circle-edit-members-delete")
|
2019-10-22 13:50:15 +00:00
|
|
|
template
|
2020-09-14 13:41:10 +00:00
|
|
|
solid-ac-checker(permission="acl:Delete" data-src="${src}")
|
2020-06-18 18:02:54 +00:00
|
|
|
solid-delete(
|
2020-12-06 17:28:28 +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=circle.edit.buttonDelete'
|
2019-10-24 19:23:11 +00:00
|
|
|
)
|
|
|
|
|
2021-01-08 22:31:48 +00:00
|
|
|
solid-widget(name='hubl-circle-edit-admin')
|
|
|
|
template ${value ? "Administrateur" : ""}
|
|
|
|
|
2020-12-08 14:49:44 +00:00
|
|
|
solid-ac-checker(permission='acl:Write', bind-resources)
|
2020-08-31 10:04:51 +00:00
|
|
|
div#loader-circle-edit.loader.loader-top
|
|
|
|
div
|
|
|
|
div
|
|
|
|
div
|
|
|
|
div
|
|
|
|
|
2021-01-08 22:31:48 +00:00
|
|
|
solid-form.form(
|
2019-12-10 10:52:39 +00:00
|
|
|
bind-resources
|
2019-11-14 12:27:04 +00:00
|
|
|
|
2020-12-08 14:49:44 +00:00
|
|
|
fields='name, description, status, owner'
|
2020-09-24 10:56:19 +00:00
|
|
|
required-status
|
|
|
|
required-name
|
|
|
|
required-owner
|
2020-02-03 13:39:14 +00:00
|
|
|
range-owner=`${endpoints.users || endpoints.get.users}`
|
2019-10-15 15:10:16 +00:00
|
|
|
|
2020-10-21 13:31:05 +00:00
|
|
|
label-status=''
|
2020-05-29 16:12:29 +00:00
|
|
|
widget-status='hubl-status'
|
|
|
|
|
2020-12-08 14:49:44 +00:00
|
|
|
label-name=''
|
|
|
|
label-owner=''
|
|
|
|
label-description=''
|
2019-10-15 15:10:16 +00:00
|
|
|
|
2020-12-08 14:49:44 +00:00
|
|
|
class-name='segment margin-bottom-medium lg-half padding-right-small text-small text-semibold text-uppercase text-color-heading'
|
2021-01-08 22:31:48 +00:00
|
|
|
class-description='segment margin-bottom-medium lg-half padding-left-small text-small text-semibold text-uppercase text-color-heading'
|
|
|
|
class-status='segment margin-bottom-medium lg-half padding-right-small text-small text-semibold text-uppercase text-color-heading whitespace-normal'
|
|
|
|
class-owner='segment margin-bottom-medium lg-half padding-left-small text-small text-semibold text-uppercase text-color-heading whitespace-normal'
|
2019-10-15 15:10:16 +00:00
|
|
|
|
2020-09-14 13:41:10 +00:00
|
|
|
widget-owner='solid-form-dropdown-autocompletion-label'
|
2019-10-22 13:50:15 +00:00
|
|
|
|
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'
|
2020-10-21 14:18:23 +00:00
|
|
|
|
2020-12-08 14:49:44 +00:00
|
|
|
data-trans='label-status=circle.edit.labelStatus;label-name=circle.edit.labelName;label-owner=circle.edit.labelOwner;label-description=circle.edit.labelDescription;submit-button=circle.edit.buttonSubmit'
|
2019-12-10 10:52:39 +00:00
|
|
|
)
|
2019-10-24 20:03:15 +00:00
|
|
|
|
2021-01-08 22:31:48 +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='circle.edit.subTitle')
|
2019-10-15 15:10:16 +00:00
|
|
|
|
2020-06-18 18:02:54 +00:00
|
|
|
solid-ac-checker(permission='acl:Append', bind-resources, nested-field='members')
|
2021-01-08 22:31:48 +00:00
|
|
|
solid-form.block.segment.margin-bottom-xlarge.form(
|
2019-12-10 10:52:39 +00:00
|
|
|
bind-resources
|
|
|
|
nested-field='members'
|
|
|
|
fields='user'
|
2020-02-03 13:39:14 +00:00
|
|
|
range-user=`${endpoints.users || endpoints.get.users}`
|
2019-11-11 10:50:10 +00:00
|
|
|
|
2020-12-08 14:49:44 +00:00
|
|
|
class-user='add-member'
|
2020-09-23 15:25:38 +00:00
|
|
|
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
|
|
|
|
2021-01-10 16:53:56 +00:00
|
|
|
.segment.table-wrapper
|
2020-06-09 22:59:45 +00:00
|
|
|
.table
|
2020-12-06 17:28:28 +00:00
|
|
|
div.table-header.bg-color-third.text-color-heading
|
2021-01-10 16:53:56 +00:00
|
|
|
div.segment.table-cell.lg-two-third(data-trans='circle.edit.tableHeader1')
|
|
|
|
div.segment.table-cell.lg-third(data-trans='circle.edit.tableHeader2')
|
2020-06-09 22:59:45 +00:00
|
|
|
|
2020-06-18 18:02:54 +00:00
|
|
|
solid-display(
|
2020-06-09 22:59:45 +00:00
|
|
|
class='table-body'
|
|
|
|
bind-resources
|
2020-09-14 13:41:10 +00:00
|
|
|
nested-field='members'
|
2021-01-08 22:31:48 +00:00
|
|
|
fields='cell(segment1(user.account.picture), segment2(line1(user.name, is_admin), line2(atom, user.communities))), self'
|
2020-08-31 10:04:51 +00:00
|
|
|
loader-id='loader-circle-edit'
|
2020-06-09 22:59:45 +00:00
|
|
|
|
2021-01-10 21:43:24 +00:00
|
|
|
class-cell='segment table-cell padding-top-xsmall padding-right-medium padding-bottom-xsmall padding-left-medium lg-two-third labelled-avatar two-lines text-left'
|
|
|
|
class-self='segment table-cell padding-top-xsmall padding-right-medium padding-bottom-xsmall padding-left-medium lg-third text-center'
|
2021-01-08 22:31:48 +00:00
|
|
|
|
|
|
|
class-segment1='segment'
|
|
|
|
class-user.account.picture='avatar'
|
|
|
|
|
|
|
|
class-segment2='segment lg-three-quarter margin-left-xsmall'
|
|
|
|
class-line1='block'
|
|
|
|
class-user.name='text-semibold text-color-heading text-sub'
|
|
|
|
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 22:31:48 +00:00
|
|
|
widget-is_admin='hubl-circle-edit-admin'
|
2020-09-14 13:41:10 +00:00
|
|
|
|
|
|
|
action-self='self'
|
|
|
|
widget-self='circle-edit-members-delete'
|
2020-06-09 22:59:45 +00:00
|
|
|
)
|
2019-11-11 10:22:37 +00:00
|
|
|
|
2020-09-14 13:41:10 +00:00
|
|
|
//- Only to show the table grid
|
2021-01-10 16:53:56 +00:00
|
|
|
div.segment.padding-top-xsmall.padding-right-medium.padding-bottom-xsmall.padding-left-medium.table-cell.lg-third
|