feature: project-edit + circle profile

This commit is contained in:
gaelle morin
2021-01-08 15:39:37 +01:00
parent 902c977386
commit 6d04fc377a
13 changed files with 175 additions and 131 deletions

View File

@ -29,6 +29,9 @@ div.segment.lg-full.padding-large.whitespace-normal
data-trans='data-label=project.edit.buttonDelete'
)
solid-widget(name='hubl-project-edit-admin')
template ${value ? "Administrateur" : ""}
solid-ac-checker(permission='acl:Write', bind-resources)
div#loader-project-edit.loader.loader-top
div
@ -37,10 +40,10 @@ div.segment.lg-full.padding-large.whitespace-normal
div
//- Add translation for description and captain in the translate file
solid-form.segment.whitespace-normal.button-register(
solid-form.form(
bind-resources
fields='customer.name, name, description, captain'
fields='customer.name, name, description, captain, linebreak'
required-customer.name
required-name
required-captain
@ -54,10 +57,12 @@ div.segment.lg-full.padding-large.whitespace-normal
class-customer.name='segment margin-bottom-medium lg-half padding-right-small text-small text-semibold text-uppercase text-color-heading'
class-name='segment margin-bottom-medium lg-half padding-left-small text-small text-semibold text-uppercase text-color-heading'
class-description='segment margin-bottom-medium lg-full text-small text-semibold text-uppercase text-color-heading'
class-captain='segment margin-bottom-medium lg-half padding-right-small text-small text-semibold text-uppercase text-color-heading icon icon-magnify whitespace-normal'
class-captain='segment margin-bottom-medium lg-half padding-right-small text-small text-semibold text-uppercase text-color-heading whitespace-normal'
class-linebreak='segment lg-full'
widget-description='solid-form-textarea'
widget-captain='solid-form-dropdown-autocompletion-label'
widget-linebreak='solid-form-hidden'
partial=""
@ -70,7 +75,7 @@ div.segment.lg-full.padding-large.whitespace-normal
h3.segment.lg-full.padding-bottom-small.border-bottom.border-color-grey.text-color-heading.text-bold.text-letter-spacing-large(data-trans='project.edit.subTitle')
solid-ac-checker(permission='acl:Append', bind-resources, nested-field='members')
solid-form.block.segment.margin-bottom-xlarge.clearfix.button-register(
solid-form.block.segment.margin-bottom-xlarge.form(
bind-resources
nested-field='members'
fields='user'
@ -84,37 +89,39 @@ div.segment.lg-full.padding-large.whitespace-normal
data-trans='submit-button=project.edit.buttonAddMember'
)
//-.table-wrapper
.table-wrapper
.table
div.table-header.bg-color-third.text-color-heading
div.table-cell.w280(data-trans='project.edit.tableHeader1')
div.table-cell.w162(data-trans='project.edit.tableHeader2')
div.table-cell.w50(data-trans='project.edit.tableHeader1')
div.table-cell.w50(data-trans='project.edit.tableHeader2')
//-class='table-body'
solid-display(
class='table-body'
bind-resources
nested-field='members'
fields='classGroup(classGrid(user.account.picture, content(name-and-icon(user.name, user.groups), sub(atom, user.communities)))), self'
fields='cell(segment1(user.account.picture), segment2(line1(user.name, is_admin), line2(atom, user.communities))), self'
loader-id='loader-project-edit'
class-classGroup='table-cell w280'
class-self='table-cell w-162'
class-classGrid='segment margin-left-xlarge user-thumb'
class-user.account.picture='user-thumb-avatar'
class-content='user-thumb-content'
class-name-and-icon='user-thumb-content__name-and-icon'
class-user.name='name'
class-user.groups='tag color-primary'
class-sub='user-thumb-content__sub-text community'
class-atom='icon icon-primary mdi-atom'
class-cell='table-cell w50 labelled-avatar two-lines text-left'
class-self='table-cell w50'
class-segment1='segment'
class-user.account.picture='avatar'
class-segment2='segment lg-three-quarter margin-left-xsmall'
class-line1='block'
class-user.name='text-semibold text-color-heading text-sub'
class-is_admin='segment margin-left-medium tag color-primary'
class-line2='block'
class-atom='icon icon-large icon-third mdi-atom margin-right-xxsmall'
class-user.communities='lg-full'
multiple-user.communities
multiple-user.communities-fields="community.name"
widget-user.account.picture='hubl-user-avatar'
multiple-user.groups
multiple-user.groups-fields='name'
widget-is_admin='hubl-project-edit-admin'
action-self='self'
widget-self='project-edit-members-delete'

View File

@ -23,7 +23,7 @@ solid-router(default-route='project-profile', hidden)
solid-widget(name='hubl-project-team-contact')
template
solid-link.icon.icon-secondary.hover.icon-speech(data-src='\${value}', next='messages')
solid-link.icon.icon-secondary.hover.icon-speech.margin-left-xsmall(data-src='\${value}', next='messages')
div.segment.lg-full.padding-large
div#loader-project-profile.loader
@ -107,10 +107,10 @@ solid-router(default-route='project-profile', hidden)
class-segment2='segment lg-three-quarter margin-left-xsmall'
class-line1='block'
class-user.name='text-semibold text-color-heading text-sub word-spacing-right'
class-user.name='text-semibold text-color-heading text-sub'
class-line2='block'
class-atom='icon icon-large icon-third mdi-atom'
class-user.communities='lg-full word-spacing-left'
class-atom='icon icon-large icon-third mdi-atom margin-right-xxsmall'
class-user.communities='lg-full'
multiple-user.communities
multiple-user.communities-fields="community.name"