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