feature: admin-communities + user-create

This commit is contained in:
gaelle morin 2021-01-11 13:05:02 +01:00
parent 4233833c81
commit ca65e41ca1
No known key found for this signature in database
GPG Key ID: 028426702B95CF9C
2 changed files with 62 additions and 60 deletions

View File

@ -1,9 +1,8 @@
.content-box.full-width solid-router(default-route='admin-communities-list', hidden)
solid-router(default-route='admin-communities-list', hidden)
solid-route(name='admin-communities-list') solid-route(name='admin-communities-list')
solid-route(name='admin-users-create', use-id) solid-route(name='admin-users-create', use-id)
solid-widget(name='hubl-action-community') solid-widget(name='hubl-action-community')
template template
solid-ac-checker(data-src="${value}", nested-field="members", permission='acl:Append') solid-ac-checker(data-src="${value}", nested-field="members", permission='acl:Append')
solid-link( solid-link(
@ -15,32 +14,35 @@
solid-ac-checker(data-src="${value}", nested-field="members", no-permission='acl:Append') solid-ac-checker(data-src="${value}", nested-field="members", no-permission='acl:Append')
div.button.button-disabled(data-trans='communities.noPermission') div.button.button-disabled(data-trans='communities.noPermission')
#admin-communities-list.content-box__height(hidden, data-view="admin-communities-list") #admin-communities-list(hidden, data-view="admin-communities-list")
div.segment.padding-top-xsmall.padding-right-large.padding-bottom-xsmall.padding-left-large.border-bottom.border-color-grey.text-color-heading div.segment.lg-full.padding-large.border-bottom.border-color-grey
div div
h2.text-uppercase.text-xlarge.text-letter-spacing-large(data-trans='communities.title') h2.text-uppercase.text-xlarge.text-letter-spacing-large(data-trans='communities.title')
div.segment.lg-hidden div.segment.lg-hidden
button.mobile-sidebar-button.jsMobileSidebarOpenButton.icon-arrow-left-circle(data-trans='communities.menuMobile') button.mobile-sidebar-button.jsMobileSidebarOpenButton.icon-arrow-left-circle(data-trans='communities.menuMobile')
div.segment.padding-large.clearfix div.segment.lg-full.padding-large.whitespace-normal
div.segment.margin-bottom-medium.float-left
div.segment.lg-full.margin-bottom-xlarge
h3.text-color-heading.text-semibold.text-letter-spacing-large(data-trans='communities.subTitle') h3.text-color-heading.text-semibold.text-letter-spacing-large(data-trans='communities.subTitle')
.table-wrapper .segment.table-wrapper
.table .table
div.table-header.bg-color-third.text-color-heading div.table-header.bg-color-third.text-color-heading
div.table-cell.w450(data-trans='communities.tableHeader1') div.segment.table-cell.table-cell.lg-half(data-trans='communities.tableHeader1')
div.table-cell.w370(data-trans='communities.tableHeader2') div.segment.table-cell.table-cell.lg-half(data-trans='communities.tableHeader2')
solid-display( solid-display(
class='table-body' class='table-body'
bind-user bind-user
nested-field='communities' nested-field='communities'
fields='community.name, community' fields='cell1(community.name), cell2(community)'
loader-id='loader-admin-community' loader-id='loader-admin-community'
class-community.name='table-cell w450 text-xlarge text-color-heading text-semibold text-letter-spacing-large' class-cell1='segment table-cell padding-medium lg-half text-center'
class-community='table-cell w370' class-cell2='segment table-cell padding-medium lg-half text-center'
class-community.name='text-xlarge text-color-heading text-semibold text-letter-spacing-large'
widget-community='hubl-action-community' widget-community='hubl-action-community'
order-asc='community.name' order-asc='community.name'
@ -52,5 +54,5 @@
div div
div div
#admin-users-create.content-box__height(hidden, data-view="admin-users-create") #admin-users-create.content-box__height(hidden, data-view="admin-users-create")
include page-admin-users-create.pug include page-admin-users-create.pug

View File

@ -1,11 +1,11 @@
div.segment.padding-top-xsmall.padding-right-large.padding-bottom-xsmall.padding-left-large.border-bottom.border-color-grey.text-color-heading.clearfix div.segment.lg-full.padding-large.border-bottom.border-color-grey
div.segment.lg-half.float-left div.segment.lg-half
h2.text-uppercase.text-xlarge.text-letter-spacing-large(data-trans='communities.title') h2.text-uppercase.text-xlarge.text-letter-spacing-large(data-trans='communities.title')
div.segment.lg-half.float-left.text-right div.segment.lg-half.text-right
solid-link(class="backlink", next='admin-communities-list' data-trans='user.create.backlink') solid-link(class="backlink", next='admin-communities-list' data-trans='user.create.backlink')
div.segment.padding-large.clearfix div.segment.lg-full.padding-large.whitespace-normal
div#loader-users-title.loader.loader div#loader-users-title.loader.loader
div div
div div
@ -25,7 +25,7 @@ div.segment.padding-large.clearfix
solid-widget(name='hubl-email-field') solid-widget(name='hubl-email-field')
template template
div.segment.margin-bottom-medium.lg-half.padding-left-small.text-small.text-semibold.text-uppercase.text-color-heading.float-left div.segment.margin-bottom-medium.lg-half.padding-left-small.text-small.text-semibold.text-uppercase.text-color-heading
label(data-trans='user.create.labelEmail') label(data-trans='user.create.labelEmail')
input(type="email" label='' data-trans='label=user.create.labelEmail' name="email" required value="\${value}" data-holder) input(type="email" label='' data-trans='label=user.create.labelEmail' name="email" required value="\${value}" data-holder)
@ -33,7 +33,7 @@ div.segment.padding-large.clearfix
div.segment.float-left div.segment.float-left
h3.text-color-heading.text-semibold.text-letter-spacing-large(data-trans='user.create.title', loader-id='loader-users-title') h3.text-color-heading.text-semibold.text-letter-spacing-large(data-trans='user.create.title', loader-id='loader-users-title')
solid-form.button-register#selected-community( solid-form.form#selected-community(
bind-resources bind-resources
nested-field='members' nested-field='members'
@ -44,9 +44,9 @@ div.segment.padding-large.clearfix
required-user.email required-user.email
loader-id='loader-users-create' loader-id='loader-users-create'
class-user.first_name='segment margin-bottom-medium lg-half padding-right-small text-small text-semibold text-uppercase text-color-heading float-left' class-user.first_name='segment margin-bottom-medium lg-half padding-right-small text-small text-semibold text-uppercase text-color-heading'
class-user.last_name='segment margin-bottom-medium lg-half padding-left-small text-small text-semibold text-uppercase text-color-heading float-left' class-user.last_name='segment margin-bottom-medium lg-half padding-left-small text-small text-semibold text-uppercase text-color-heading'
class-user.username='segment margin-bottom-medium lg-half padding-right-small text-small text-semibold text-uppercase text-color-heading float-left' class-user.username='segment margin-bottom-medium lg-half padding-right-small text-small text-semibold text-uppercase text-color-heading'
label-user.first_name='' label-user.first_name=''
label-user.last_name='' label-user.last_name=''