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

99 lines
2.6 KiB
Plaintext
Raw Normal View History

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-08 13:27:44 +00:00
sib-widget(name='hubl-team-template-edit')
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'
data-src='${await value.user}'
2020-05-13 08:16:00 +00:00
fields='account.picture, sup(name), sub(profile.city)'
2019-10-21 13:38:49 +00:00
2020-04-02 16:09:23 +00:00
class-account.picture='user-thumb__picture'
class-name='user-thumb__name'
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
)
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']}"
)
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
2020-05-12 17:37:01 +00:00
sib-form.button-register(
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'
range-owner=`${endpoints.users || endpoints.get.users}`
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 *'
class-name='form-label is-light is-half-width input-text-like'
2019-12-10 10:52:39 +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'
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'
)
2020-04-21 09:28:24 +00:00
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-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'
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
//-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