2021-02-22 20:27:58 +00:00
|
|
|
solid-router(default-route=`${component.route}-profile`, hidden)
|
|
|
|
solid-route(name=`${component.route}-profile`)
|
|
|
|
solid-route(name=`${component.route}-edit`)
|
|
|
|
|
|
|
|
div(
|
|
|
|
id=`${component.route}-profile`
|
|
|
|
hidden
|
|
|
|
data-view=`${component.route}-profile`
|
|
|
|
)
|
2021-01-22 13:29:45 +00:00
|
|
|
solid-ac-checker.segment.block(permission='acl:Read', bind-resources)
|
|
|
|
div.segment.full.padding-large.sm-padding-top-small.sm-padding-right-xsmall.sm-padding-bottom-small.sm-padding-left-xsmall.border-bottom.border-color-grey.whitespace-normal
|
2020-12-08 16:34:04 +00:00
|
|
|
solid-display.text-xxlarge.text-letter-spacing-large(
|
|
|
|
bind-resources
|
|
|
|
fields='const-title1, number, customer.name, dash, name'
|
|
|
|
|
|
|
|
class-const-title1='text-color-heading text-bold text-uppercase'
|
|
|
|
class-number='text-color-heading text-bold text-uppercase word-spacing-right'
|
|
|
|
class-customer.name='text-color-heading text-bold text-uppercase'
|
|
|
|
class-dash='text-color-heading text-bold text-xlarge'
|
|
|
|
class-name=''
|
2021-02-22 20:27:58 +00:00
|
|
|
|
2020-12-08 16:34:04 +00:00
|
|
|
value-const-title1='N°'
|
|
|
|
value-dash=' - '
|
|
|
|
)
|
|
|
|
|
2021-01-22 13:29:45 +00:00
|
|
|
div.segment.full.padding-large.sm-padding-xsmall.sm-padding-top-xlarge
|
2021-02-22 20:27:58 +00:00
|
|
|
div.loader(id=`loader-${component.route}-profile`)
|
2020-09-03 10:15:47 +00:00
|
|
|
div
|
|
|
|
div
|
|
|
|
div
|
|
|
|
div
|
2021-02-22 20:27:58 +00:00
|
|
|
|
2020-12-29 13:14:23 +00:00
|
|
|
div.whitespace-normal
|
2021-01-22 13:29:45 +00:00
|
|
|
solid-display.segment.half.sm-full.sm-margin-bottom-medium(
|
2019-12-18 18:50:47 +00:00
|
|
|
bind-resources
|
|
|
|
fields='creationDateSet(title, creationDate)'
|
2021-02-22 20:27:58 +00:00
|
|
|
loader-id=`loader-${component.route}-profile`
|
2019-12-18 18:50:47 +00:00
|
|
|
|
2019-12-19 13:10:09 +00:00
|
|
|
class-title='word-spacing-right'
|
|
|
|
|
2020-10-21 13:31:05 +00:00
|
|
|
value-title=''
|
|
|
|
data-trans='value-title=project.profile.creationDate'
|
2019-12-18 18:50:47 +00:00
|
|
|
|
2020-09-14 13:41:10 +00:00
|
|
|
widget-creationDate='solid-display-value-date'
|
2019-12-18 18:50:47 +00:00
|
|
|
)
|
2021-02-22 20:27:58 +00:00
|
|
|
|
2021-01-22 13:29:45 +00:00
|
|
|
solid-ac-checker.segment.half.sm-full.text-right(permission='acl:Append', bind-resources, nested-field='members')
|
2020-09-03 10:15:47 +00:00
|
|
|
solid-ac-checker(permission='acl:Delete', bind-resources)
|
2021-02-22 20:27:58 +00:00
|
|
|
solid-link(class='segment sm-full margin-bottom-large sm-margin-bottom-medium button text-xsmall text-bold text-uppercase text-center reversed color-secondary bordered icon icon-pencil' next=`${component.route}-edit` bind-resources data-trans='project.profile.buttonModify')
|
2020-09-03 10:15:47 +00:00
|
|
|
solid-ac-checker(no-permission='acl:Delete', bind-resources)
|
2021-02-22 20:27:58 +00:00
|
|
|
solid-link(class='segment sm-full margin-bottom-large sm-margin-bottom-medium button text-xsmall text-bold text-uppercase text-center reversed color-secondary bordered icon icon-pencil' next=`${component.route}-edit` bind-resources data-trans='project.profile.buttonAdd')
|
|
|
|
|
2021-01-22 13:29:45 +00:00
|
|
|
solid-ac-checker.segment.full.text-right.margin-bottom-large.sm-margin-bottom-medium(permission='acl:Delete', bind-resources)
|
2020-12-29 13:14:23 +00:00
|
|
|
solid-delete(
|
2021-01-23 17:01:22 +00:00
|
|
|
class='segment sm-full children-link-button text-xsmall text-center children-link-text-bold children-link-text-uppercase children-link-color-secondary bordered'
|
2020-12-29 13:14:23 +00:00
|
|
|
bind-resources
|
|
|
|
data-label=''
|
|
|
|
data-trans='data-label=project.profile.buttonDelete'
|
2021-02-22 20:27:58 +00:00
|
|
|
next=`admin-${component.route}`
|
2020-12-29 13:14:23 +00:00
|
|
|
)
|
2018-11-21 02:06:38 +00:00
|
|
|
|
2021-02-22 20:27:58 +00:00
|
|
|
solid-widget(name=`hubl-project-leave-button-${component.uniq}`)
|
2020-09-03 10:15:47 +00:00
|
|
|
template
|
|
|
|
solid-delete(
|
2020-12-08 16:34:04 +00:00
|
|
|
class='button text-xsmall text-bold text-uppercase color-secondary bordered'
|
2020-09-03 10:15:47 +00:00
|
|
|
data-src="${src}"
|
2020-10-21 13:31:05 +00:00
|
|
|
data-label=''
|
|
|
|
data-trans='data-label=project.profile.buttonQuit'
|
2021-02-22 20:27:58 +00:00
|
|
|
next=`${component.route}-left`
|
2020-09-03 10:15:47 +00:00
|
|
|
)
|
|
|
|
|
2021-01-26 14:29:57 +00:00
|
|
|
solid-ac-checker.segment.full.text-right.margin-bottom-large.sm-margin-bottom-medium(no-permission='acl:Delete', bind-resources)
|
2020-09-03 10:15:47 +00:00
|
|
|
solid-display(
|
2020-12-29 13:14:23 +00:00
|
|
|
bind-resources
|
|
|
|
nested-field='members'
|
|
|
|
fields='relation'
|
2020-09-03 10:15:47 +00:00
|
|
|
|
2020-12-29 13:14:23 +00:00
|
|
|
action-relation='relation'
|
2021-02-22 20:27:58 +00:00
|
|
|
widget-relation=`hubl-project-leave-button-${component.uniq}`
|
2020-09-03 10:15:47 +00:00
|
|
|
|
2020-12-29 13:14:23 +00:00
|
|
|
search-fields='user'
|
|
|
|
search-widget-user='solid-form-hidden'
|
2021-02-18 11:55:25 +00:00
|
|
|
search-value-user="store://user.@id"
|
2020-09-03 10:15:47 +00:00
|
|
|
)
|
2021-02-22 20:27:58 +00:00
|
|
|
|
2021-01-05 12:22:25 +00:00
|
|
|
h3.text-color-heading.text-bold.text-letter-spacing-large(data-trans='project.profile.captain')
|
|
|
|
|
2020-12-10 12:52:10 +00:00
|
|
|
solid-display(
|
|
|
|
bind-resources
|
|
|
|
fields='captain'
|
|
|
|
widget-captain='hubl-captain'
|
|
|
|
)
|
2019-12-18 18:50:47 +00:00
|
|
|
|
2021-01-21 22:54:20 +00:00
|
|
|
h3.text-color-heading.text-bold.text-letter-spacing-large(data-trans='project.profile.description')
|
2021-02-22 20:27:58 +00:00
|
|
|
|
2021-01-21 22:54:20 +00:00
|
|
|
solid-display.segment.block.sm-hidden.whitespace-normal(
|
|
|
|
bind-resources
|
|
|
|
fields='description'
|
|
|
|
class-description='segment margin-bottom-large whitespace-normal'
|
2021-01-13 08:58:52 +00:00
|
|
|
widget-description='solid-display-value-markdown'
|
|
|
|
)
|
|
|
|
|
2021-01-05 12:22:25 +00:00
|
|
|
h3.text-color-heading.text-bold.text-letter-spacing-large(data-trans='project.profile.subTitle')
|
2019-12-18 18:50:47 +00:00
|
|
|
|
2021-01-22 13:29:45 +00:00
|
|
|
solid-display.segment.full.labelled-avatar.two-lines.whitespace-normal.children.children-full.sm-children-full.children-margin-bottom-medium(
|
2019-12-18 18:50:47 +00:00
|
|
|
bind-resources
|
2020-09-14 13:41:10 +00:00
|
|
|
nested-field='members'
|
2021-01-05 12:22:25 +00:00
|
|
|
fields='segment1(user.account.picture), segment2(line1(user.name, user), line2(atom, user.communities))'
|
2020-10-08 07:55:56 +00:00
|
|
|
|
2021-01-05 12:22:25 +00:00
|
|
|
class-segment1='segment'
|
|
|
|
class-user.account.picture='avatar'
|
2020-09-14 13:41:10 +00:00
|
|
|
|
2021-01-22 13:29:45 +00:00
|
|
|
class-segment2='segment three-quarter margin-left-xsmall'
|
|
|
|
class-line1='segment block'
|
2021-01-21 13:58:43 +00:00
|
|
|
class-user.name='text-small text-semibold text-color-heading text-sub'
|
2021-01-22 13:29:45 +00:00
|
|
|
class-line2='segment block'
|
2021-01-08 14:39:37 +00:00
|
|
|
class-atom='icon icon-large icon-third mdi-atom margin-right-xxsmall'
|
2021-01-22 13:29:45 +00:00
|
|
|
class-user.communities='full'
|
2020-12-10 12:52:10 +00:00
|
|
|
|
2020-10-13 16:18:13 +00:00
|
|
|
multiple-user.communities
|
|
|
|
multiple-user.communities-fields="community.name"
|
2020-09-14 13:41:10 +00:00
|
|
|
|
|
|
|
widget-user.account.picture='hubl-user-avatar'
|
2021-01-05 12:22:25 +00:00
|
|
|
widget-user='hubl-project-team-contact'
|
2019-12-18 18:50:47 +00:00
|
|
|
)
|
|
|
|
|
2021-02-22 20:27:58 +00:00
|
|
|
div(
|
|
|
|
id=`${component.route}-edit`
|
|
|
|
hidden
|
|
|
|
data-view=`${component.route}-edit`
|
|
|
|
)
|
2019-12-18 18:50:47 +00:00
|
|
|
include page-project-edit.pug
|