@@ -20,18 +20,18 | |||||
20 | </p> |
|
20 | </p> | |
21 | <% end %> |
|
21 | <% end %> | |
22 | <p> |
|
22 | <p> | |
23 |
<label><%= l(:field_priority) %></label> |
|
23 | <label><%= l(:field_priority) %></label> | |
24 | <%= select_tag('issue[priority_id]', "<option value=\"\">#{l(:label_no_change_option)}</option>" + options_from_collection_for_select(IssuePriority.active, :id, :name)) %> |
|
24 | <%= select_tag('issue[priority_id]', "<option value=\"\">#{l(:label_no_change_option)}</option>" + options_from_collection_for_select(IssuePriority.active, :id, :name)) %> | |
25 | </p> |
|
25 | </p> | |
26 | <p> |
|
26 | <p> | |
27 |
<label><%= l(:field_assigned_to) %></label> |
|
27 | <label><%= l(:field_assigned_to) %></label> | |
28 | <%= select_tag('issue[assigned_to_id]', content_tag('option', l(:label_no_change_option), :value => '') + |
|
28 | <%= select_tag('issue[assigned_to_id]', content_tag('option', l(:label_no_change_option), :value => '') + | |
29 | content_tag('option', l(:label_nobody), :value => 'none') + |
|
29 | content_tag('option', l(:label_nobody), :value => 'none') + | |
30 | principals_options_for_select(@assignables)) %> |
|
30 | principals_options_for_select(@assignables)) %> | |
31 | </p> |
|
31 | </p> | |
32 | <% if @project %> |
|
32 | <% if @project %> | |
33 | <p> |
|
33 | <p> | |
34 |
<label><%= l(:field_category) %></label> |
|
34 | <label><%= l(:field_category) %></label> | |
35 | <%= select_tag('issue[category_id]', content_tag('option', l(:label_no_change_option), :value => '') + |
|
35 | <%= select_tag('issue[category_id]', content_tag('option', l(:label_no_change_option), :value => '') + | |
36 | content_tag('option', l(:label_none), :value => 'none') + |
|
36 | content_tag('option', l(:label_none), :value => 'none') + | |
37 | options_from_collection_for_select(@project.issue_categories, :id, :name)) %> |
|
37 | options_from_collection_for_select(@project.issue_categories, :id, :name)) %> | |
@@ -40,7 +40,7 | |||||
40 | <% #TODO: allow editing versions when multiple projects %> |
|
40 | <% #TODO: allow editing versions when multiple projects %> | |
41 | <% if @project %> |
|
41 | <% if @project %> | |
42 | <p> |
|
42 | <p> | |
43 |
<label><%= l(:field_fixed_version) %></label> |
|
43 | <label><%= l(:field_fixed_version) %></label> | |
44 | <%= select_tag('issue[fixed_version_id]', content_tag('option', l(:label_no_change_option), :value => '') + |
|
44 | <%= select_tag('issue[fixed_version_id]', content_tag('option', l(:label_no_change_option), :value => '') + | |
45 | content_tag('option', l(:label_none), :value => 'none') + |
|
45 | content_tag('option', l(:label_none), :value => 'none') + | |
46 | version_options_for_select(@project.shared_versions.open.sort)) %> |
|
46 | version_options_for_select(@project.shared_versions.open.sort)) %> | |
@@ -68,12 +68,12 | |||||
68 | <%= text_field_tag 'issue[start_date]', '', :size => 10 %><%= calendar_for('issue_start_date') %> |
|
68 | <%= text_field_tag 'issue[start_date]', '', :size => 10 %><%= calendar_for('issue_start_date') %> | |
69 | </p> |
|
69 | </p> | |
70 | <p> |
|
70 | <p> | |
71 |
<label><%= l(:field_due_date) %></label> |
|
71 | <label><%= l(:field_due_date) %></label> | |
72 | <%= text_field_tag 'issue[due_date]', '', :size => 10 %><%= calendar_for('issue_due_date') %> |
|
72 | <%= text_field_tag 'issue[due_date]', '', :size => 10 %><%= calendar_for('issue_due_date') %> | |
73 | </p> |
|
73 | </p> | |
74 | <% if Issue.use_field_for_done_ratio? %> |
|
74 | <% if Issue.use_field_for_done_ratio? %> | |
75 | <p> |
|
75 | <p> | |
76 |
<label><%= l(:field_done_ratio) %></label> |
|
76 | <label><%= l(:field_done_ratio) %></label> | |
77 | <%= select_tag 'issue[done_ratio]', options_for_select([[l(:label_no_change_option), '']] + (0..10).to_a.collect {|r| ["#{r*10} %", r*10] }) %> |
|
77 | <%= select_tag 'issue[done_ratio]', options_for_select([[l(:label_no_change_option), '']] + (0..10).to_a.collect {|r| ["#{r*10} %", r*10] }) %> | |
78 | </p> |
|
78 | </p> | |
79 | <% end %> |
|
79 | <% end %> |
General Comments 0
You need to be logged in to leave comments.
Login now