85 lines
2.7 KiB
Plaintext
85 lines
2.7 KiB
Plaintext
sib-router(default-route='circle-profile', hidden)
|
|
sib-route(name='circle-profile')
|
|
sib-route(name='circle-edit')
|
|
|
|
#circle-profile(hidden)
|
|
include ../../templates/hubl-circle-team.pug
|
|
.content-box__info
|
|
|
|
.flex.space-between.with-padding.mobile-vertical-align
|
|
sib-display.mobile-margin__bottom(
|
|
bind-resources
|
|
fields='creationDateSet(title, creationDate)'
|
|
|
|
class-title='word-spacing-right'
|
|
|
|
value-title='Date de création : '
|
|
|
|
widget-creationDate='sib-display-date'
|
|
)
|
|
sib-ac-checker(permission='acl:Append', bind-resources, nested-field='members')
|
|
sib-link(class='button mobile-full-width text-bold text-uppercase reversed button-primary bordered with-icon icon-pencil' next='circle-edit' bind-resources) Modifier et ajouter un membre
|
|
|
|
|
|
div.flex.desktop-button__end
|
|
sib-ac-checker(permission='acl:Delete', bind-resources)
|
|
sib-delete(
|
|
class='button mobile-full-width text-bold text-uppercase button-primary bordered with-icon icon-trash'
|
|
bind-resources
|
|
data-label='Supprimer le canal'
|
|
)
|
|
|
|
sib-widget(name='hubl-circle-leave-button')
|
|
template
|
|
sib-delete(
|
|
class='button mobile-full-width desktop-btn-margin__left text-bold text-uppercase reversed button-secondary bordered with-icon icon-close'
|
|
data-src="${src}"
|
|
data-label='Quitter le canal'
|
|
)
|
|
|
|
sib-widget(name='hubl-circle-join-button')
|
|
template
|
|
button.button.desktop-btn-margin__left.text-bold.text-uppercase.reversed.button-primary.bordered.with-icon.icon-arrow-right-circle.flex
|
|
sib-form(
|
|
data-src=''
|
|
nested-field='members'
|
|
|
|
fields='user.@id'
|
|
label-user.@id=''
|
|
value-user.@id=''
|
|
widget-user.@id='sib-form-hidden'
|
|
|
|
hubl-inherit-bind-user2input="input[name='user.@id']"
|
|
|
|
submit-button='Rejoindre le canal'
|
|
)
|
|
|
|
sib-display(
|
|
bind-resources
|
|
nested-field='members'
|
|
fields='relation'
|
|
action-relation='relation'
|
|
widget-relation='hubl-circle-leave-button'
|
|
search-fields='user'
|
|
search-widget-user='sib-form-hidden'
|
|
search-value-user=""
|
|
empty-widget='hubl-circle-join-button'
|
|
hubl-inherit-bind-resources='hubl-circle-join-button'
|
|
hubl-inherit-user-id="search-value-user"
|
|
)
|
|
|
|
h2 Membres :
|
|
|
|
sib-display.block(
|
|
bind-resources
|
|
fields='members'
|
|
|
|
multiple-members=''
|
|
widget-members='hubl-circle-team-template'
|
|
)
|
|
|
|
|
|
|
|
#circle-edit.content-box__height(hidden)
|
|
include page-circle-edit.pug
|