##// END OF EJS Templates
Added :view_issues_edit_notes_bottom hook...
Eric Davis -
r2085:1b4f0c38ce83
parent child
Show More
@@ -1,54 +1,55
1 1 <% labelled_tabular_form_for :issue, @issue,
2 2 :url => {:action => 'edit', :id => @issue},
3 3 :html => {:id => 'issue-form',
4 4 :class => nil,
5 5 :multipart => true} do |f| %>
6 6 <%= error_messages_for 'issue' %>
7 7 <%= error_messages_for 'time_entry' %>
8 8 <div class="box">
9 9 <% if @edit_allowed || !@allowed_statuses.empty? %>
10 10 <fieldset class="tabular"><legend><%= l(:label_change_properties) %>
11 11 <% if !@issue.new_record? && !@issue.errors.any? && @edit_allowed %>
12 12 <small>(<%= link_to l(:label_more), {}, :onclick => 'Effect.toggle("issue_descr_fields", "appear", {duration:0.3}); return false;' %>)</small>
13 13 <% end %>
14 14 </legend>
15 15 <%= render :partial => (@edit_allowed ? 'form' : 'form_update'), :locals => {:f => f} %>
16 16 </fieldset>
17 17 <% end %>
18 18 <% if authorize_for('timelog', 'edit') %>
19 19 <fieldset class="tabular"><legend><%= l(:button_log_time) %></legend>
20 20 <% fields_for :time_entry, @time_entry, { :builder => TabularFormBuilder, :lang => current_language} do |time_entry| %>
21 21 <div class="splitcontentleft">
22 22 <p><%= time_entry.text_field :hours, :size => 6, :label => :label_spent_time %> <%= l(:field_hours) %></p>
23 23 </div>
24 24 <div class="splitcontentright">
25 25 <p><%= time_entry.select :activity_id, activity_collection_for_select_options %></p>
26 26 </div>
27 27 <p><%= time_entry.text_field :comments, :size => 60 %></p>
28 28 <% @time_entry.custom_field_values.each do |value| %>
29 29 <p><%= custom_field_tag_with_label :time_entry, value %></p>
30 30 <% end %>
31 31 <% end %>
32 32 </fieldset>
33 33 <% end %>
34 34
35 35 <fieldset><legend><%= l(:field_notes) %></legend>
36 36 <%= text_area_tag 'notes', @notes, :cols => 60, :rows => 10, :class => 'wiki-edit' %>
37 37 <%= wikitoolbar_for 'notes' %>
38 <%= call_hook(:view_issues_edit_notes_bottom, { :issue => @issue, :notes => @notes, :form => f }) %>
38 39
39 40 <p><%=l(:label_attachment_plural)%><br /><%= render :partial => 'attachments/form' %></p>
40 41 </fieldset>
41 42 </div>
42 43
43 44 <%= f.hidden_field :lock_version %>
44 45 <%= submit_tag l(:button_submit) %>
45 46 <%= link_to_remote l(:label_preview),
46 47 { :url => { :controller => 'issues', :action => 'preview', :project_id => @project, :id => @issue },
47 48 :method => 'post',
48 49 :update => 'preview',
49 50 :with => 'Form.serialize("issue-form")',
50 51 :complete => "Element.scrollTo('preview')"
51 52 }, :accesskey => accesskey(:preview) %>
52 53 <% end %>
53 54
54 55 <div id="preview" class="wiki"></div>
General Comments 0
You need to be logged in to leave comments. Login now