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

103 lines
2.7 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-user-groups')
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')
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}'
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(
2019-11-06 14:48:33 +00:00
class='button text-bold text-uppercase reversed button-dark bordered with-icon icon-close'
2019-10-25 13:35:14 +00:00
data-src="${value['@id']}"
2020-04-21 09:28:24 +00:00
data-label='Quitter le canal'
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-04-02 16:09:23 +00:00
sib-form.form-edit(
2019-12-10 10:52:39 +00:00
bind-resources
2019-11-14 12:27:04 +00:00
2019-12-10 10:52:39 +00:00
fields='block-circle__info(name, owner), description'
range-owner=`${endpoints.users || endpoints.get.users}`
2020-04-21 09:28:24 +00:00
label-name='Nom du canal'
label-owner='Administrateur ou administratrice'
label-description='Sous-titre du canal'
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'
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')
sib-form.block.select-add-member(
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