To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / app / views / issues / _attributes.html.erb @ 912:5e80956cc792

History | View | Annotate | Download (2.75 KB)

1 0:513646585e45 Chris
<% fields_for :issue, @issue, :builder => TabularFormBuilder do |f| %>
2
3
<div class="splitcontentleft">
4
<% if @issue.new_record? || @allowed_statuses.any? %>
5
<p><%= f.select :status_id, (@allowed_statuses.collect {|p| [p.name, p.id]}), :required => true %></p>
6
<% else %>
7 909:cbb26bc654de Chris
<p><label><%= l(:field_status) %></label> <%= h(@issue.status.name) %></p>
8 0:513646585e45 Chris
<% end %>
9
10
<p><%= f.select :priority_id, (@priorities.collect {|p| [p.name, p.id]}), {:required => true}, :disabled => !@issue.leaf? %></p>
11 909:cbb26bc654de Chris
<p><%= f.select :assigned_to_id, principals_options_for_select(@issue.assignable_users, @issue.assigned_to), :include_blank => true %></p>
12 0:513646585e45 Chris
<% unless @project.issue_categories.empty? %>
13
<p><%= f.select :category_id, (@project.issue_categories.collect {|c| [c.name, c.id]}), :include_blank => true %>
14
<%= prompt_to_remote(image_tag('add.png', :style => 'vertical-align: middle;'),
15
                     l(:label_issue_category_new),
16 909:cbb26bc654de Chris
                     'issue_category[name]',
17
                     {:controller => 'issue_categories', :action => 'create', :project_id => @project},
18
                     :title => l(:label_issue_category_new),
19 0:513646585e45 Chris
                     :tabindex => 199) if authorize_for('issue_categories', 'new') %></p>
20
<% end %>
21
<% unless @issue.assignable_versions.empty? %>
22
<p><%= f.select :fixed_version_id, version_options_for_select(@issue.assignable_versions, @issue.fixed_version), :include_blank => true %>
23
<%= prompt_to_remote(image_tag('add.png', :style => 'vertical-align: middle;'),
24
                     l(:label_version_new),
25 909:cbb26bc654de Chris
                     'version[name]',
26 22:40f7cfd4df19 chris
                     {:controller => 'versions', :action => 'create', :project_id => @project},
27 909:cbb26bc654de Chris
                     :title => l(:label_version_new),
28 0:513646585e45 Chris
                     :tabindex => 200) if authorize_for('versions', 'new') %>
29
</p>
30
<% end %>
31
</div>
32
33
<div class="splitcontentright">
34 441:cbce1fd3b1b7 Chris
<% if User.current.allowed_to?(:manage_subtasks, @project) %>
35
<p id="parent_issue"><%= f.text_field :parent_issue_id, :size => 10 %></p>
36
<div id="parent_issue_candidates" class="autocomplete"></div>
37
<%= javascript_tag "observeParentIssueField('#{auto_complete_issues_path(:id => @issue, :project_id => @project) }')" %>
38
<% end %>
39 0:513646585e45 Chris
<p><%= f.text_field :start_date, :size => 10, :disabled => !@issue.leaf? %><%= calendar_for('issue_start_date') if @issue.leaf? %></p>
40
<p><%= f.text_field :due_date, :size => 10, :disabled => !@issue.leaf? %><%= calendar_for('issue_due_date') if @issue.leaf? %></p>
41
<p><%= f.text_field :estimated_hours, :size => 3, :disabled => !@issue.leaf? %> <%= l(:field_hours) %></p>
42
<% if @issue.leaf? && Issue.use_field_for_done_ratio? %>
43
<p><%= f.select :done_ratio, ((0..10).to_a.collect {|r| ["#{r*10} %", r*10] }) %></p>
44
<% end %>
45
</div>
46
47
<div style="clear:both;"> </div>
48 22:40f7cfd4df19 chris
<%= render :partial => 'issues/form_custom_fields' %>
49 0:513646585e45 Chris
50
<% end %>