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