|
9 | 9 | </div>
|
10 | 10 | <% end %>
|
11 | 11 |
|
12 |
| -<%= labelled_form_for @issue, :html => {:id => 'issue-notes-form', :multipart => true} do |f| %> |
13 |
| - <%= render :partial => 'conflict' if @conflict %> |
14 |
| - <div class="box"> |
15 |
| - <% if @issue.notes_addable? %> |
16 |
| - <fieldset><legend><%= l(:field_notes) %></legend> |
17 |
| - <%= f.text_area :notes, :cols => 60, :rows => 4, :class => 'wiki-edit', |
18 |
| - :data => { |
19 |
| - :auto_complete => true |
20 |
| - }, |
21 |
| - :no_label => true, :id => 'only-issue-notes' %> |
22 |
| - <%= wikitoolbar_for 'only-issue-notes', preview_issue_path(:project_id => @project, :issue_id => @issue) %> |
| 12 | +<% if @issue.notes_addable? %> |
| 13 | + <%= labelled_form_for @issue, :html => {:id => 'issue-notes-form', :multipart => true} do |f| %> |
| 14 | + <%= render :partial => 'conflict' if @conflict %> |
| 15 | + <div class="box"> |
| 16 | + <fieldset><legend><%= l(:field_notes) %></legend> |
| 17 | + <%= f.text_area :notes, :cols => 60, :rows => 4, :class => 'wiki-edit', |
| 18 | + :data => { |
| 19 | + :auto_complete => true |
| 20 | + }, |
| 21 | + :no_label => true, :id => 'only-issue-notes' %> |
| 22 | + <%= wikitoolbar_for 'only-issue-notes', preview_issue_path(:project_id => @project, :issue_id => @issue) %> |
23 | 23 |
|
24 |
| - <% if @issue.safe_attribute? 'private_notes' %> |
25 |
| - <%= f.check_box :private_notes, :no_label => true %> <label for="issue_private_notes"><%= l(:field_private_notes) %></label> |
26 |
| - <% end %> |
| 24 | + <% if @issue.safe_attribute? 'private_notes' %> |
| 25 | + <%= f.check_box :private_notes, :no_label => true %> <label for="issue_private_notes"><%= l(:field_private_notes) %></label> |
| 26 | + <% end %> |
27 | 27 |
|
28 |
| - <%= call_hook(:view_issues_edit_notes_bottom, { :issue => @issue, :notes => @notes, :form => f }) %> |
29 |
| - </fieldset> |
| 28 | + <%= call_hook(:view_issues_edit_notes_bottom, { :issue => @issue, :notes => @notes, :form => f }) %> |
| 29 | + </fieldset> |
| 30 | + </div> |
30 | 31 |
|
| 32 | + <%= submit_tag l(:button_submit) %> |
31 | 33 | <% end %>
|
32 |
| - </div> |
33 |
| - |
34 |
| - <%= submit_tag l(:button_submit) %> |
35 | 34 | <% end %>
|
0 commit comments