2021-01-22 15:26:19 +00:00
|
|
|
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
|
2021-01-22 13:21:25 +00:00
|
|
|
h2.margin-none.text-uppercase.text-xlarge.text-letter-spacing-large(data-trans='project.list.title')
|
|
|
|
|
2021-01-22 15:26:19 +00:00
|
|
|
div.segment.full.padding-large.sm-padding-xsmall.sm-padding-top-medium.whitespace-normal
|
2021-01-22 13:21:25 +00:00
|
|
|
|
2021-01-22 15:26:19 +00:00
|
|
|
div.segment.full.margin-bottom-xlarge.whitespace-normal
|
|
|
|
div.segment.half.sm-full
|
2021-01-22 13:21:25 +00:00
|
|
|
h3.text-color-heading.text-semibold.text-letter-spacing-large(data-trans='project.list.subTitle')
|
2021-01-22 15:26:19 +00:00
|
|
|
div.segment.half.sm-full.text-right
|
2021-01-22 13:21:25 +00:00
|
|
|
solid-ac-checker(data-src=`${endpoints.projects || (endpoints.post && endpoints.post.projects)}`, permission='acl:Append')
|
|
|
|
solid-link(
|
|
|
|
class='segment sm-full button text-xsmall text-bold text-uppercase text-center reversed color-secondary bordered icon icon-plus'
|
|
|
|
next='admin-projects-create'
|
|
|
|
data-trans='project.list.buttonCreate'
|
|
|
|
)
|
|
|
|
|
|
|
|
.segment.table-wrapper
|
|
|
|
.table
|
|
|
|
|
|
|
|
div.table-header.bg-color-third.text-color-heading
|
2021-01-22 15:26:19 +00:00
|
|
|
div.segment.table-cell.quarter(data-trans='project.list.tableHeader1')
|
|
|
|
div.segment.table-cell.quarter(data-trans='project.list.tableHeader2')
|
|
|
|
div.segment.table-cell.quarter(data-trans='project.list.tableHeader3')
|
|
|
|
div.segment.table-cell.quarter(data-trans='project.list.tableHeader4')
|
2021-01-22 13:21:25 +00:00
|
|
|
|
|
|
|
solid-widget(name="hubl-admin-project-leave-button")
|
|
|
|
template
|
|
|
|
solid-delete(
|
|
|
|
class='button text-xsmall text-bold text-uppercase color-secondary bordered'
|
|
|
|
data-src="${src}"
|
|
|
|
data-label=''
|
|
|
|
data-trans='data-label=project.list.buttonQuit'
|
|
|
|
)
|
|
|
|
hubl-reactivity(data-src=`${endpoints.projects || endpoints.get.projects}` target-src='${src}')
|
|
|
|
hubl-reactivity(data-src=`${endpoints.projects || endpoints.get.projects}joinable/` target-src='${src}')
|
|
|
|
hubl-reactivity(bind-user nested-field="projects" target-src='${src}')
|
|
|
|
if (endpoints.post && endpoints.post.projects) && (endpoints.get && endpoints.get.projects)
|
|
|
|
hubl-reactivity(data-src=`${endpoints.post.projects}joinable/` target-src=`${src}`)
|
|
|
|
hubl-reactivity(data-src=`${endpoints.post.projects}` target-src=`${src}`)
|
|
|
|
|
|
|
|
solid-widget(name='hubl-project-captain')
|
|
|
|
template
|
2021-01-22 15:26:19 +00:00
|
|
|
solid-display.segment.labelled-avatar.two-lines.block(
|
2021-01-22 13:21:25 +00:00
|
|
|
data-src='${await value}'
|
|
|
|
fields='segment1(account.picture), segment2(line1(name), line2(at, username))'
|
|
|
|
|
|
|
|
class-segment1='segment'
|
|
|
|
class-account.picture='avatar'
|
|
|
|
|
2021-01-22 15:26:19 +00:00
|
|
|
class-segment2='segment three-quarter margin-left-xsmall'
|
|
|
|
class-line1='segment block'
|
2021-01-22 13:21:25 +00:00
|
|
|
class-name='text-small text-semibold text-color-heading text-sub'
|
2021-01-22 15:26:19 +00:00
|
|
|
class-line2='segment block text-xsmall'
|
2021-01-22 13:21:25 +00:00
|
|
|
|
|
|
|
widget-account.picture='hubl-user-avatar'
|
|
|
|
|
|
|
|
value-at='@'
|
2020-12-11 17:13:03 +00:00
|
|
|
)
|
2019-10-25 17:15:45 +00:00
|
|
|
|
2021-01-22 13:21:25 +00:00
|
|
|
solid-widget(name='hubl-project-admins')
|
|
|
|
template
|
|
|
|
solid-display(
|
|
|
|
data-src='${value}'
|
|
|
|
fields='user'
|
|
|
|
search-fields='is_admin'
|
|
|
|
search-value-is_admin='true'
|
|
|
|
search-widget-is_admin='solid-form-hidden'
|
|
|
|
widget-user='hubl-project-captain'
|
|
|
|
)
|
2020-12-11 17:13:03 +00:00
|
|
|
|
2021-01-22 13:21:25 +00:00
|
|
|
solid-widget(name='hubl-admin-project-leave-button')
|
|
|
|
template
|
|
|
|
solid-delete(
|
|
|
|
class='button text-xsmall text-bold text-uppercase color-secondary bordered'
|
|
|
|
data-src="${src}"
|
|
|
|
data-label=''
|
|
|
|
data-trans='data-label=project.list.buttonQuit'
|
|
|
|
)
|
|
|
|
|
|
|
|
solid-display(
|
|
|
|
class='table-body'
|
|
|
|
|
|
|
|
bind-user
|
|
|
|
nested-field="projects"
|
|
|
|
fields='cell1(project.customer.name, project.name), cell2(project.members), cell3(project.captain), cell4(leaveButton)'
|
|
|
|
loader-id='loader-admin-projects'
|
|
|
|
|
2021-01-22 15:26:19 +00:00
|
|
|
class-cell1='segment table-cell quarter text-left whitespace-normal'
|
|
|
|
class-cell2='segment table-cell quarter text-left'
|
|
|
|
class-cell3='segment table-cell quarter text-left'
|
|
|
|
class-cell4='segment table-cell quarter text-center'
|
2021-01-22 13:21:25 +00:00
|
|
|
|
|
|
|
class-project.customer.name='segment block margin-bottom-xxsmall text-xlarge text-color-heading text-semibold text-letter-spacing-large text-underline ellipsis'
|
2021-01-22 15:26:19 +00:00
|
|
|
class-project.name='segment full'
|
2021-01-22 13:21:25 +00:00
|
|
|
|
|
|
|
action-leaveButton="joinButton"
|
|
|
|
widget-leaveButton="hubl-admin-project-leave-button"
|
|
|
|
|
|
|
|
widget-project.captain='hubl-project-captain'
|
|
|
|
widget-project.members='hubl-project-admins'
|
|
|
|
|
|
|
|
order-by="project.name"
|
|
|
|
)
|
|
|
|
|
|
|
|
solid-widget(name='hubl-admin-project-join-button')
|
|
|
|
template
|
|
|
|
solid-form(
|
|
|
|
class='button text-xsmall text-bold text-uppercase reversed color-secondary bordered icon icon-arrow-right-circle'
|
|
|
|
data-src='${src}'
|
|
|
|
nested-field="members"
|
|
|
|
|
|
|
|
fields='user.username'
|
|
|
|
value-user.username='hubl-workaround-493'
|
|
|
|
widget-user.username='solid-form-hidden'
|
|
|
|
|
|
|
|
submit-button=''
|
|
|
|
data-trans='submit-button=project.list.buttonJoin'
|
|
|
|
)
|
|
|
|
hubl-reactivity(data-src=`${endpoints.projects || endpoints.get.projects}` target-src='${src}')
|
|
|
|
hubl-reactivity(data-src=`${endpoints.projects || endpoints.get.projects}joinable/` target-src='${src}')
|
|
|
|
hubl-reactivity(bind-user nested-field="projects" target-src='${src}')
|
|
|
|
if (endpoints.post && endpoints.post.projects) && (endpoints.get && endpoints.get.projects)
|
|
|
|
hubl-reactivity(data-src=`${endpoints.post.projects}joinable/` target-src=`${value}`)
|
|
|
|
hubl-reactivity(data-src=`${endpoints.post.projects}` target-src=`${value}`)
|
|
|
|
|
|
|
|
solid-display(
|
|
|
|
class='table-body'
|
|
|
|
|
|
|
|
data-src=`${endpoints.projects || endpoints.get.projects}joinable/`
|
|
|
|
fields='cell1(customer.name, name), cell2(members), cell3(captain), cell4(joinButton)'
|
|
|
|
loader-id='loader-admin-projects'
|
|
|
|
|
2021-01-22 15:26:19 +00:00
|
|
|
class-cell1='segment table-cell quarter text-left whitespace-normal'
|
|
|
|
class-cell2='segment table-cell quarter text-left'
|
|
|
|
class-cell3='segment table-cell quarter text-left'
|
|
|
|
class-cell4='segment table-cell quarter text-center'
|
2021-01-22 13:21:25 +00:00
|
|
|
|
|
|
|
class-customer.name='segment block margin-bottom-xxsmall text-xlarge text-color-heading text-semibold text-letter-spacing-large text-underline ellpsis'
|
2021-01-22 15:26:19 +00:00
|
|
|
class-name='segment full'
|
2021-01-22 13:21:25 +00:00
|
|
|
|
|
|
|
action-joinButton="joinButton" # Workaround: I need members two times
|
|
|
|
widget-joinButton="hubl-admin-project-join-button"
|
|
|
|
|
|
|
|
widget-captain='hubl-project-captain'
|
|
|
|
widget-members='hubl-project-admins'
|
|
|
|
|
|
|
|
order-by="name"
|
|
|
|
)
|
2020-12-11 17:13:03 +00:00
|
|
|
|
2021-01-22 13:21:25 +00:00
|
|
|
div#loader-admin-projects.loader.loader-top
|
|
|
|
div
|
|
|
|
div
|
|
|
|
div
|
|
|
|
div
|
2020-08-28 12:06:27 +00:00
|
|
|
|