2020-06-18 18:02:54 +00:00
|
|
|
solid-router(default-route='project-profile', hidden)
|
|
|
|
solid-route(name='project-profile')
|
|
|
|
solid-route(name='project-edit')
|
2019-03-25 15:35:36 +00:00
|
|
|
|
2020-10-19 14:12:14 +00:00
|
|
|
#project-profile(hidden, data-view="project-profile")
|
2019-12-18 18:50:47 +00:00
|
|
|
|
2020-10-08 07:55:56 +00:00
|
|
|
solid-widget(name='hubl-project-team-contact')
|
|
|
|
template
|
|
|
|
solid-link(data-src='\${value}', next='messages')
|
|
|
|
|
2020-05-18 08:47:43 +00:00
|
|
|
.content-box__info.flex
|
2019-12-18 18:50:47 +00:00
|
|
|
|
2020-09-03 10:15:47 +00:00
|
|
|
div#loader-project-profile.loader
|
|
|
|
div
|
|
|
|
div
|
|
|
|
div
|
|
|
|
div
|
|
|
|
|
2020-06-11 13:20:20 +00:00
|
|
|
.flex.space-between.with-padding.mobile-vertical-align
|
2020-06-18 18:02:54 +00:00
|
|
|
solid-display.mobile-margin__bottom(
|
2019-12-18 18:50:47 +00:00
|
|
|
bind-resources
|
|
|
|
fields='creationDateSet(title, creationDate)'
|
2020-09-03 10:15:47 +00:00
|
|
|
loader-id='loader-project-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
|
|
|
)
|
2020-06-18 18:02:54 +00:00
|
|
|
solid-ac-checker(permission='acl:Append', bind-resources, nested-field='members')
|
2020-09-03 10:15:47 +00:00
|
|
|
solid-ac-checker(permission='acl:Delete', bind-resources)
|
2020-10-21 13:31:05 +00:00
|
|
|
solid-link(class='button mobile-full-width text-bold text-uppercase reversed button-primary bordered with-icon icon-pencil' next='project-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)
|
2020-10-21 13:31:05 +00:00
|
|
|
solid-link(class='button mobile-full-width text-bold text-uppercase reversed button-primary bordered with-icon icon-pencil' next='project-edit' bind-resources data-trans='project.profile.buttonAdd')
|
2020-05-28 21:17:16 +00:00
|
|
|
|
2020-09-03 10:15:47 +00:00
|
|
|
div.flex.desktop-button__end
|
|
|
|
solid-ac-checker(permission='acl:Delete', bind-resources)
|
|
|
|
solid-delete(
|
|
|
|
class='button mobile-full-width text-bold text-uppercase button-primary bordered with-icon icon-trash'
|
|
|
|
bind-resources
|
2020-10-21 13:31:05 +00:00
|
|
|
data-label=''
|
|
|
|
data-trans='data-label=project.profile.buttonDelete'
|
2020-09-14 13:41:10 +00:00
|
|
|
next='admin-projects'
|
2020-09-03 10:15:47 +00:00
|
|
|
)
|
2018-11-21 02:06:38 +00:00
|
|
|
|
2020-09-03 10:15:47 +00:00
|
|
|
solid-widget(name='hubl-project-leave-button')
|
|
|
|
template
|
|
|
|
solid-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}"
|
2020-10-21 13:31:05 +00:00
|
|
|
data-label=''
|
|
|
|
data-trans='data-label=project.profile.buttonQuit'
|
2020-09-03 10:15:47 +00:00
|
|
|
next='project-left'
|
|
|
|
)
|
|
|
|
|
|
|
|
solid-ac-checker(no-permission='acl:Delete', bind-resources)
|
|
|
|
solid-display(
|
|
|
|
bind-resources
|
|
|
|
nested-field='members'
|
|
|
|
fields='relation'
|
|
|
|
|
|
|
|
action-relation='relation'
|
|
|
|
widget-relation='hubl-project-leave-button'
|
|
|
|
|
|
|
|
search-fields='user'
|
|
|
|
search-widget-user='solid-form-hidden'
|
|
|
|
search-value-user=""
|
|
|
|
|
|
|
|
hubl-inherit-user-id="search-value-user"
|
|
|
|
)
|
2018-11-21 02:06:38 +00:00
|
|
|
|
2020-06-15 10:59:43 +00:00
|
|
|
.flex.space-between
|
2020-06-18 18:02:54 +00:00
|
|
|
solid-display(
|
2019-12-18 18:50:47 +00:00
|
|
|
bind-resources
|
|
|
|
fields='label-captain, captain'
|
|
|
|
|
2020-10-21 13:31:05 +00:00
|
|
|
value-label-captain=''
|
|
|
|
data-trans='value-label-captain=project.profile.captain',
|
2019-12-18 18:50:47 +00:00
|
|
|
class-label-captain='h2-like'
|
2020-05-08 13:27:44 +00:00
|
|
|
widget-captain='hubl-captain'
|
2019-12-18 18:50:47 +00:00
|
|
|
)
|
2020-09-03 10:15:47 +00:00
|
|
|
|
|
|
|
br
|
2019-12-18 18:50:47 +00:00
|
|
|
|
2020-10-21 13:31:05 +00:00
|
|
|
h2(data-trans:'project.profile.subTitle')
|
2019-12-18 18:50:47 +00:00
|
|
|
|
2020-09-14 13:41:10 +00:00
|
|
|
solid-widget(name='hubl-project-user-admin')
|
|
|
|
template ${value ? "Administrateur" : ""}
|
|
|
|
|
2020-06-18 18:02:54 +00:00
|
|
|
solid-display.block(
|
2019-12-18 18:50:47 +00:00
|
|
|
bind-resources
|
2020-09-14 13:41:10 +00:00
|
|
|
nested-field='members'
|
2020-10-13 16:18:13 +00:00
|
|
|
fields='classGroup(user.account.picture, sup(user.name, user, is_admin), sub(user.communities, name))'
|
2020-10-08 07:55:56 +00:00
|
|
|
|
|
|
|
widget-user='hubl-project-team-contact'
|
2020-09-14 13:41:10 +00:00
|
|
|
|
|
|
|
class-classGroup='user-thumb is-spaced'
|
|
|
|
class-user.account.picture='avatar user-thumb__picture'
|
|
|
|
class-user.name='user-thumb__name'
|
2020-10-08 07:55:56 +00:00
|
|
|
class-user='user-thumb__send'
|
2020-09-14 13:41:10 +00:00
|
|
|
class-is_admin='user-thumb__admin'
|
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
|
|
|
class-name='user-thumb__lead'
|
|
|
|
|
|
|
|
widget-classGroup='solid-set-div'
|
|
|
|
widget-user.account.picture='hubl-user-avatar'
|
|
|
|
widget-is_admin='hubl-project-user-admin'
|
2019-12-18 18:50:47 +00:00
|
|
|
)
|
|
|
|
|
2020-10-19 14:12:14 +00:00
|
|
|
#project-edit.content-box__height(hidden, data-view="project-edit")
|
2019-12-18 18:50:47 +00:00
|
|
|
include page-project-edit.pug
|