update: imbricate edit in profile & fix css

This commit is contained in:
Jean-Baptiste Pasquier 2019-10-24 22:03:15 +02:00
parent 9e3dc8fe8c
commit 48075b2419
No known key found for this signature in database
GPG Key ID: F2702E6D22ED4D62
7 changed files with 63 additions and 58 deletions

View File

@ -35,10 +35,6 @@ html(lang="en")
#circle(hidden).with-sidebar
include page-circle.pug
#circle-edit(hidden).no-sidebar
sib-link(class="backlink", bind-resources, next='circle') Back
include page-circle-edit.pug
#messages(hidden).with-sidebar
include page-messages.pug

View File

@ -81,7 +81,6 @@ nav#main__menu
order-by='username'
next='messages'
)
sib-route(hidden, name='circle-edit', use-id='')
//- div.divider
//- sib-route.menu(hidden, name='my-profile', rdf-type='foaf:user', use-id='')

View File

@ -1,4 +1,4 @@
#circle-edit.content-box.with-padding.with-form
div.content-box__info
include templates/hd-user-avatar.pug
@ -32,6 +32,8 @@
data-src="${await value['@id']}"
)
sib-link(class="backlink", bind-resources, next='circle-profile') Back
h1 Edit your circle
sib-form.block(

View File

@ -1,49 +1,55 @@
.content-box.full-width.with-form
sib-router(default-route='circle-profile')
sib-route(name='circle-profile')
sib-route(name='circle-edit')
include templates/hd-circle-team.pug
#circle-profile(hidden)
include templates/hd-circle-team.pug
div.content-box__header.with-edit
sib-display(
bind-resources
fields='name'
class-name='name'
)
sib-link(class="editlink", next="circle-edit" bind-resources)
div.content-box__info
sib-display.block(
bind-resources
fields='label-description, description, entitled(title, creationDate)'
value-label-description='Description: '
default-description='No description available.'
value-title='Creation date:'
)
sib-ac-checker(permission='acl:Write' bind-resources)
sib-form.block.team-form(
div.content-box__header.with-edit
sib-display(
bind-resources
fields='team'
range-team=`${endpoints.users}`
partial=''
fields='name'
class-team='team form-label is-dark'
label-team='Members:'
widget-team='sib-form-auto-completion'
submit-button='Add a member'
class-name='name'
)
sib-display.block(
bind-resources
fields='team'
sib-link(class="editlink", next="circle-edit" bind-resources)
multiple-team=''
widget-team='team-template'
)
div.content-box__info
sib-display.block(
bind-resources
fields='label-description, description, entitled(title, creationDate)'
value-label-description='Description: '
default-description='No description available.'
value-title='Creation date:'
)
sib-ac-checker(permission='acl:Write' bind-resources)
sib-form.block.team-form(
bind-resources
fields='team'
range-team=`${endpoints.users}`
partial=''
class-team='team form-label is-dark'
label-team='Members:'
widget-team='sib-form-auto-completion'
submit-button='Add a member'
)
sib-display.block(
bind-resources
fields='team'
multiple-team=''
widget-team='team-template'
)
#circle-edit(hidden)
include page-circle-edit.pug

View File

@ -1,7 +1,7 @@
.views-container
#circle-chat
#circle-chat(hidden)
include page-circle-chat.pug
#circle-profile
#circle-information(hidden)
include page-circle-profile.pug
//-#circle-create
include page-circle-create.pug
@ -13,9 +13,6 @@ nav.jsRightMenu(role='navigation')
sib-route(name='circle-chat')
li
a Chat
sib-route(name='circle-profile')
sib-route(name='circle-information')
li
a Information
//-sib-route(name='circle-create')
li
a Add new

View File

@ -89,7 +89,7 @@
@include ci('list');
}
&[name$='profile']>li {
&[name$='profile']>li, &[name$='information']>li {
@include ci('information');
}

View File

@ -1,7 +1,12 @@
#circle-profile {
#circle-information, #circle-edit {
.content-box__info {
@extend %padding-block;
.backlink {
text-align: right;
display: block;
}
}
.block {