2020-12-06 17:28:28 +00:00
|
|
|
solid-ac-checker(permission='acl:Read', bind-resources)
|
2021-01-22 13:29:45 +00:00
|
|
|
div.segment.full.padding-large.border-bottom.border-color-grey
|
2021-04-14 16:33:54 +00:00
|
|
|
div.segment.half.sm-three-quarter
|
2020-12-06 17:28:28 +00:00
|
|
|
solid-display.text-xxlarge.text-letter-spacing-large(
|
|
|
|
bind-resources
|
2021-01-21 22:54:20 +00:00
|
|
|
fields='name, dash, subtitle'
|
2020-12-06 17:28:28 +00:00
|
|
|
|
|
|
|
value-dash=' - '
|
|
|
|
|
|
|
|
class-name='text-color-heading text-bold'
|
|
|
|
class-dash='text-color-heading text-bold'
|
|
|
|
)
|
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='circle.edit.backlink')
|
2021-04-14 16:33:54 +00:00
|
|
|
div.segment.lg-hidden.sm-quarter.text-right
|
|
|
|
div.jsMobileRightMenuButton.icon.icon-close.icon-heading
|
2019-10-15 15:10:16 +00:00
|
|
|
|
2021-01-22 13:29:45 +00:00
|
|
|
div.segment.full.padding-large.whitespace-normal
|
2019-10-21 13:38:49 +00:00
|
|
|
|
2020-12-08 14:49:44 +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-08-31 10:04:51 +00:00
|
|
|
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
|
|
|
|
2021-03-29 15:08:50 +00:00
|
|
|
fields='name, subtitle, description, status, community, owner'
|
2020-09-24 10:56:19 +00:00
|
|
|
required-status
|
|
|
|
required-name
|
|
|
|
required-owner
|
2021-01-14 17:34:12 +00:00
|
|
|
required-subtitle
|
2021-03-29 15:08:50 +00:00
|
|
|
required-community
|
2021-02-22 20:27:58 +00:00
|
|
|
range-owner=`${component.endpoints.owners}`
|
2019-10-15 15:10:16 +00:00
|
|
|
|
2020-12-08 14:49:44 +00:00
|
|
|
label-name=''
|
|
|
|
label-owner=''
|
|
|
|
label-description=''
|
2021-01-14 17:34:12 +00:00
|
|
|
label-subtitle=''
|
|
|
|
label-status=''
|
2021-03-29 15:08:50 +00:00
|
|
|
label-community=''
|
2021-01-15 14:07:31 +00:00
|
|
|
label-help=''
|
2019-10-15 15:10:16 +00:00
|
|
|
|
2021-01-22 13:29:45 +00:00
|
|
|
class-name='segment margin-bottom-medium half sm-full padding-right-small sm-padding-none text-small text-semibold text-uppercase text-color-heading'
|
|
|
|
class-subtitle='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-medium full text-small text-semibold text-uppercase text-color-heading'
|
|
|
|
class-status='segment margin-bottom-medium half sm-full padding-right-small sm-padding-none text-small text-semibold text-uppercase text-color-heading whitespace-normal'
|
2021-03-29 15:08:50 +00:00
|
|
|
class-community='segment margin-bottom-medium half sm-full padding-left-small sm-padding-none text-small text-semibold text-uppercase text-color-heading whitespace-normal'
|
|
|
|
class-owner='hidden'
|
2021-01-22 13:29:45 +00:00
|
|
|
class-help='segment full text-small margin-bottom-medium padding-left-small'
|
2019-10-15 15:10:16 +00:00
|
|
|
|
2021-04-08 10:51:16 +00:00
|
|
|
widget-status='solid-form-dropdown-autocompletion-label'
|
|
|
|
enum-status=""
|
2021-01-18 21:17:52 +00:00
|
|
|
widget-description='solid-form-richtext-label'
|
2021-01-15 14:07:31 +00:00
|
|
|
widget-help='solid-form-hidden-label'
|
2021-03-29 15:08:50 +00:00
|
|
|
widget-community='solid-form-dropdown-autocompletion-label'
|
2020-09-14 13:41:10 +00:00
|
|
|
widget-owner='solid-form-dropdown-autocompletion-label'
|
2019-10-22 13:50:15 +00:00
|
|
|
|
2021-03-29 15:08:50 +00:00
|
|
|
range-community='store://user.communities'
|
|
|
|
option-label-community="community.name"
|
|
|
|
|
2019-12-10 10:52:39 +00:00
|
|
|
partial=''
|
2019-10-24 19:23:11 +00:00
|
|
|
|
2021-03-16 14:27:30 +00:00
|
|
|
submit-button=''
|
|
|
|
submit-widget="button"
|
2021-02-22 20:27:58 +00:00
|
|
|
next=`${component.route}-information`
|
2020-10-21 14:18:23 +00:00
|
|
|
|
2021-04-08 10:51:16 +00:00
|
|
|
data-trans='enum-status=hublStatus;label-status=circle.edit.labelStatus;label-community=circle.edit.labelCommunity;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'
|
2019-12-10 10:52:39 +00:00
|
|
|
)
|
2019-10-24 20:03:15 +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='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-22 15:30:39 +00:00
|
|
|
solid-form.segment.block.margin-bottom-xlarge.form(
|
2019-12-10 10:52:39 +00:00
|
|
|
bind-resources
|
|
|
|
nested-field='members'
|
|
|
|
fields='user'
|
2021-02-22 20:27:58 +00:00
|
|
|
range-user=`${component.endpoints.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=''
|
2021-03-16 14:27:30 +00:00
|
|
|
submit-widget="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-22 13:29:45 +00:00
|
|
|
div.segment.table-cell.half(data-trans='circle.edit.tableHeader1')
|
|
|
|
div.segment.table-cell.half(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'
|
2021-02-22 20:27:58 +00:00
|
|
|
loader-id=`loader-${component.route}-edit`
|
2020-06-09 22:59:45 +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 22:31:48 +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'
|
2021-01-22 15:30:39 +00:00
|
|
|
class-line1='segment block'
|
2021-01-22 13:29:45 +00:00
|
|
|
class-user.name='text-small text-semibold text-color-heading text-sub margin-right-medium'
|
|
|
|
class-is_admin='segment tag color-primary'
|
2021-01-22 15:30:39 +00:00
|
|
|
class-line2='segment block'
|
2021-01-08 22:31:48 +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-01-08 22:31:48 +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 22:31:48 +00:00
|
|
|
widget-is_admin='hubl-circle-edit-admin'
|
2020-09-14 13:41:10 +00:00
|
|
|
|
|
|
|
action-self='self'
|
2021-02-22 20:27:58 +00:00
|
|
|
widget-self='hubl-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-22 13:29:45 +00:00
|
|
|
div.segment.table-cell.half
|