create issue with type

stable
Juanfran 2014-08-08 12:21:57 +02:00
parent f3e4bcbba2
commit 599f95535c
2 changed files with 3 additions and 3 deletions

View File

@ -74,6 +74,7 @@ class IssuesController extends mixOf(taiga.Controller, taiga.PageMixin, taiga.Fi
@scope.severityList = _.sortBy(project.severities, "order")
@scope.priorityById = groupBy(project.priorities, (x) -> x.id)
@scope.priorityList = _.sortBy(project.priorities, "order")
@scope.issueTypes = _.sortBy(project.issue_types, "order")
@scope.membersById = groupBy(project.memberships, (x) -> x.user)
return project

View File

@ -6,9 +6,8 @@ form
input(type="text", ng-model="issue.subject", placeholder="Issue description",
data-required="true", data-maxlength="500")
div.fieldset-row
// fieldset
// select.type
// option(value="Type") Type
fieldset
select.type(ng-model="issue.type", ng-options="t.id as t.name for t in issueTypes")
fieldset
select.priority(ng-model="issue.priority", ng-options="p.id as p.name for p in priorityList")
fieldset