<% if @available_statuses.any? %> <%= l(:field_status) %>: <%= select_tag('status_id', "#{l(:label_no_change_option)}" + options_from_collection_for_select(@available_statuses, :id, :name)) %> <% end %> <%= l(:field_priority) %>: <%= select_tag('priority_id', "#{l(:label_no_change_option)}" + options_from_collection_for_select(Enumeration.get_values('IPRI'), :id, :name)) %> <%= l(:field_category) %>: <%= select_tag('category_id', "#{l(:label_no_change_option)}" + options_from_collection_for_select(@project.issue_categories, :id, :name)) %>
<%= l(:field_assigned_to) %>: <%= select_tag('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(@project.assignable_users, :id, :name)) %> <%= l(:field_fixed_version) %>: <%= select_tag('fixed_version_id', "#{l(:label_no_change_option)}" + options_from_collection_for_select(@project.versions, :id, :name)) %>
<%= l(:field_start_date) %>: <%= text_field_tag 'start_date', '', :size => 10 %><%= calendar_for('start_date') %> <%= l(:field_due_date) %>: <%= text_field_tag 'due_date', '', :size => 10 %><%= calendar_for('due_date') %> <%= l(:field_done_ratio) %>: <%= select_tag 'done_ratio', options_for_select([[l(:label_no_change_option), '']] + (0..10).to_a.collect {|r| ["#{r*10} %", r*10] }) %>
<%= submit_tag l(:button_submit) %> <% end %> <% content_for :header_tags do %> <%= javascript_include_tag 'calendar/calendar' %> <%= javascript_include_tag "calendar/lang/calendar-#{current_language}.js" %> <%= javascript_include_tag 'calendar/calendar-setup' %> <%= stylesheet_link_tag 'calendar' %> <% end %>