2019-10-24 20:03:15 +00:00
|
|
|
div.content-box__info
|
2019-10-15 15:10:16 +00:00
|
|
|
|
2020-05-08 13:27:44 +00:00
|
|
|
include ../../templates/hubl-user-avatar.pug
|
2019-10-21 13:38:49 +00:00
|
|
|
|
2020-05-08 13:27:44 +00:00
|
|
|
sib-widget(name='hubl-user-groups')
|
2020-01-20 12:57:03 +00:00
|
|
|
template ${await value.name}
|
2019-10-21 13:38:49 +00:00
|
|
|
|
2020-05-08 13:27:44 +00:00
|
|
|
sib-widget(name='hubl-team-template-edit')
|
2019-10-22 13:50:15 +00:00
|
|
|
template
|
2020-04-02 16:09:23 +00:00
|
|
|
sib-display.user-thumb(
|
2020-05-08 13:27:44 +00:00
|
|
|
class='w66 cell border cell-with-id-card user-thumb'
|
2019-10-22 13:50:15 +00:00
|
|
|
data-src='${await value.user}'
|
2019-10-21 13:38:49 +00:00
|
|
|
fields='account.picture, sup(name, groups), sub(profile.city)'
|
|
|
|
|
2020-04-02 16:09:23 +00:00
|
|
|
class-account.picture='user-thumb__picture'
|
|
|
|
class-name='user-thumb__name'
|
|
|
|
class-groups='user-thumb__groups'
|
|
|
|
class-profile.city='user-thumb__city'
|
|
|
|
|
2020-05-08 13:27:44 +00:00
|
|
|
widget-account.picture='hubl-user-avatar'
|
2019-10-21 13:38:49 +00:00
|
|
|
|
|
|
|
multiple-groups=''
|
2020-05-08 13:27:44 +00:00
|
|
|
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(
|
2020-05-08 13:27:44 +00:00
|
|
|
class='w33 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(
|
2020-05-08 13:27:44 +00:00
|
|
|
class='w33 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']}"
|
2019-10-15 15:10:16 +00:00
|
|
|
)
|
|
|
|
|
2020-04-21 09:28:24 +00:00
|
|
|
sib-link(class="backlink right", bind-resources, next='circle-profile') Retour
|
2019-10-24 20:03:15 +00:00
|
|
|
|
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
|
2019-10-24 20:03:15 +00:00
|
|
|
|
2020-05-12 17:14:50 +00:00
|
|
|
sib-form.button-register.form-edit(
|
2019-12-10 10:52:39 +00:00
|
|
|
bind-resources
|
2019-11-14 12:27:04 +00:00
|
|
|
|
2020-05-19 16:22:00 +00:00
|
|
|
fields='status, block-circle__info(name, owner), description'
|
2020-02-03 13:39:14 +00:00
|
|
|
range-owner=`${endpoints.users || endpoints.get.users}`
|
2019-10-15 15:10:16 +00:00
|
|
|
|
2020-05-19 16:22:00 +00:00
|
|
|
label-status='Statut du canal'
|
|
|
|
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 *'
|
2019-10-15 15:10:16 +00:00
|
|
|
|
2019-12-10 10:52:39 +00:00
|
|
|
class-name='form-label is-light is-half-width'
|
|
|
|
class-owner='form-label is-light is-half-width member-select color'
|
|
|
|
class-description='form-label is-light is-full-width'
|
2020-05-19 16:22:00 +00:00
|
|
|
class-status='form-label is-light is-full-width member-select color'
|
2019-10-15 15:10:16 +00:00
|
|
|
|
2019-12-10 10:52:39 +00:00
|
|
|
widget-owner='sib-form-auto-completion'
|
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'
|
|
|
|
)
|
2019-10-24 20:03:15 +00:00
|
|
|
|
2020-04-21 09:28:24 +00:00
|
|
|
h2 Liste des membres:
|
2019-10-15 15:10:16 +00:00
|
|
|
|
2019-12-10 14:33:33 +00:00
|
|
|
sib-ac-checker(permission='acl:Append', bind-resources, nested-field='members')
|
2020-05-12 17:14:50 +00:00
|
|
|
sib-form.block.select-add.button-add(
|
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
|
|
|
|
2019-12-10 10:52:39 +00:00
|
|
|
class-user='team form-label is-dark'
|
|
|
|
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
|
|
|
|
2019-11-13 11:00:38 +00:00
|
|
|
.table
|
2019-11-13 14:23:54 +00:00
|
|
|
|
2019-11-13 11:00:38 +00:00
|
|
|
div.table-header.grey-color
|
2020-05-08 13:27:44 +00:00
|
|
|
div.w66 Nom
|
|
|
|
div.w33 Accès
|
2019-11-14 12:27:04 +00:00
|
|
|
|
2020-01-16 17:48:21 +00:00
|
|
|
//-class='table-body'
|
2019-11-13 11:00:38 +00:00
|
|
|
sib-display(
|
|
|
|
class='table-body'
|
|
|
|
bind-resources
|
|
|
|
fields='members'
|
|
|
|
|
|
|
|
multiple-members=''
|
2020-05-08 13:27:44 +00:00
|
|
|
widget-members='hubl-team-template-edit'
|
2019-11-13 11:00:38 +00:00
|
|
|
)
|
2019-11-11 10:22:37 +00:00
|
|
|
|