Adding last sprint name to sprint creation in backlog
parent
d07289301b
commit
439939faf3
|
@ -19,6 +19,9 @@
|
|||
# File: modules/backlog/lightboxes.coffee
|
||||
###
|
||||
|
||||
taiga = @.taiga
|
||||
bindOnce = @.taiga.bindOnce
|
||||
|
||||
CreateEditUserstoryDirective = ($repo, $model, $rs, $rootScope) ->
|
||||
|
||||
editDescription = ($scope, $el) ->
|
||||
|
@ -182,6 +185,11 @@ CreateSprint = ($repo, $rs, $rootscope) ->
|
|||
estimated_finish: null
|
||||
}
|
||||
|
||||
lastSprintNameDom = $el.find(".last-sprint-name")
|
||||
sprintName = $scope.sprints?[0].name
|
||||
if sprintName?
|
||||
lastSprintNameDom.text(" last sprint is <strong> #{sprintName} ;-) </strong>")
|
||||
|
||||
$el.on "click", ".close", (event) ->
|
||||
event.preventDefault()
|
||||
$el.addClass("hidden")
|
||||
|
|
|
@ -3,7 +3,7 @@ a.close(href="", title="close")
|
|||
form
|
||||
h2.title New Sprint
|
||||
fieldset
|
||||
label.last-sprint-name last sprint is <strong> {{sprintname}} ;-) </strong>
|
||||
label.last-sprint-name
|
||||
input(ng-model="sprint.name", type="text", placeholder="sprint name", name="name", data-required="true")
|
||||
fieldset.dates
|
||||
input.date-start(tg-date-selector, ng-model="sprint.estimated_start", type="text", placeholder="Estimated Start", data-required="true")
|
||||
|
|
Loading…
Reference in New Issue