fix: target user container on menu bar
This commit is contained in:
parent
13b24a2ee2
commit
752acbecae
@ -1,6 +1,6 @@
|
|||||||
sib-widget(name='hd-counter')
|
sib-widget(name='hd-counter')
|
||||||
template
|
template
|
||||||
sib-badge(data-src="${src}")
|
sib-badge(data-src="${value['@id']}")
|
||||||
|
|
||||||
sib-widget(name='hd-create')
|
sib-widget(name='hd-create')
|
||||||
template
|
template
|
||||||
@ -29,18 +29,15 @@ nav#main__menu
|
|||||||
sib-route(name='project', rdf-type='hd:project', use-id='', hidden)
|
sib-route(name='project', rdf-type='hd:project', use-id='', hidden)
|
||||||
div.sub-menu.menu-notification
|
div.sub-menu.menu-notification
|
||||||
sib-display(
|
sib-display(
|
||||||
data-src=`${endpoints.projects}`
|
bind-user
|
||||||
fields='project(customer.name, dash, name), badge'
|
nested-field='projects'
|
||||||
|
fields='line(project.customer.name, dash, project.name), project'
|
||||||
empty-widget='hd-create'
|
empty-widget='hd-create'
|
||||||
empty-value='project'
|
empty-value='project'
|
||||||
value-dash=' - '
|
value-dash=' - '
|
||||||
search-fields='members.user'
|
widget-project='hd-counter'
|
||||||
search-widget-members.user='sib-form-hidden'
|
order-by='project.customer.name'
|
||||||
search-value-members.user='-'
|
next='project'
|
||||||
hd-inherit-user-id='search-value-members.user'
|
|
||||||
hd-inherit-widgets
|
|
||||||
widget-badge='hd-counter'
|
|
||||||
action-badge='badge'
|
|
||||||
)
|
)
|
||||||
div.divider
|
div.divider
|
||||||
div.menu-wrapper
|
div.menu-wrapper
|
||||||
@ -53,19 +50,14 @@ nav#main__menu
|
|||||||
sib-route(name='circle', rdf-type='hd:circle', use-id='', hidden)
|
sib-route(name='circle', rdf-type='hd:circle', use-id='', hidden)
|
||||||
div.sub-menu.menu-notification
|
div.sub-menu.menu-notification
|
||||||
sib-display(
|
sib-display(
|
||||||
data-src=`${endpoints.circles}`
|
bind-user
|
||||||
fields='name, badge'
|
nested-field='circles'
|
||||||
|
fields='circle.name, circle'
|
||||||
empty-widget='hd-create'
|
empty-widget='hd-create'
|
||||||
empty-value='circle'
|
empty-value='circle'
|
||||||
widget-name='sib-display-div',
|
widget-circle.name='sib-display-div',
|
||||||
widget-badge='hd-counter'
|
widget-circle='hd-counter'
|
||||||
action-badge='badge'
|
order-by='circle.name'
|
||||||
search-fields='members.user'
|
|
||||||
search-widget-members.user='sib-form-hidden'
|
|
||||||
search-value-members.user='-'
|
|
||||||
hd-inherit-user-id='search-value-members.user'
|
|
||||||
hd-inherit-widgets
|
|
||||||
order-by='name'
|
|
||||||
next='circle'
|
next='circle'
|
||||||
)
|
)
|
||||||
div.divider
|
div.divider
|
||||||
|
@ -1,6 +1,17 @@
|
|||||||
div.content-box__info
|
div.content-box__info
|
||||||
sib-link(class="backlink" next='admin-project-list') Back
|
sib-link(class="backlink" next='admin-project-list') Back
|
||||||
|
|
||||||
|
sib-widget(name="admin-project-add-user")
|
||||||
|
template
|
||||||
|
sib-form(
|
||||||
|
data-holder
|
||||||
|
fields='user, project'
|
||||||
|
range-user=`${endpoints.users}`
|
||||||
|
value-project='${src}'
|
||||||
|
widget-project='sib-form-hidden'
|
||||||
|
naked
|
||||||
|
)
|
||||||
|
|
||||||
h1 New project
|
h1 New project
|
||||||
|
|
||||||
p.center Here you can create a new project according to your interests, what you want to share, etc.
|
p.center Here you can create a new project according to your interests, what you want to share, etc.
|
||||||
@ -8,7 +19,7 @@ div.content-box__info
|
|||||||
sib-form.block(
|
sib-form.block(
|
||||||
data-src=`${endpoints.projects}`
|
data-src=`${endpoints.projects}`
|
||||||
|
|
||||||
fields='line-1(customer.name, name), line-2(customer.logo), line-3(project.description), line-4(businessProvider.name, businessProvider.fee), line-5(customer.companyRegister), line-6(customer.address), line-7(customer.firstName, customer.lastName), line-8(customer.role), line-9(customer.email, customer.phone), line-10(captain)'
|
fields='line-1(customer.name, name), line-2(customer.logo), line-3(project.description), line-4(businessProvider.name, businessProvider.fee), line-5(customer.companyRegister), line-6(customer.address), line-7(customer.firstName, customer.lastName), line-8(customer.role), line-9(customer.email, customer.phone), line-10(captain), line-11(members)'
|
||||||
|
|
||||||
label-customer.name='Customer\'s name*'
|
label-customer.name='Customer\'s name*'
|
||||||
|
|
||||||
@ -40,6 +51,10 @@ div.content-box__info
|
|||||||
|
|
||||||
range-captain=`${endpoints.users}`
|
range-captain=`${endpoints.users}`
|
||||||
|
|
||||||
|
widget-members='admin-project-add-user'
|
||||||
|
action-members='members'
|
||||||
|
multiple-members
|
||||||
|
|
||||||
next='admin-project-list'
|
next='admin-project-list'
|
||||||
|
|
||||||
submit-button='Save'
|
submit-button='Save'
|
||||||
|
@ -3,8 +3,8 @@
|
|||||||
include page-admin-circles.pug
|
include page-admin-circles.pug
|
||||||
#admin-projects(hidden)
|
#admin-projects(hidden)
|
||||||
include page-admin-projects.pug
|
include page-admin-projects.pug
|
||||||
//- #admin-users(hidden)
|
//- #admin-users(hidden)
|
||||||
//- include page-admin-users.pug
|
include page-admin-users.pug
|
||||||
nav.jsRightMenu(role='navigation')
|
nav.jsRightMenu(role='navigation')
|
||||||
sib-router(default-route='admin-circles')
|
sib-router(default-route='admin-circles')
|
||||||
ul
|
ul
|
||||||
|
Loading…
Reference in New Issue
Block a user