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

101 lines
2.9 KiB
Plaintext
Raw Normal View History

2020-05-29 16:12:29 +00:00
div.content-box__info
2020-05-08 13:27:44 +00:00
include ../../templates/hubl-user-avatar.pug
2019-10-21 13:38:49 +00:00
2020-06-18 18:02:54 +00:00
solid-widget(name='hubl-user-groups')
2020-05-29 16:12:29 +00:00
template ${await value.name}
2020-09-14 13:41:10 +00:00
solid-widget(name="circle-edit-members-delete")
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-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-05-20 14:42:11 +00:00
data-label='Retirer'
2019-10-24 19:23:11 +00:00
)
2020-06-18 18:02:54 +00:00
solid-link(class="backlink right", bind-resources, next='circle-profile') Retour
2020-06-18 18:02:54 +00:00
solid-ac-checker(permission='acl:Write', bind-resources)
h1 Modifie ton cercle
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
2020-06-11 13:20:20 +00:00
fields='status, line-1(name, owner), description'
range-owner=`${endpoints.users || endpoints.get.users}`
label-status='Statut du cercle'
2020-05-29 16:12:29 +00:00
widget-status='hubl-status'
label-name='Nom du cercle'
2020-04-21 09:28:24 +00:00
label-owner='Administrateur ou administratrice'
label-description='Sous-titre du cercle *'
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-description='form-label is-light is-full-width input-text-like'
2020-05-29 16:12:29 +00:00
class-status='form-label is-light is-full-width member-select color'
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'
)
h2 Liste des membres :
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
2020-05-29 16:12:29 +00:00
class-user='team form-label is-light'
2019-12-10 10:52:39 +00:00
label-user=''
2020-09-14 13:41:10 +00:00
widget-user='solid-form-dropdown-autocompletion-label'
2019-11-11 10:50:10 +00:00
2020-04-21 09:28:24 +00:00
submit-button='Ajouter un membre'
2019-12-10 10:52:39 +00:00
)
2019-11-11 10:50:10 +00:00
.table-wrapper
.table
div.table-header.grey-color
div.w280 Nom
div.w162 Accès
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'
fields='classGroup(user.account.picture, sup(user.name, user.groups), sub(user.profile.city)), 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'
class-user.profile.city='user-thumb__city'
widget-user.account.picture='hubl-user-avatar'
multiple-user.groups=''
widget-user.groups='hubl-user-groups'
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