hubl/src/views/partials/admin/page-admin-circles-leave.pug

57 lines
3.1 KiB
Plaintext
Raw Normal View History

2021-03-26 14:11:42 +00:00
solid-widget(name=`leave-circle-reactivity`)
template
2021-06-15 11:48:49 +00:00
orbit-reactivity(data-src=`${getComponent('circles').endpoints.get}` target-src='${value}')
orbit-reactivity(data-src=`${getComponent('circles').endpoints.get}joinable/` target-src='${value}')
orbit-reactivity(data-src=`${getComponent('circles').endpoints.post}` target-src='${value}')
orbit-reactivity(data-src=`${getComponent('circles').endpoints.post}joinable/` target-src='${value}')
orbit-reactivity(bind-user nested-field="circles" target-src='${value}')
2021-03-26 14:11:42 +00:00
2021-06-15 11:48:49 +00:00
solid-widget(name=`orbit-admin-circle-leave-button`)
2021-03-26 14:11:42 +00:00
template
solid-delete(
class='segment sm-full text-xsmall children-link-button children-link-text-bold children-link-text-uppercase children-link-color-secondary bordered'
data-src="${src}"
data-label=''
data-trans='data-label=circle.list.buttonQuit'
)
2021-06-15 11:48:49 +00:00
orbit-reactivity(data-src=`${getComponent('circles').endpoints.get}` target-src='${src}')
orbit-reactivity(data-src=`${getComponent('circles').endpoints.get}joinable/` target-src='${src}')
orbit-reactivity(data-src=`${getComponent('circles').endpoints.post}` target-src='${src}')
orbit-reactivity(data-src=`${getComponent('circles').endpoints.post}joinable/` target-src='${src}')
orbit-reactivity(bind-user nested-field="circles" target-src='${src}')
2021-03-26 14:11:42 +00:00
solid-display(
data-src="${src}"
fields="circle"
widget-circle=`leave-circle-reactivity`
hidden
)
include page-admin-circles.pug
div.segment.full.padding-small.padding-top-xsmall.sm-padding-xsmall.whitespace-normal
solid-display(
bind-user
nested-field='circles'
2021-03-29 15:08:50 +00:00
class='segment full children children-quarter sm-children-full children-margin-bottom-medium sm-children-margin-bottom-xsmall children-padding-right-xsmall children-padding-left-xsmall sm-children-padding-none sm-whitespace-normal masonry pagination'
2021-03-26 14:11:42 +00:00
fields='segment1(segment2(circle.community.community.logo), segment3(circle.name, circle.subtitle, counter, leaveButton))'
filtered-by=`admin-circle-filter-${page}`
order-by='name'
2021-03-30 10:54:27 +00:00
paginate-by='20'
2021-03-26 14:11:42 +00:00
loader-id=`loader-admin-circles-${page}`
class-segment1='segment hover bg-color-white shadow border-rounded-xxsmall full text-top whitespace-normal'
class-segment2='segment block padding-xlarge text-center'
class-segment3='segment full padding-xlarge padding-top-medium sm-padding-medium border-top border-color-grey text-center whitespace-normal'
2021-03-29 16:20:43 +00:00
class-circle.name='segment block text-xlarge text-bold text-color-heading margin-bottom-xsmall whitespace-normal'
2021-03-26 14:11:42 +00:00
class-circle.subtitle='segment two-lines-ellipsis margin-bottom-xlarge sm-margin-bottom-medium whitespace-normal circle-subtitle-custom'
class-counter='segment block margin-bottom-large whitespace-normal'
2021-06-15 11:48:49 +00:00
widget-circle.community.community.logo='orbit-admin-community-logo'
2021-03-26 14:11:42 +00:00
action-circle.name=`${getRoute(`circles`, true)}-information`
2021-06-15 11:48:49 +00:00
widget-circle.name='orbit-admin-circle-fix-url-name'
2021-03-26 14:11:42 +00:00
action-counter="counter"
2021-06-15 11:48:49 +00:00
widget-counter='orbit-admin-circle-counter-alternate-fix'
2021-03-26 14:11:42 +00:00
action-leaveButton="joinButton"
2021-06-15 11:48:49 +00:00
widget-leaveButton=`orbit-admin-circle-leave-button`
2021-03-26 14:11:42 +00:00
)