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

107 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-05-29 16:12:29 +00:00
sib-widget(name='hubl-user-groups')
template ${await value.name}
2020-05-08 13:27:44 +00:00
sib-widget(name='hubl-team-template-edit')
template
sib-display.user-thumb.is-spaced(
class='w280 cell border cell-with-id-card user-thumb'
data-src='${await value.user}'
2020-05-29 16:12:29 +00:00
fields='account.picture, sup(name, groups), sub(profile.city)'
2019-10-21 13:38:49 +00:00
2020-05-29 16:12:29 +00:00
class-account.picture='user-thumb__picture avatar'
2020-04-02 16:09:23 +00:00
class-name='user-thumb__name'
2020-05-29 16:12:29 +00:00
class-groups='user-thumb__groups'
2020-04-02 16:09:23 +00:00
class-profile.city='user-thumb__city'
2020-05-08 13:27:44 +00:00
widget-account.picture='hubl-user-avatar'
2020-05-29 16:12:29 +00:00
multiple-groups=''
widget-groups='hubl-user-groups'
2019-10-21 13:38:49 +00:00
)
2019-11-14 12:27:04 +00:00
2019-10-24 19:23:11 +00:00
sib-ac-checker(
class='w162 cell border'
2019-10-24 19:23:11 +00:00
permission="acl:Delete"
2019-10-25 13:35:14 +00:00
data-src="${value['@id']}"
2019-10-24 19:23:11 +00:00
)
sib-delete(
2020-05-11 18:20:13 +00:00
class='button text-bold text-uppercase reversed button-secondary bordered with-icon icon-close'
2019-10-25 13:35:14 +00:00
data-src="${value['@id']}"
2020-05-20 14:42:11 +00:00
data-label='Retirer'
2019-10-24 19:23:11 +00:00
)
//- Only to show the table grid
sib-ac-checker(
class='w162 cell border'
2019-10-24 19:23:11 +00:00
no-permission="acl:Delete"
2019-10-25 13:35:14 +00:00
data-src="${value['@id']}"
)
2020-04-21 09:28:24 +00:00
sib-link(class="backlink right", bind-resources, next='circle-profile') Retour
2019-12-10 10:52:39 +00:00
sib-ac-checker(permission='acl:Write', bind-resources)
2020-04-21 09:28:24 +00:00
h1 Modifie ton canal
sib-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}`
2020-05-19 16:22:00 +00:00
label-status='Statut du canal'
2020-05-29 16:12:29 +00:00
widget-status='hubl-status'
2020-04-21 09:28:24 +00:00
label-name='Nom du canal'
label-owner='Administrateur ou administratrice'
2020-05-11 18:20:13 +00:00
label-description='Sous-titre du canal *'
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'
2019-12-10 10:52:39 +00:00
widget-owner='sib-form-auto-completion'
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 :
2019-12-10 14:33:33 +00:00
sib-ac-checker(permission='acl:Append', bind-resources, nested-field='members')
2020-05-29 16:12:29 +00:00
sib-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=''
widget-user='sib-form-auto-completion'
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
//-class='table-body'
sib-display(
class='table-body'
bind-resources
fields='members'
multiple-members=''
widget-members='hubl-team-template-edit'
)
2019-11-11 10:22:37 +00:00