Improving us statuses for admin
parent
5f801bd424
commit
775defad3f
|
@ -242,7 +242,9 @@ ProjectUsStatusDirective = ($log, $repo, $confirm, $location) ->
|
||||||
# Selecting one color on color selector
|
# Selecting one color on color selector
|
||||||
event.preventDefault()
|
event.preventDefault()
|
||||||
target = angular.element(event.currentTarget)
|
target = angular.element(event.currentTarget)
|
||||||
console.log "TODO", target.data("color")
|
status = target.scope().status
|
||||||
|
$scope.$apply ->
|
||||||
|
status.color = target.data("color")
|
||||||
$el.find(".select-color").hide()
|
$el.find(".select-color").hide()
|
||||||
|
|
||||||
link = ($scope, $el, $attrs) ->
|
link = ($scope, $el, $attrs) ->
|
||||||
|
|
|
@ -1,26 +1,26 @@
|
||||||
div.popover.select-color
|
div.popover.select-color
|
||||||
ul
|
ul
|
||||||
li.color(style="background: #fce94f")
|
li.color(style="background: #fce94f", data-color="#fce94f")
|
||||||
li.color(style="background: #edd400")
|
li.color(style="background: #edd400", data-color="#edd400")
|
||||||
li.color(style="background: #c4a000")
|
li.color(style="background: #c4a000", data-color="#c4a000")
|
||||||
li.color(style="background: #8ae234")
|
li.color(style="background: #8ae234", data-color="#8ae234")
|
||||||
li.color(style="background: #73d216")
|
li.color(style="background: #73d216", data-color="#73d216")
|
||||||
li.color(style="background: #4e9a06")
|
li.color(style="background: #4e9a06", data-color="#4e9a06")
|
||||||
li.color(style="background: #d3d7cf")
|
li.color(style="background: #d3d7cf", data-color="#d3d7cf")
|
||||||
li.color(style="background: #fcaf3e")
|
li.color(style="background: #fcaf3e", data-color="#fcaf3e")
|
||||||
li.color(style="background: #f57900")
|
li.color(style="background: #f57900", data-color="#f57900")
|
||||||
li.color(style="background: #ce5c00")
|
li.color(style="background: #ce5c00", data-color="#ce5c00")
|
||||||
li.color(style="background: #729fcf")
|
li.color(style="background: #729fcf", data-color="#729fcf")
|
||||||
li.color(style="background: #3465a4")
|
li.color(style="background: #3465a4", data-color="#3465a4")
|
||||||
li.color(style="background: #204a87")
|
li.color(style="background: #204a87", data-color="#204a87")
|
||||||
li.color(style="background: #888a85")
|
li.color(style="background: #888a85", data-color="#888a85")
|
||||||
li.color(style="background: #ad7fa8")
|
li.color(style="background: #ad7fa8", data-color="#ad7fa8")
|
||||||
li.color(style="background: #75507b")
|
li.color(style="background: #75507b", data-color="#75507b")
|
||||||
li.color(style="background: #5c3566")
|
li.color(style="background: #5c3566", data-color="#5c3566")
|
||||||
li.color(style="background: #ef2929")
|
li.color(style="background: #ef2929", data-color="#ef2929")
|
||||||
li.color(style="background: #cc0000")
|
li.color(style="background: #cc0000", data-color="#cc0000")
|
||||||
li.color(style="background: #a40000")
|
li.color(style="background: #a40000", data-color="#a40000")
|
||||||
li.color(style="background: #2e3436")
|
li.color(style="background: #2e3436", data-color="#2e3436")
|
||||||
|
|
||||||
input(type="text", placeholder="personalized colors", ng-model="status.color")
|
input(type="text", placeholder="personalized colors", ng-model="status.color")
|
||||||
div.selected-color(style="background-color: {{ status.color }}")
|
div.selected-color(style="background-color: {{ status.color }}")
|
||||||
|
|
Loading…
Reference in New Issue