##// END OF EJS Templates
Use the full path to the partials...
Eric Davis -
r3975:bde8ab84f274
parent child
Show More
@@ -1,45 +1,45
1 <% fields_for :issue, @issue, :builder => TabularFormBuilder do |f| %>
1 <% fields_for :issue, @issue, :builder => TabularFormBuilder do |f| %>
2
2
3 <div class="splitcontentleft">
3 <div class="splitcontentleft">
4 <% if @issue.new_record? || @allowed_statuses.any? %>
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>
5 <p><%= f.select :status_id, (@allowed_statuses.collect {|p| [p.name, p.id]}), :required => true %></p>
6 <% else %>
6 <% else %>
7 <p><label><%= l(:field_status) %></label> <%= @issue.status.name %></p>
7 <p><label><%= l(:field_status) %></label> <%= @issue.status.name %></p>
8 <% end %>
8 <% end %>
9
9
10 <p><%= f.select :priority_id, (@priorities.collect {|p| [p.name, p.id]}), {:required => true}, :disabled => !@issue.leaf? %></p>
10 <p><%= f.select :priority_id, (@priorities.collect {|p| [p.name, p.id]}), {:required => true}, :disabled => !@issue.leaf? %></p>
11 <p><%= f.select :assigned_to_id, (@issue.assignable_users.collect {|m| [m.name, m.id]}), :include_blank => true %></p>
11 <p><%= f.select :assigned_to_id, (@issue.assignable_users.collect {|m| [m.name, m.id]}), :include_blank => true %></p>
12 <% unless @project.issue_categories.empty? %>
12 <% unless @project.issue_categories.empty? %>
13 <p><%= f.select :category_id, (@project.issue_categories.collect {|c| [c.name, c.id]}), :include_blank => true %>
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;'),
14 <%= prompt_to_remote(image_tag('add.png', :style => 'vertical-align: middle;'),
15 l(:label_issue_category_new),
15 l(:label_issue_category_new),
16 'category[name]',
16 'category[name]',
17 {:controller => 'issue_categories', :action => 'new', :project_id => @project},
17 {:controller => 'issue_categories', :action => 'new', :project_id => @project},
18 :title => l(:label_issue_category_new),
18 :title => l(:label_issue_category_new),
19 :tabindex => 199) if authorize_for('issue_categories', 'new') %></p>
19 :tabindex => 199) if authorize_for('issue_categories', 'new') %></p>
20 <% end %>
20 <% end %>
21 <% unless @issue.assignable_versions.empty? %>
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 %>
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;'),
23 <%= prompt_to_remote(image_tag('add.png', :style => 'vertical-align: middle;'),
24 l(:label_version_new),
24 l(:label_version_new),
25 'version[name]',
25 'version[name]',
26 {:controller => 'versions', :action => 'new', :project_id => @project},
26 {:controller => 'versions', :action => 'new', :project_id => @project},
27 :title => l(:label_version_new),
27 :title => l(:label_version_new),
28 :tabindex => 200) if authorize_for('versions', 'new') %>
28 :tabindex => 200) if authorize_for('versions', 'new') %>
29 </p>
29 </p>
30 <% end %>
30 <% end %>
31 </div>
31 </div>
32
32
33 <div class="splitcontentright">
33 <div class="splitcontentright">
34 <p><%= f.text_field :start_date, :size => 10, :disabled => !@issue.leaf? %><%= calendar_for('issue_start_date') if @issue.leaf? %></p>
34 <p><%= f.text_field :start_date, :size => 10, :disabled => !@issue.leaf? %><%= calendar_for('issue_start_date') if @issue.leaf? %></p>
35 <p><%= f.text_field :due_date, :size => 10, :disabled => !@issue.leaf? %><%= calendar_for('issue_due_date') if @issue.leaf? %></p>
35 <p><%= f.text_field :due_date, :size => 10, :disabled => !@issue.leaf? %><%= calendar_for('issue_due_date') if @issue.leaf? %></p>
36 <p><%= f.text_field :estimated_hours, :size => 3, :disabled => !@issue.leaf? %> <%= l(:field_hours) %></p>
36 <p><%= f.text_field :estimated_hours, :size => 3, :disabled => !@issue.leaf? %> <%= l(:field_hours) %></p>
37 <% if @issue.leaf? && Issue.use_field_for_done_ratio? %>
37 <% if @issue.leaf? && Issue.use_field_for_done_ratio? %>
38 <p><%= f.select :done_ratio, ((0..10).to_a.collect {|r| ["#{r*10} %", r*10] }) %></p>
38 <p><%= f.select :done_ratio, ((0..10).to_a.collect {|r| ["#{r*10} %", r*10] }) %></p>
39 <% end %>
39 <% end %>
40 </div>
40 </div>
41
41
42 <div style="clear:both;"> </div>
42 <div style="clear:both;"> </div>
43 <%= render :partial => 'form_custom_fields' %>
43 <%= render :partial => 'issues/form_custom_fields' %>
44
44
45 <% end %>
45 <% end %>
@@ -1,40 +1,40
1 <div id="issue_descr_fields" <%= 'style="display:none"' unless @issue.new_record? || @issue.errors.any? %>>
1 <div id="issue_descr_fields" <%= 'style="display:none"' unless @issue.new_record? || @issue.errors.any? %>>
2 <p><%= f.select :tracker_id, @project.trackers.collect {|t| [t.name, t.id]}, :required => true %></p>
2 <p><%= f.select :tracker_id, @project.trackers.collect {|t| [t.name, t.id]}, :required => true %></p>
3 <%= observe_field :issue_tracker_id, :url => { :action => :new, :project_id => @project, :id => @issue },
3 <%= observe_field :issue_tracker_id, :url => { :action => :new, :project_id => @project, :id => @issue },
4 :update => :attributes,
4 :update => :attributes,
5 :with => "Form.serialize('issue-form')" %>
5 :with => "Form.serialize('issue-form')" %>
6
6
7 <p><%= f.text_field :subject, :size => 80, :required => true %></p>
7 <p><%= f.text_field :subject, :size => 80, :required => true %></p>
8
8
9 <% unless (@issue.new_record? && @issue.parent_issue_id.nil?) || !User.current.allowed_to?(:manage_subtasks, @project) %>
9 <% unless (@issue.new_record? && @issue.parent_issue_id.nil?) || !User.current.allowed_to?(:manage_subtasks, @project) %>
10 <p><%= f.text_field :parent_issue_id, :size => 10 %></p>
10 <p><%= f.text_field :parent_issue_id, :size => 10 %></p>
11 <div id="parent_issue_candidates" class="autocomplete"></div>
11 <div id="parent_issue_candidates" class="autocomplete"></div>
12 <%= javascript_tag "observeParentIssueField('#{auto_complete_issues_path(:id => @issue, :project_id => @project) }')" %>
12 <%= javascript_tag "observeParentIssueField('#{auto_complete_issues_path(:id => @issue, :project_id => @project) }')" %>
13 <% end %>
13 <% end %>
14
14
15 <p><%= f.text_area :description,
15 <p><%= f.text_area :description,
16 :cols => 60,
16 :cols => 60,
17 :rows => (@issue.description.blank? ? 10 : [[10, @issue.description.length / 50].max, 100].min),
17 :rows => (@issue.description.blank? ? 10 : [[10, @issue.description.length / 50].max, 100].min),
18 :accesskey => accesskey(:edit),
18 :accesskey => accesskey(:edit),
19 :class => 'wiki-edit' %></p>
19 :class => 'wiki-edit' %></p>
20 </div>
20 </div>
21
21
22 <div id="attributes" class="attributes">
22 <div id="attributes" class="attributes">
23 <%= render :partial => 'attributes' %>
23 <%= render :partial => 'issues/attributes' %>
24 </div>
24 </div>
25
25
26 <% if @issue.new_record? %>
26 <% if @issue.new_record? %>
27 <p><%= label_tag('attachments[1][file]', l(:label_attachment_plural))%><%= render :partial => 'attachments/form' %></p>
27 <p><%= label_tag('attachments[1][file]', l(:label_attachment_plural))%><%= render :partial => 'attachments/form' %></p>
28 <% end %>
28 <% end %>
29
29
30 <% if @issue.new_record? && User.current.allowed_to?(:add_issue_watchers, @project) -%>
30 <% if @issue.new_record? && User.current.allowed_to?(:add_issue_watchers, @project) -%>
31 <p><label><%= l(:label_issue_watchers) %></label>
31 <p><label><%= l(:label_issue_watchers) %></label>
32 <% @issue.project.users.sort.each do |user| -%>
32 <% @issue.project.users.sort.each do |user| -%>
33 <label class="floating"><%= check_box_tag 'issue[watcher_user_ids][]', user.id, @issue.watched_by?(user) %> <%=h user %></label>
33 <label class="floating"><%= check_box_tag 'issue[watcher_user_ids][]', user.id, @issue.watched_by?(user) %> <%=h user %></label>
34 <% end -%>
34 <% end -%>
35 </p>
35 </p>
36 <% end %>
36 <% end %>
37
37
38 <%= call_hook(:view_issues_form_details_bottom, { :issue => @issue, :form => f }) %>
38 <%= call_hook(:view_issues_form_details_bottom, { :issue => @issue, :form => f }) %>
39
39
40 <%= wikitoolbar_for 'issue_description' %>
40 <%= wikitoolbar_for 'issue_description' %>
General Comments 0
You need to be logged in to leave comments. Login now