|
|
|
@ -40,22 +40,22 @@ See doc/COPYRIGHT.rdoc for more details. |
|
|
|
|
|
|
|
|
|
<div class="splitcontentleft"> |
|
|
|
|
<p> |
|
|
|
|
<label for="work_package_type_id"><%= WorkPackage.human_attribute_name(:type) %></label> |
|
|
|
|
<%= select_tag('work_package[type_id]', "<option value=\"\">#{l(:label_no_change_option)}</option>".html_safe + options_from_collection_for_select(@types, :id, :name)) %> |
|
|
|
|
<label for="work_package_type_id"><%= WorkPackage.human_attribute_name(:type) %></label> |
|
|
|
|
<%= select_tag('work_package[type_id]', "<option value=\"\">#{l(:label_no_change_option)}</option>".html_safe + options_from_collection_for_select(@types, :id, :name)) %> |
|
|
|
|
</p> |
|
|
|
|
<% if @available_statuses.any? %> |
|
|
|
|
<p> |
|
|
|
|
<label for='status_id'><%= WorkPackage.human_attribute_name(:status) %></label> |
|
|
|
|
<%= select_tag('work_package[status_id]', "<option value=\"\">#{l(:label_no_change_option)}</option>".html_safe + options_from_collection_for_select(@available_statuses, :id, :name)) %> |
|
|
|
|
<label for='status_id'><%= WorkPackage.human_attribute_name(:status) %></label> |
|
|
|
|
<%= select_tag('work_package[status_id]', "<option value=\"\">#{l(:label_no_change_option)}</option>".html_safe + options_from_collection_for_select(@available_statuses, :id, :name)) %> |
|
|
|
|
</p> |
|
|
|
|
<% end %> |
|
|
|
|
<p> |
|
|
|
|
<label for='work_package_priority_id'><%= WorkPackage.human_attribute_name(:priority) %></label> |
|
|
|
|
<%= select_tag('work_package[priority_id]', "<option value=\"\">#{l(:label_no_change_option)}</option>".html_safe + options_from_collection_for_select(IssuePriority.all, :id, :name)) %> |
|
|
|
|
<label for='work_package_priority_id'><%= WorkPackage.human_attribute_name(:priority) %></label> |
|
|
|
|
<%= select_tag('work_package[priority_id]', "<option value=\"\">#{l(:label_no_change_option)}</option>".html_safe + options_from_collection_for_select(IssuePriority.all, :id, :name)) %> |
|
|
|
|
</p> |
|
|
|
|
<p> |
|
|
|
|
<label for='work_package_assigned_to_id'><%= WorkPackage.human_attribute_name(:assigned_to) %></label> |
|
|
|
|
<%= select_tag('work_package[assigned_to_id]', content_tag('option', l(:label_no_change_option), :value => '') + |
|
|
|
|
<label for='work_package_assigned_to_id'><%= WorkPackage.human_attribute_name(:assigned_to) %></label> |
|
|
|
|
<%= select_tag('work_package[assigned_to_id]', content_tag('option', l(:label_no_change_option), :value => '') + |
|
|
|
|
content_tag('option', l(:label_nobody), :value => 'none') + |
|
|
|
|
options_from_collection_for_select(@assignables, :id, :name)) %> |
|
|
|
|
</p> |
|
|
|
@ -67,8 +67,8 @@ See doc/COPYRIGHT.rdoc for more details. |
|
|
|
|
</p> |
|
|
|
|
<% if @project %> |
|
|
|
|
<p> |
|
|
|
|
<label for='category_id'><%= WorkPackage.human_attribute_name(:category) %></label> |
|
|
|
|
<%= select_tag('work_package[category_id]', content_tag('option', l(:label_no_change_option), :value => '') + |
|
|
|
|
<label for='category_id'><%= WorkPackage.human_attribute_name(:category) %></label> |
|
|
|
|
<%= select_tag('work_package[category_id]', content_tag('option', l(:label_no_change_option), :value => '') + |
|
|
|
|
content_tag('option', l(:label_none), :value => 'none') + |
|
|
|
|
options_from_collection_for_select(@project.categories, :id, :name)) %> |
|
|
|
|
</p> |
|
|
|
@ -76,8 +76,8 @@ See doc/COPYRIGHT.rdoc for more details. |
|
|
|
|
<% #TODO: allow editing versions when multiple projects %> |
|
|
|
|
<% if @project %> |
|
|
|
|
<p> |
|
|
|
|
<label for='work_package_fixed_version_id'><%= WorkPackage.human_attribute_name(:fixed_version) %></label> |
|
|
|
|
<%= select_tag('work_package[fixed_version_id]', content_tag('option', l(:label_no_change_option), :value => '') + |
|
|
|
|
<label for='work_package_fixed_version_id'><%= WorkPackage.human_attribute_name(:fixed_version) %></label> |
|
|
|
|
<%= select_tag('work_package[fixed_version_id]', content_tag('option', l(:label_no_change_option), :value => '') + |
|
|
|
|
content_tag('option', l(:label_none), :value => 'none') + |
|
|
|
|
version_options_for_select(@project.shared_versions.open.sort)) %> |
|
|
|
|
</p> |
|
|
|
@ -96,24 +96,24 @@ See doc/COPYRIGHT.rdoc for more details. |
|
|
|
|
<div class="splitcontentright"> |
|
|
|
|
<% if @project && User.current.allowed_to?(:manage_subtasks, @project) %> |
|
|
|
|
<p> |
|
|
|
|
<label for='work_package_parent_id'><%= WorkPackage.human_attribute_name(:parent) %></label> |
|
|
|
|
<%= text_field_tag 'work_package[parent_id]', '', :size => 10 %> |
|
|
|
|
<label for='work_package_parent_id'><%= WorkPackage.human_attribute_name(:parent) %></label> |
|
|
|
|
<%= text_field_tag 'work_package[parent_id]', '', :size => 10 %> |
|
|
|
|
</p> |
|
|
|
|
<div id="parent_work_package_candidates" class="autocomplete"></div> |
|
|
|
|
<%= javascript_tag "observeParentIssueField('#{work_packages_auto_complete_path(project_id: @project.id)}')" %> |
|
|
|
|
<% end %> |
|
|
|
|
<p> |
|
|
|
|
<label for='work_package_start_date'><%= WorkPackage.human_attribute_name(:start_date) %></label> |
|
|
|
|
<%= text_field_tag 'work_package[start_date]', '', :size => 10 %><%= calendar_for('work_package_start_date') %> |
|
|
|
|
<label for='work_package_start_date'><%= WorkPackage.human_attribute_name(:start_date) %></label> |
|
|
|
|
<%= text_field_tag 'work_package[start_date]', '', :size => 10 %><%= calendar_for('work_package_start_date') %> |
|
|
|
|
</p> |
|
|
|
|
<p> |
|
|
|
|
<label for='work_package_due_date'><%= WorkPackage.human_attribute_name(:due_date) %></label> |
|
|
|
|
<%= text_field_tag 'work_package[due_date]', '', :size => 10 %><%= calendar_for('work_package_due_date') %> |
|
|
|
|
<label for='work_package_due_date'><%= WorkPackage.human_attribute_name(:due_date) %></label> |
|
|
|
|
<%= text_field_tag 'work_package[due_date]', '', :size => 10 %><%= calendar_for('work_package_due_date') %> |
|
|
|
|
</p> |
|
|
|
|
<% if WorkPackage.use_field_for_done_ratio? %> |
|
|
|
|
<p> |
|
|
|
|
<label for='work_package_done_ratio'><%= WorkPackage.human_attribute_name(:done_ratio) %></label> |
|
|
|
|
<%= select_tag 'work_package[done_ratio]', options_for_select([[l(:label_no_change_option), '']] + (0..10).to_a.collect {|r| ["#{r*10} %", r*10] }) %> |
|
|
|
|
<label for='work_package_done_ratio'><%= WorkPackage.human_attribute_name(:done_ratio) %></label> |
|
|
|
|
<%= select_tag 'work_package[done_ratio]', options_for_select([[l(:label_no_change_option), '']] + (0..10).to_a.collect {|r| ["#{r*10} %", r*10] }) %> |
|
|
|
|
</p> |
|
|
|
|
<% end %> |
|
|
|
|
</div> |
|
|
|
|