Batch actions wip
For martin to continue with the model bindings
This commit is contained in:
parent
cadca4cd08
commit
55939db0ea
2 changed files with 258 additions and 49 deletions
|
@ -16,7 +16,116 @@
|
||||||
<%- @Icon('arrow-down') %>
|
<%- @Icon('arrow-down') %>
|
||||||
<div class="batch-overlay-circle-label"><%- @T('assign tickets') %></div>
|
<div class="batch-overlay-circle-label"><%- @T('assign tickets') %></div>
|
||||||
</div>
|
</div>
|
||||||
|
<!--
|
||||||
|
sort assignes by important to not important
|
||||||
|
first assignes are always visible
|
||||||
|
-->
|
||||||
<div class="batch-overlay-assign batch-overlay-box js-batch-assign">
|
<div class="batch-overlay-assign batch-overlay-box js-batch-assign">
|
||||||
|
<div class="batch-overlay-box-inner">
|
||||||
|
<div class="batch-overlay-assign-entry js-batch-overlay-entry" data-action="assign">
|
||||||
|
<span class="avatar size-80 avatar--unique" style="background-position: -100px -150px;">HH</span>
|
||||||
|
<div class="batch-overlay-assign-entry-name">1st Hans Huber</div>
|
||||||
|
</div>
|
||||||
|
<div class="batch-overlay-assign-entry js-batch-overlay-entry" data-action="assign">
|
||||||
|
<span class="avatar size-80 avatar--unique" style="background-position: -100px -150px;">HH</span>
|
||||||
|
<div class="batch-overlay-assign-entry-name">Hans Huber</div>
|
||||||
|
</div>
|
||||||
|
<div class="batch-overlay-assign-entry js-batch-overlay-entry" data-action="assign">
|
||||||
|
<span class="avatar size-80 avatar--unique" style="background-position: -100px -150px;">HH</span>
|
||||||
|
<div class="batch-overlay-assign-entry-name">Hans Huber</div>
|
||||||
|
</div>
|
||||||
|
<div class="batch-overlay-assign-entry js-batch-overlay-entry" data-action="assign">
|
||||||
|
<span class="avatar size-80 avatar--unique" style="background-position: -100px -150px;">HH</span>
|
||||||
|
<div class="batch-overlay-assign-entry-name">Hans Huber</div>
|
||||||
|
</div>
|
||||||
|
<div class="batch-overlay-assign-entry js-batch-overlay-entry" data-action="assign">
|
||||||
|
<span class="avatar size-80 avatar--unique" style="background-position: -100px -150px;">HH</span>
|
||||||
|
<div class="batch-overlay-assign-entry-name">Hans Huber</div>
|
||||||
|
</div>
|
||||||
|
<div class="batch-overlay-assign-entry js-batch-overlay-entry" data-action="assign">
|
||||||
|
<span class="avatar size-80 avatar--unique" style="background-position: -100px -150px;">HH</span>
|
||||||
|
<div class="batch-overlay-assign-entry-name">Hans Huber</div>
|
||||||
|
</div>
|
||||||
|
<div class="batch-overlay-assign-entry js-batch-overlay-entry" data-action="assign">
|
||||||
|
<span class="avatar size-80 avatar--unique" style="background-position: -100px -150px;">HH</span>
|
||||||
|
<div class="batch-overlay-assign-entry-name">Hans Huber</div>
|
||||||
|
</div>
|
||||||
|
<div class="batch-overlay-assign-entry js-batch-overlay-entry" data-action="assign">
|
||||||
|
<span class="avatar size-80 avatar--unique" style="background-position: -100px -150px;">HH</span>
|
||||||
|
<div class="batch-overlay-assign-entry-name">Hans Huber</div>
|
||||||
|
</div>
|
||||||
|
<div class="batch-overlay-assign-entry js-batch-overlay-entry" data-action="assign">
|
||||||
|
<span class="avatar size-80 avatar--unique" style="background-position: -100px -150px;">HH</span>
|
||||||
|
<div class="batch-overlay-assign-entry-name">Hans Huber</div>
|
||||||
|
</div>
|
||||||
|
<div class="batch-overlay-assign-entry js-batch-overlay-entry" data-action="assign">
|
||||||
|
<span class="avatar size-80 avatar--unique" style="background-position: -100px -150px;">HH</span>
|
||||||
|
<div class="batch-overlay-assign-entry-name">Hans Huber</div>
|
||||||
|
</div>
|
||||||
|
<div class="batch-overlay-assign-entry js-batch-overlay-entry" data-action="assign">
|
||||||
|
<span class="avatar size-80 avatar--unique" style="background-position: -100px -150px;">HH</span>
|
||||||
|
<div class="batch-overlay-assign-entry-name">Hans Huber</div>
|
||||||
|
</div>
|
||||||
|
<div class="batch-overlay-assign-entry js-batch-overlay-entry" data-action="assign">
|
||||||
|
<span class="avatar size-80 avatar--unique" style="background-position: -100px -150px;">HH</span>
|
||||||
|
<div class="batch-overlay-assign-entry-name">Hans Huber</div>
|
||||||
|
</div>
|
||||||
|
<div class="batch-overlay-assign-entry js-batch-overlay-entry" data-action="assign">
|
||||||
|
<span class="avatar size-80 avatar--unique" style="background-position: -100px -150px;">HH</span>
|
||||||
|
<div class="batch-overlay-assign-entry-name">Hans Huber</div>
|
||||||
|
</div>
|
||||||
|
<div class="batch-overlay-assign-entry js-batch-overlay-entry" data-action="assign">
|
||||||
|
<span class="avatar size-80 avatar--unique" style="background-position: -100px -150px;">HH</span>
|
||||||
|
<div class="batch-overlay-assign-entry-name">Hans Huber</div>
|
||||||
|
</div>
|
||||||
|
<div class="batch-overlay-assign-entry js-batch-overlay-entry" data-action="assign">
|
||||||
|
<span class="avatar size-80 avatar--unique" style="background-position: -100px -150px;">HH</span>
|
||||||
|
<div class="batch-overlay-assign-entry-name">Hans Huber</div>
|
||||||
|
</div>
|
||||||
|
<div class="batch-overlay-assign-entry js-batch-overlay-entry" data-action="assign">
|
||||||
|
<span class="avatar size-80 avatar--unique" style="background-position: -100px -150px;">HH</span>
|
||||||
|
<div class="batch-overlay-assign-entry-name">Hans Huber</div>
|
||||||
|
</div>
|
||||||
|
<div class="batch-overlay-assign-entry js-batch-overlay-entry" data-action="assign">
|
||||||
|
<span class="avatar size-80 avatar--unique" style="background-position: -100px -150px;">HH</span>
|
||||||
|
<div class="batch-overlay-assign-entry-name">Hans Huber</div>
|
||||||
|
</div>
|
||||||
|
<div class="batch-overlay-assign-entry js-batch-overlay-entry" data-action="assign">
|
||||||
|
<span class="avatar size-80 avatar--unique" style="background-position: -100px -150px;">HH</span>
|
||||||
|
<div class="batch-overlay-assign-entry-name">Hans Huber</div>
|
||||||
|
</div>
|
||||||
|
<div class="batch-overlay-assign-entry js-batch-overlay-entry" data-action="assign">
|
||||||
|
<span class="avatar size-80 avatar--unique" style="background-position: -100px -150px;">HH</span>
|
||||||
|
<div class="batch-overlay-assign-entry-name">Hans Huber</div>
|
||||||
|
</div>
|
||||||
|
<div class="batch-overlay-assign-entry js-batch-overlay-entry" data-action="assign">
|
||||||
|
<span class="avatar size-80 avatar--unique" style="background-position: -100px -150px;">HH</span>
|
||||||
|
<div class="batch-overlay-assign-entry-name">Hans Huber</div>
|
||||||
|
</div>
|
||||||
|
<div class="batch-overlay-assign-entry js-batch-overlay-entry" data-action="assign">
|
||||||
|
<span class="avatar size-80 avatar--unique" style="background-position: -100px -150px;">HH</span>
|
||||||
|
<div class="batch-overlay-assign-entry-name">Hans Huber</div>
|
||||||
|
</div>
|
||||||
|
<div class="batch-overlay-assign-entry js-batch-overlay-entry" data-action="assign">
|
||||||
|
<span class="avatar size-80 avatar--unique" style="background-position: -100px -150px;">HH</span>
|
||||||
|
<div class="batch-overlay-assign-entry-name">Hans Huber</div>
|
||||||
|
</div>
|
||||||
|
<div class="batch-overlay-assign-entry js-batch-overlay-entry" data-action="assign">
|
||||||
|
<span class="avatar size-80 avatar--unique" style="background-position: -100px -150px;">HH</span>
|
||||||
|
<div class="batch-overlay-assign-entry-name">Hans Huber</div>
|
||||||
|
</div>
|
||||||
|
<div class="batch-overlay-assign-entry js-batch-overlay-entry" data-action="assign">
|
||||||
|
<span class="avatar size-80 avatar--unique" style="background-position: -100px -150px;">HH</span>
|
||||||
|
<div class="batch-overlay-assign-entry-name">Hans Huber</div>
|
||||||
|
</div>
|
||||||
|
<div class="batch-overlay-assign-entry js-batch-overlay-entry" data-action="assign">
|
||||||
|
<span class="avatar size-80 avatar--unique" style="background-position: -100px -150px;">HH</span>
|
||||||
|
<div class="batch-overlay-assign-entry-name">Hans Huber</div>
|
||||||
|
</div>
|
||||||
|
<div class="batch-overlay-assign-entry js-batch-overlay-entry" data-action="assign">
|
||||||
|
<span class="avatar size-80 avatar--unique" style="background-position: -100px -150px;">HH</span>
|
||||||
|
<div class="batch-overlay-assign-entry-name">Hans Huber</div>
|
||||||
|
</div>
|
||||||
<div class="batch-overlay-assign-entry js-batch-overlay-entry" data-action="assign">
|
<div class="batch-overlay-assign-entry js-batch-overlay-entry" data-action="assign">
|
||||||
<span class="avatar size-80 avatar--unique" style="background-position: -100px -150px;">HH</span>
|
<span class="avatar size-80 avatar--unique" style="background-position: -100px -150px;">HH</span>
|
||||||
<div class="batch-overlay-assign-entry-name">Hans Huber</div>
|
<div class="batch-overlay-assign-entry-name">Hans Huber</div>
|
||||||
|
@ -33,7 +142,61 @@
|
||||||
<div class="batch-overlay-assign-entry-name">Felicity Dickens</div>
|
<div class="batch-overlay-assign-entry-name">Felicity Dickens</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
<!--
|
||||||
|
sort macros by not important to important
|
||||||
|
the last macros are visible on all screen sizes
|
||||||
|
-->
|
||||||
<div class="batch-overlay-macro batch-overlay-box js-batch-macro">
|
<div class="batch-overlay-macro batch-overlay-box js-batch-macro">
|
||||||
|
<div class="batch-overlay-box-inner">
|
||||||
|
<div class="batch-overlay-macro-entry js-batch-overlay-entry" data-action="macro">
|
||||||
|
<div class="batch-overlay-macro-entry-name">Close</div>
|
||||||
|
</div>
|
||||||
|
<div class="batch-overlay-macro-entry js-batch-overlay-entry" data-action="macro">
|
||||||
|
<div class="batch-overlay-macro-entry-name">Close</div>
|
||||||
|
</div>
|
||||||
|
<div class="batch-overlay-macro-entry js-batch-overlay-entry" data-action="macro">
|
||||||
|
<div class="batch-overlay-macro-entry-name">Close</div>
|
||||||
|
</div>
|
||||||
|
<div class="batch-overlay-macro-entry js-batch-overlay-entry" data-action="macro">
|
||||||
|
<div class="batch-overlay-macro-entry-name">Close</div>
|
||||||
|
</div>
|
||||||
|
<div class="batch-overlay-macro-entry js-batch-overlay-entry" data-action="macro">
|
||||||
|
<div class="batch-overlay-macro-entry-name">Close</div>
|
||||||
|
</div>
|
||||||
|
<div class="batch-overlay-macro-entry js-batch-overlay-entry" data-action="macro">
|
||||||
|
<div class="batch-overlay-macro-entry-name">Close</div>
|
||||||
|
</div>
|
||||||
|
<div class="batch-overlay-macro-entry js-batch-overlay-entry" data-action="macro">
|
||||||
|
<div class="batch-overlay-macro-entry-name">Close</div>
|
||||||
|
</div>
|
||||||
|
<div class="batch-overlay-macro-entry js-batch-overlay-entry" data-action="macro">
|
||||||
|
<div class="batch-overlay-macro-entry-name">Close</div>
|
||||||
|
</div>
|
||||||
|
<div class="batch-overlay-macro-entry js-batch-overlay-entry" data-action="macro">
|
||||||
|
<div class="batch-overlay-macro-entry-name">Close</div>
|
||||||
|
</div>
|
||||||
|
<div class="batch-overlay-macro-entry js-batch-overlay-entry" data-action="macro">
|
||||||
|
<div class="batch-overlay-macro-entry-name">Close</div>
|
||||||
|
</div>
|
||||||
|
<div class="batch-overlay-macro-entry js-batch-overlay-entry" data-action="macro">
|
||||||
|
<div class="batch-overlay-macro-entry-name">Close</div>
|
||||||
|
</div>
|
||||||
|
<div class="batch-overlay-macro-entry js-batch-overlay-entry" data-action="macro">
|
||||||
|
<div class="batch-overlay-macro-entry-name">Close</div>
|
||||||
|
</div>
|
||||||
|
<div class="batch-overlay-macro-entry js-batch-overlay-entry" data-action="macro">
|
||||||
|
<div class="batch-overlay-macro-entry-name">Close</div>
|
||||||
|
</div>
|
||||||
|
<div class="batch-overlay-macro-entry js-batch-overlay-entry" data-action="macro">
|
||||||
|
<div class="batch-overlay-macro-entry-name">Close</div>
|
||||||
|
</div>
|
||||||
|
<div class="batch-overlay-macro-entry js-batch-overlay-entry" data-action="macro">
|
||||||
|
<div class="batch-overlay-macro-entry-name">Close</div>
|
||||||
|
</div>
|
||||||
|
<div class="batch-overlay-macro-entry js-batch-overlay-entry" data-action="macro">
|
||||||
|
<div class="batch-overlay-macro-entry-name">Close</div>
|
||||||
|
</div>
|
||||||
<div class="batch-overlay-macro-entry js-batch-overlay-entry" data-action="macro">
|
<div class="batch-overlay-macro-entry js-batch-overlay-entry" data-action="macro">
|
||||||
<div class="batch-overlay-macro-entry-name">Close</div>
|
<div class="batch-overlay-macro-entry-name">Close</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -46,5 +209,9 @@
|
||||||
<div class="batch-overlay-macro-entry js-batch-overlay-entry" data-action="macro">
|
<div class="batch-overlay-macro-entry js-batch-overlay-entry" data-action="macro">
|
||||||
<div class="batch-overlay-macro-entry-name">Escalate to 2nd level</div>
|
<div class="batch-overlay-macro-entry-name">Escalate to 2nd level</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="batch-overlay-macro-entry js-batch-overlay-entry" data-action="macro">
|
||||||
|
<div class="batch-overlay-macro-entry-name">1st Close</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
|
@ -15,7 +15,29 @@ $navigationWidth: 260px;
|
||||||
|
|
||||||
$highlight-color: hsl(205,90%,60%);
|
$highlight-color: hsl(205,90%,60%);
|
||||||
|
|
||||||
$largeScreenBreakpoint: 1260px;
|
@mixin desktop {
|
||||||
|
@media screen and (min-width: 1260px) {
|
||||||
|
@content;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin small-desktop {
|
||||||
|
@media screen and (max-width: 1260px) {
|
||||||
|
@content;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin tablet {
|
||||||
|
@media screen and (min-width: 768px) {
|
||||||
|
@content;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin phone {
|
||||||
|
@media screen and (max-width: 767px) {
|
||||||
|
@content;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
html {
|
html {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
@ -2725,7 +2747,7 @@ footer {
|
||||||
|
|
||||||
.overviews {
|
.overviews {
|
||||||
.sidebar {
|
.sidebar {
|
||||||
@media only screen and (max-width: $largeScreenBreakpoint) {
|
@include small-desktop {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2758,7 +2780,7 @@ footer {
|
||||||
width: 336px;
|
width: 336px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media only screen and (max-width: $largeScreenBreakpoint) {
|
@include small-desktop {
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2780,7 +2802,7 @@ footer {
|
||||||
0 -2px rgba(0,0,0,.03),
|
0 -2px rgba(0,0,0,.03),
|
||||||
0 -3px rgba(0,0,0,.01);
|
0 -3px rgba(0,0,0,.01);
|
||||||
|
|
||||||
@media only screen and (max-width: $largeScreenBreakpoint) {
|
@include small-desktop {
|
||||||
left: $navigationWidth;
|
left: $navigationWidth;
|
||||||
min-width: $minWidth - $sidebarWidth;
|
min-width: $minWidth - $sidebarWidth;
|
||||||
}
|
}
|
||||||
|
@ -3634,6 +3656,12 @@ footer {
|
||||||
border-right: 1px solid #e6e6e6;
|
border-right: 1px solid #e6e6e6;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
|
|
||||||
|
@include small-desktop {
|
||||||
|
&.optional {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
h2 {
|
h2 {
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
}
|
}
|
||||||
|
@ -8441,21 +8469,36 @@ output {
|
||||||
|
|
||||||
&-box {
|
&-box {
|
||||||
background: hsl(232,9%,17%);
|
background: hsl(232,9%,17%);
|
||||||
display: flex;
|
|
||||||
flex-wrap: wrap;
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 37px 25px;
|
|
||||||
position: absolute;
|
position: absolute;
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
will-change: opacity, transition;
|
will-change: opacity, transition;
|
||||||
|
|
||||||
|
&-inner {
|
||||||
|
margin: 37px 25px;
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
justify-content: space-between;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&-assign {
|
&-assign {
|
||||||
padding-bottom: 87px; // 37px + 50px
|
padding-bottom: 50px;
|
||||||
bottom: -50px; // extra space for bounce animation
|
bottom: -50px; // extra space for bounce animation
|
||||||
|
|
||||||
|
.batch-overlay-box-inner {
|
||||||
|
max-height: 318px;
|
||||||
|
|
||||||
|
@media screen and (min-height: 800px) {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
&-entry {
|
&-entry {
|
||||||
padding: 13px;
|
padding: 13px;
|
||||||
|
width: 116px;
|
||||||
|
height: 159px;
|
||||||
|
|
||||||
&.is-hovered {
|
&.is-hovered {
|
||||||
.avatar {
|
.avatar {
|
||||||
|
@ -8471,6 +8514,16 @@ output {
|
||||||
transition: transform 120ms;
|
transition: transform 120ms;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&-name {
|
||||||
|
max-height: 34px;
|
||||||
|
overflow: hidden;
|
||||||
|
display: -webkit-box;
|
||||||
|
-webkit-box-orient: vertical;
|
||||||
|
-webkit-line-clamp: 2;
|
||||||
|
overflow: hidden;
|
||||||
|
word-break: break-word;
|
||||||
|
}
|
||||||
|
|
||||||
&-detail {
|
&-detail {
|
||||||
color: gray;
|
color: gray;
|
||||||
}
|
}
|
||||||
|
@ -8478,9 +8531,13 @@ output {
|
||||||
}
|
}
|
||||||
|
|
||||||
&-macro {
|
&-macro {
|
||||||
padding-top: 87px; // 37px + 50px
|
padding-top: 50px;
|
||||||
top: -50px; // extra space for bounce animation
|
top: -50px; // extra space for bounce animation
|
||||||
|
|
||||||
|
.batch-overlay-box-inner {
|
||||||
|
max-height: 146px;
|
||||||
|
}
|
||||||
|
|
||||||
&-entry {
|
&-entry {
|
||||||
margin: 13px;
|
margin: 13px;
|
||||||
border: 4px solid hsl(231,5%,30%);
|
border: 4px solid hsl(231,5%,30%);
|
||||||
|
@ -8567,21 +8624,6 @@ output {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
|
|
||||||
----------------
|
|
||||||
normal screens
|
|
||||||
----------------
|
|
||||||
|
|
||||||
*/
|
|
||||||
|
|
||||||
@media only screen and (max-width: $largeScreenBreakpoint) {
|
|
||||||
.sidebar.optional {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue