summaryrefslogtreecommitdiff
path: root/app/views/projects/issues/_form.html.haml
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-12-19 19:54:57 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-12-19 19:54:57 +0200
commit3958330edc5aa6044ebe90382fd901834ecfa821 (patch)
treef2d20653c9eeb9210266b6ad967747e9e30e4f79 /app/views/projects/issues/_form.html.haml
parent5c68f4f4e51b88d73b8fce0defc51f977280d967 (diff)
downloadgitlab-ce-3958330edc5aa6044ebe90382fd901834ecfa821.tar.gz
Added milestone_options and assigne_options helpers
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/views/projects/issues/_form.html.haml')
-rw-r--r--app/views/projects/issues/_form.html.haml4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/projects/issues/_form.html.haml b/app/views/projects/issues/_form.html.haml
index d56009fac6e..78f852e4e30 100644
--- a/app/views/projects/issues/_form.html.haml
+++ b/app/views/projects/issues/_form.html.haml
@@ -21,7 +21,7 @@
Assign to
.controls
.pull-left
- = f.select(:assignee_id, @project.team.members.sort_by(&:name).map {|p| [ p.name, p.id ] }, { include_blank: "Select a user" }, {class: 'chosen'})
+ = f.select(:assignee_id, assignee_options(@issue), { include_blank: "Select a user" }, {class: 'chosen'})
.pull-right
&nbsp;
= link_to 'Assign to me', '#', class: 'btn btn-small assign-to-me-link'
@@ -29,7 +29,7 @@
= f.label :milestone_id do
%i.icon-time
Milestone
- .controls= f.select(:milestone_id, @project.milestones.active.collect {|p| [ p.title, p.id ] }, { include_blank: "Select milestone" }, {class: 'chosen'})
+ .controls= f.select(:milestone_id, milestone_options(@issue), { include_blank: "Select milestone" }, {class: 'chosen'})
.ui-box-bottom
.control-group