annotate .svn/pristine/0b/0bf8f19f5486edff5718369b36db7c358c6ec343.svn-base @ 1327:287f201c2802 redmine-2.2-integration

Add italic
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Wed, 19 Jun 2013 20:56:22 +0100
parents 038ba2d95de8
children
rev   line source
Chris@1296 1 <%= labelled_fields_for :issue, @issue do |f| %>
Chris@1296 2
Chris@1296 3 <div class="splitcontent">
Chris@1296 4 <div class="splitcontentleft">
Chris@1296 5 <% if @issue.safe_attribute?('status_id') && @allowed_statuses.present? %>
Chris@1296 6 <p><%= f.select :status_id, (@allowed_statuses.collect {|p| [p.name, p.id]}), {:required => true},
Chris@1296 7 :onchange => "updateIssueFrom('#{escape_javascript project_issue_form_path(@project, :id => @issue, :format => 'js')}')" %></p>
Chris@1296 8
Chris@1296 9 <% else %>
Chris@1296 10 <p><label><%= l(:field_status) %></label> <%= h(@issue.status.name) %></p>
Chris@1296 11 <% end %>
Chris@1296 12
Chris@1296 13 <% if @issue.safe_attribute? 'priority_id' %>
Chris@1296 14 <p><%= f.select :priority_id, (@priorities.collect {|p| [p.name, p.id]}), {:required => true}, :disabled => !@issue.leaf? %></p>
Chris@1296 15 <% end %>
Chris@1296 16
Chris@1296 17 <% if @issue.safe_attribute? 'assigned_to_id' %>
Chris@1296 18 <p><%= f.select :assigned_to_id, principals_options_for_select(@issue.assignable_users, @issue.assigned_to), :include_blank => true, :required => @issue.required_attribute?('assigned_to_id') %></p>
Chris@1296 19 <% end %>
Chris@1296 20
Chris@1296 21 <% if @issue.safe_attribute?('category_id') && @issue.project.issue_categories.any? %>
Chris@1296 22 <p><%= f.select :category_id, (@issue.project.issue_categories.collect {|c| [c.name, c.id]}), :include_blank => true, :required => @issue.required_attribute?('category_id') %>
Chris@1296 23 <%= link_to(image_tag('add.png', :style => 'vertical-align: middle;'),
Chris@1296 24 new_project_issue_category_path(@issue.project),
Chris@1296 25 :remote => true,
Chris@1296 26 :method => 'get',
Chris@1296 27 :title => l(:label_issue_category_new),
Chris@1296 28 :tabindex => 200) if User.current.allowed_to?(:manage_categories, @issue.project) %></p>
Chris@1296 29 <% end %>
Chris@1296 30
Chris@1296 31 <% if @issue.safe_attribute?('fixed_version_id') && @issue.assignable_versions.any? %>
Chris@1296 32 <p><%= f.select :fixed_version_id, version_options_for_select(@issue.assignable_versions, @issue.fixed_version), :include_blank => true, :required => @issue.required_attribute?('fixed_version_id') %>
Chris@1296 33 <%= link_to(image_tag('add.png', :style => 'vertical-align: middle;'),
Chris@1296 34 new_project_version_path(@issue.project),
Chris@1296 35 :remote => true,
Chris@1296 36 :method => 'get',
Chris@1296 37 :title => l(:label_version_new),
Chris@1296 38 :tabindex => 200) if User.current.allowed_to?(:manage_versions, @issue.project) %>
Chris@1296 39 </p>
Chris@1296 40 <% end %>
Chris@1296 41 </div>
Chris@1296 42
Chris@1296 43 <div class="splitcontentright">
Chris@1296 44 <% if @issue.safe_attribute? 'parent_issue_id' %>
Chris@1296 45 <p id="parent_issue"><%= f.text_field :parent_issue_id, :size => 10, :required => @issue.required_attribute?('parent_issue_id') %></p>
Chris@1296 46 <%= javascript_tag "observeAutocompleteField('issue_parent_issue_id', '#{escape_javascript auto_complete_issues_path}')" %>
Chris@1296 47 <% end %>
Chris@1296 48
Chris@1296 49 <% if @issue.safe_attribute? 'start_date' %>
Chris@1296 50 <p><%= f.text_field :start_date, :size => 10, :disabled => !@issue.leaf?, :required => @issue.required_attribute?('start_date') %><%= calendar_for('issue_start_date') if @issue.leaf? %></p>
Chris@1296 51 <% end %>
Chris@1296 52
Chris@1296 53 <% if @issue.safe_attribute? 'due_date' %>
Chris@1296 54 <p><%= f.text_field :due_date, :size => 10, :disabled => !@issue.leaf?, :required => @issue.required_attribute?('due_date') %><%= calendar_for('issue_due_date') if @issue.leaf? %></p>
Chris@1296 55 <% end %>
Chris@1296 56
Chris@1296 57 <% if @issue.safe_attribute? 'estimated_hours' %>
Chris@1296 58 <p><%= f.text_field :estimated_hours, :size => 3, :disabled => !@issue.leaf?, :required => @issue.required_attribute?('estimated_hours') %> <%= l(:field_hours) %></p>
Chris@1296 59 <% end %>
Chris@1296 60
Chris@1296 61 <% if @issue.safe_attribute?('done_ratio') && @issue.leaf? && Issue.use_field_for_done_ratio? %>
Chris@1296 62 <p><%= f.select :done_ratio, ((0..10).to_a.collect {|r| ["#{r*10} %", r*10] }), :required => @issue.required_attribute?('done_ratio') %></p>
Chris@1296 63 <% end %>
Chris@1296 64 </div>
Chris@1296 65 </div>
Chris@1296 66
Chris@1296 67 <% if @issue.safe_attribute? 'custom_field_values' %>
Chris@1296 68 <%= render :partial => 'issues/form_custom_fields' %>
Chris@1296 69 <% end %>
Chris@1296 70
Chris@1296 71 <% end %>
Chris@1296 72
Chris@1296 73 <% include_calendar_headers_tags %>