@@ -1,40 +1,40 | |||
|
1 | 1 | <%= call_hook(:view_issues_form_details_top, { :issue => @issue, :form => f }) %> |
|
2 | 2 | |
|
3 | 3 | <div id="issue_descr_fields" <%= 'style="display:none"' unless @issue.new_record? || @issue.errors.any? %>> |
|
4 | 4 | <% if @issue.safe_attribute_names.include?('is_private') %> |
|
5 | 5 | <p style="float:right; margin-right:1em;"> |
|
6 | <label class="inline" for="issue_is_private"><%= f.check_box :is_private, :no_label => true %> <%= l(:field_is_private) %></label> | |
|
6 | <label class="inline" for="issue_is_private" id="issue_is_private_label"><%= f.check_box :is_private, :no_label => true %> <%= l(:field_is_private) %></label> | |
|
7 | 7 | </p> |
|
8 | 8 | <% end %> |
|
9 | 9 | <p><%= f.select :tracker_id, @project.trackers.collect {|t| [t.name, t.id]}, :required => true %></p> |
|
10 | 10 | <%= observe_field :issue_tracker_id, :url => { :action => :new, :project_id => @project, :id => @issue }, |
|
11 | 11 | :update => :attributes, |
|
12 | 12 | :with => "Form.serialize('issue-form')" %> |
|
13 | 13 | |
|
14 | 14 | <p><%= f.text_field :subject, :size => 80, :required => true %></p> |
|
15 | 15 | <p><%= f.text_area :description, |
|
16 | 16 | :cols => 60, |
|
17 | 17 | :rows => (@issue.description.blank? ? 10 : [[10, @issue.description.length / 50].max, 100].min), |
|
18 | 18 | :accesskey => accesskey(:edit), |
|
19 | 19 | :class => 'wiki-edit' %></p> |
|
20 | 20 | </div> |
|
21 | 21 | |
|
22 | 22 | <div id="attributes" class="attributes"> |
|
23 | 23 | <%= render :partial => 'issues/attributes' %> |
|
24 | 24 | </div> |
|
25 | 25 | |
|
26 | 26 | <% if @issue.new_record? %> |
|
27 | 27 | <p id="attachments_form"><%= label_tag('attachments[1][file]', l(:label_attachment_plural))%><%= render :partial => 'attachments/form' %></p> |
|
28 | 28 | <% end %> |
|
29 | 29 | |
|
30 | 30 | <% if @issue.new_record? && User.current.allowed_to?(:add_issue_watchers, @project) -%> |
|
31 | 31 | <p id="watchers_form"><label><%= l(:label_issue_watchers) %></label> |
|
32 | 32 | <% @issue.project.users.sort.each do |user| -%> |
|
33 | 33 | <label class="floating"><%= check_box_tag 'issue[watcher_user_ids][]', user.id, @issue.watched_by?(user) %> <%=h user %></label> |
|
34 | 34 | <% end -%> |
|
35 | 35 | </p> |
|
36 | 36 | <% end %> |
|
37 | 37 | |
|
38 | 38 | <%= call_hook(:view_issues_form_details_bottom, { :issue => @issue, :form => f }) %> |
|
39 | 39 | |
|
40 | 40 | <%= wikitoolbar_for 'issue_description' %> |
General Comments 0
You need to be logged in to leave comments.
Login now