Updating admin visualization for archived attribute in userstory status

stable
Alejandro Alonso 2014-12-29 13:34:14 +01:00
parent f6d973a2ae
commit 010211fb64
3 changed files with 20 additions and 0 deletions

View File

@ -136,6 +136,7 @@ ProjectValuesDirective = ($log, $repo, $confirm, $location, animationFrame) ->
$scope.newValue = {
"name": ""
"is_closed": false
"is_archived": false
}
initializeNewValue()

View File

@ -5,6 +5,7 @@ section.colors-table
div.status-name Name
div.status-slug Slug
div.is-closed-column Is closed?
div.is-archived-column Is archived?
div.status-wip-limit WIP Limit
div.options-column
@ -26,6 +27,9 @@ section.colors-table
div.is-closed-column
div.icon.icon-check-square(ng-show="value.is_closed")
div.is-archived-column
div.icon.icon-check-square(ng-show="value.is_archived")
div.status-wip-limit
span {{ value.wip_limit }}
@ -45,6 +49,11 @@ section.colors-table
div.is-closed-column
select(name="is_closed", ng-model="value.is_closed", data-required="true",
ng-options="e.id as e.name for e in [{'id':true, 'name':'Yes'},{'id':false, 'name': 'No'}]")
div.is-archived-column
select(name="is_archived", ng-model="value.is_archived", data-required="true",
ng-options="e.id as e.name for e in [{'id':true, 'name':'Yes'},{'id':false, 'name': 'No'}]")
div.status-wip-limit
input(name="wip_limit", type="number", placeholder="WIP Limit",
ng-model="value.wip_limit", data-type="digits")
@ -67,6 +76,10 @@ section.colors-table
select(name="is_closed", ng-model="newValue.is_closed", data-required="true",
ng-options="e.id as e.name for e in [{'id':true, 'name':'Yes'},{'id':false, 'name': 'No'}]")
div.is-archived-column
select(name="is_archived", ng-model="newValue.is_archived", data-required="true",
ng-options="e.id as e.name for e in [{'id':true, 'name':'Yes'},{'id':false, 'name': 'No'}]")
div.status-wip-limit
input(name="wip_limit", type="number", placeholder="WIP Limit",
ng-model="newValue.wip_limit", data-type="digits")

View File

@ -36,6 +36,7 @@
max-width: 100px;
position: relative;
}
.is-archived-column,
.is-closed-column,
.options-column,
.status-wip-limit {
@ -59,6 +60,11 @@
opacity: 0;
text-align: right;
}
.is-archived-column {
max-width: 130px;
padding: 0 0 0 10px;
text-align: center;
}
.is-closed-column {
max-width: 130px;
text-align: center;