Revert "Kanban estimation from lightbox"

This reverts commit 8167fd67b9.
stable
Xavier Julián 2014-09-15 18:45:11 +02:00
parent 23bb4d80f1
commit 36486bc9e3
6 changed files with 47 additions and 39 deletions

View File

@ -22,7 +22,7 @@ block content
//-include views/modules/list-filters-kanban //-include views/modules/list-filters-kanban
include views/modules/kanban-table include views/modules/kanban-table
div.lightbox.lightbox-generic-form.lb-create-edit-userstory(tg-lb-create-edit-userstory) div.lightbox.lightbox-generic-form(tg-lb-create-edit-userstory)
include views/modules/lightbox-us-create-edit include views/modules/lightbox-us-create-edit
div.lightbox.lightbox-generic-bulk(tg-lb-create-bulk-userstories) div.lightbox.lightbox-generic-bulk(tg-lb-create-bulk-userstories)

View File

@ -6,8 +6,33 @@ div.kanban-task-inner
span.task-num(tg-bo-ref="us.ref") span.task-num(tg-bo-ref="us.ref")
a.task-name(href="", tg-bo-title="us.subject", tg-bind-html="us.subject", a.task-name(href="", tg-bo-title="us.subject", tg-bind-html="us.subject",
tg-nav="project-userstories-detail:project=project.slug,ref=us.ref") tg-nav="project-userstories-detail:project=project.slug,ref=us.ref")
a.task-points(href="", title="Total Us points") ul.task-points-per-role
span(tg-bind-html="us.total_points") -- li
span points a(href="", title="Role Points")
span User Experience
span(tg-bind-html="us.total_points") --
span points
span.icon.icon-arrow-bottom
li
a(href="", title="Role Points")
span Design
span(tg-bind-html="us.total_points") --
span points
span.icon.icon-arrow-bottom
li
a(href="", title="Role Points")
span Front
span(tg-bind-html="us.total_points") --
span points
span.icon.icon-arrow-bottom
li
a(href="", title="Role Points")
span Back
span(tg-bind-html="us.total_points") --
span points
span.icon.icon-arrow-bottom
//-p.task-points
//- span(tg-bind-html="us.total_points") --
//- span points
a.icon.icon-edit(tg-check-permission="modify_us", href="", title="Edit") a.icon.icon-edit(tg-check-permission="modify_us", href="", title="Edit")
a.icon.icon-drag-h(tg-check-permission="modify_us", href="", title="Drag&Drop") a.icon.icon-drag-h(tg-check-permission="modify_us", href="", title="Drag&Drop")

View File

@ -5,25 +5,9 @@ form
fieldset fieldset
input(type="text", name="subject", ng-model="us.subject", tg-i18n="placeholder:common.subject", input(type="text", name="subject", ng-model="us.subject", tg-i18n="placeholder:common.subject",
data-required="true", data-maxlength="500") data-required="true", data-maxlength="500")
// Add estimation points fieldset
fieldset.estimation select(name="status", ng-model="us.status", ng-options="s.id as s.name for s in usStatusList",
ul.points-per-role tg-i18n="placeholder:common.status")
li.total
span.points 40
span.role UX
li.total
span.points 30
span.role Front
li.total
span.points 20
span.role Design
li.total
span.points 10
span.role Back
// Remove status input
//-fieldset
//- select(name="status", ng-model="us.status", ng-options="s.id as s.name for s in usStatusList",
//- tg-i18n="placeholder:common.status")
fieldset fieldset
div(tg-tag-line, editable="true", ng-model="us.tags") div(tg-tag-line, editable="true", ng-model="us.tags")

View File

@ -115,14 +115,23 @@
cursor: move; cursor: move;
right: 45%; right: 45%;
} }
.task-points { .task-points-per-role {
@extend %small; @extend %small;
color: darken($postit-hover, 15%);
display: block;
margin: 0; margin: 0;
a {
@include transition(color .2s linear);
color: darken($postit-hover, 15%);
&:hover {
@include transition(color .2s linear);
color: darken($postit-hover, 30%);
}
}
span { span {
display: inline-block; display: inline-block;
padding-left: .2rem;
&:first-child { &:first-child {
color: darken($postit-hover, 30%);
padding-left: 0;
padding-right: .2rem; padding-right: .2rem;
} }
} }
@ -152,7 +161,7 @@
white-space: nowrap; white-space: nowrap;
width: 70%; width: 70%;
} }
.task-points { .task-points-per-role {
display: none; display: none;
} }
.icon-edit, .icon-edit,

View File

@ -147,10 +147,8 @@
} }
.points-per-role { .points-per-role {
@include table-flex();
position: relative; position: relative;
> li { > li {
@include table-flex-child(1, 18%, 0);
@include transition(color .3s linear); @include transition(color .3s linear);
border-right: 1px solid rgba($grayer, .3); border-right: 1px solid rgba($grayer, .3);
color: rgba($grayer, .3); color: rgba($grayer, .3);
@ -158,13 +156,14 @@
margin: .5rem .1rem; margin: .5rem .1rem;
position: relative; position: relative;
text-align: center; text-align: center;
width: 18%;
&.active { &.active {
color: rgba($green-taiga, 1); color: rgba($green-taiga, 1);
} }
&:first-child { &:first-child {
opacity: 1; opacity: 1;
} }
&:last-child { &:nth-child(5n) {
border: 0; border: 0;
} }
} }

View File

@ -505,12 +505,3 @@
width: 600px; width: 600px;
} }
} }
.lb-create-edit-userstory {
.points-per-role {
margin-bottom: 1rem;
li {
margin: .5rem .1rem;
}
}
}