Merge branch 'staging' into 'project-admin'
# Conflicts: # src/menu-left.pug
This commit is contained in:
commit
b20da1d5dd
@ -38,45 +38,45 @@ div.content-box__info
|
|||||||
|
|
||||||
sib-link(class="backlink", bind-resources, next='circle-profile') Back
|
sib-link(class="backlink", bind-resources, next='circle-profile') Back
|
||||||
|
|
||||||
h1 Edit your circle
|
sib-ac-checker(permission='acl:Write', bind-resources)
|
||||||
|
h1 Edit your circle
|
||||||
|
|
||||||
sib-form.block.circle-edit-form(
|
sib-form.block.circle-edit-form(
|
||||||
bind-resources
|
bind-resources
|
||||||
|
|
||||||
fields='block-circle__info(name, owner), description'
|
fields='block-circle__info(name, owner), description'
|
||||||
range-owner=`${endpoints.users}`
|
range-owner=`${endpoints.users}`
|
||||||
|
|
||||||
label-owner='owner'
|
label-owner='owner'
|
||||||
label-description='circle subtitle'
|
label-description='circle subtitle'
|
||||||
|
|
||||||
class-name='form-label is-light is-half-width'
|
class-name='form-label is-light is-half-width'
|
||||||
class-owner='form-label is-light is-half-width member-select color'
|
class-owner='form-label is-light is-half-width member-select color'
|
||||||
class-description='form-label is-light is-full-width'
|
class-description='form-label is-light is-full-width'
|
||||||
|
|
||||||
widget-owner='sib-form-auto-completion'
|
widget-owner='sib-form-auto-completion'
|
||||||
|
|
||||||
partial=''
|
partial=''
|
||||||
|
|
||||||
submit-button='Save'
|
submit-button='Save'
|
||||||
next='circle-information'
|
next='circle-information'
|
||||||
)
|
)
|
||||||
|
|
||||||
h2 Members list
|
h2 Members list
|
||||||
|
|
||||||
//- TODO: sib-ac-checker unworking - https://git.happy-dev.fr/startinblox/framework/sib-core/issues/517
|
sib-ac-checker(permission='acl:Append', bind-resources, nested-field='team')
|
||||||
//- sib-ac-checker(permission='acl:Write', bind-resources, nested-field='team')
|
sib-form.block.team-form(
|
||||||
sib-form.block.team-form(
|
bind-resources
|
||||||
bind-resources
|
nested-field='members'
|
||||||
nested-field='members'
|
fields='user'
|
||||||
fields='user'
|
range-user=`${endpoints.users}`
|
||||||
range-user=`${endpoints.users}`
|
|
||||||
|
|
||||||
class-user='team form-label is-dark'
|
class-user='team form-label is-dark'
|
||||||
label-user=''
|
label-user=''
|
||||||
widget-user='sib-form-auto-completion'
|
widget-user='sib-form-auto-completion'
|
||||||
|
|
||||||
submit-button='Add a member'
|
submit-button='Add a member'
|
||||||
)
|
)
|
||||||
|
|
||||||
.table
|
.table
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ sib-router(default-route='circle-profile', hidden)
|
|||||||
|
|
||||||
widget-creationDate='sib-display-date'
|
widget-creationDate='sib-display-date'
|
||||||
)
|
)
|
||||||
sib-ac-checker.testblock.circle-edit-button(permission='acl:Write', bind-resources)
|
sib-ac-checker.testblock.circle-edit-button(permission='acl:Append', bind-resources, nested-field='members')
|
||||||
sib-link(class='button text-bold text-uppercase reversed button-blue bordered with-icon icon-pencil' next='circle-edit' bind-resources) Edit and add Members
|
sib-link(class='button text-bold text-uppercase reversed button-blue bordered with-icon icon-pencil' next='circle-edit' bind-resources) Edit and add Members
|
||||||
|
|
||||||
|
|
||||||
|
@ -4,6 +4,7 @@ $color-45-95-54: hsl(45, 95%, 54%);
|
|||||||
$color-46-100-67: hsl(46, 100%, 67%);
|
$color-46-100-67: hsl(46, 100%, 67%);
|
||||||
$color-46-100-50: hsl(46, 100%, 50%);
|
$color-46-100-50: hsl(46, 100%, 50%);
|
||||||
$color-0-0-100: hsl(0, 0%, 100%);
|
$color-0-0-100: hsl(0, 0%, 100%);
|
||||||
|
$color-218-100-98: hsl(218, 100%, 98%);
|
||||||
$color-210-17-91: hsl(210, 17%, 91%);
|
$color-210-17-91: hsl(210, 17%, 91%);
|
||||||
$color-222-52-90: hsl(222, 52%, 90%);
|
$color-222-52-90: hsl(222, 52%, 90%);
|
||||||
$color-210-25-95: hsl(210, 25%, 95%);
|
$color-210-25-95: hsl(210, 25%, 95%);
|
||||||
@ -22,5 +23,6 @@ $color-213-4-50: hsl(213, 4%, 50%);
|
|||||||
$color-213-13-86: hsla(213, 13%, 86%, 0.2);
|
$color-213-13-86: hsla(213, 13%, 86%, 0.2);
|
||||||
$color-0-0-29: hsl(0, 0%, 29%);
|
$color-0-0-29: hsl(0, 0%, 29%);
|
||||||
$color-233-18-29: hsl(233, 18%, 29%);
|
$color-233-18-29: hsl(233, 18%, 29%);
|
||||||
|
$color-233-20-17: hsl(233, 20%, 17%);
|
||||||
$color-216-4-22: hsl(216, 4%, 22%);
|
$color-216-4-22: hsl(216, 4%, 22%);
|
||||||
$color-244-73-62: hsl(244, 73%, 62%);
|
$color-244-73-62: hsl(244, 73%, 62%);
|
||||||
|
@ -20,12 +20,11 @@ $breakpoints: (phone: 480px,
|
|||||||
background-color: $color-210-25-95;
|
background-color: $color-210-25-95;
|
||||||
color: $color-213-4-50;
|
color: $color-213-4-50;
|
||||||
font-size: 1.6rem;
|
font-size: 1.6rem;
|
||||||
overflow: hidden;
|
overflow-y: scroll;
|
||||||
overflow-wrap: break-word;
|
}
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
html {
|
||||||
height: 100vh;
|
overflow-y: scroll;
|
||||||
overflow: hidden;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
main {
|
main {
|
||||||
@ -102,7 +101,7 @@ h5 {
|
|||||||
flex: 1;
|
flex: 1;
|
||||||
font-size: 1.6rem;
|
font-size: 1.6rem;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
min-height: calc(100vh - 84px);
|
min-height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.with-padding {
|
&.with-padding {
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
background-color: $color-233-18-29;
|
background-color: $color-233-18-29;
|
||||||
color: $color-0-0-100;
|
color: $color-0-0-100;
|
||||||
display: block;
|
display: block;
|
||||||
overflow: auto;
|
height: auto;
|
||||||
flex: 0 0 16em;
|
max-width: 250px;
|
||||||
transition: flex-basis 0.5s ease-in-out;
|
transition: flex-basis 0.5s ease-in-out;
|
||||||
|
|
||||||
&.open {
|
&.open {
|
||||||
@ -90,6 +90,41 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.sub-menu {
|
.sub-menu {
|
||||||
|
|
||||||
|
sib-set-default[name='project'] {
|
||||||
|
padding: 1rem 1rem 1rem 3.2rem;
|
||||||
|
|
||||||
|
.project-customer,
|
||||||
|
.project-name {
|
||||||
|
display: inline-block;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.project-customer {
|
||||||
|
font-weight: bold;
|
||||||
|
width: 150px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.project-name {
|
||||||
|
padding-left: 14px;
|
||||||
|
width: calc(150px - 10px); /* 10px = padding of the sib-set-default = better alignment */
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background-color: $color-233-20-17;
|
||||||
|
box-shadow: 0 0 7px 0 rgba(0, 0, 0, 0.26);
|
||||||
|
color: $color-218-100-98;
|
||||||
|
/* transition: all 0.6s cubic-bezier(0.39, 0.575, 0.565, 1); Need better animation */
|
||||||
|
width: auto;
|
||||||
|
|
||||||
|
.project-customer,
|
||||||
|
.project-name {
|
||||||
|
width: auto;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
sib-display>div {
|
sib-display>div {
|
||||||
|
|
||||||
@ -108,20 +143,10 @@
|
|||||||
color: $color-244-10-70;
|
color: $color-244-10-70;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
padding: 10px 10px 10px 32px;
|
padding: 10px 10px 10px 32px;
|
||||||
}
|
}
|
||||||
|
|
||||||
sib-route[name='project'] {
|
&[fields="project(customer.name, name), badge"]>div {
|
||||||
display: flex;
|
padding: 0;
|
||||||
flex: 3;
|
|
||||||
|
|
||||||
sib-display-value {
|
|
||||||
display: block;
|
|
||||||
height: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
sib-display-value[name='dash'] {
|
|
||||||
margin: 0 0.4em;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user