##// END OF EJS Templates
Fixed: Adding time when Updating a ticket is gone (closes #701)....
Jean-Philippe Lang -
r1151:d461363d27b9
parent child
Show More
@@ -1,39 +1,52
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 :multipart => true} do |f| %>
4 :multipart => true} do |f| %>
5 <%= error_messages_for 'issue' %>
5 <%= error_messages_for 'issue' %>
6 <div class="box">
6 <div class="box">
7 <% if @edit_allowed || !@allowed_statuses.empty? %>
7 <% if @edit_allowed || !@allowed_statuses.empty? %>
8 <fieldset>
8 <fieldset>
9 <legend><%= l(:label_change_properties) %>
9 <legend><%= l(:label_change_properties) %>
10 <% if !@issue.new_record? && !@issue.errors.any? && @edit_allowed %>
10 <% if !@issue.new_record? && !@issue.errors.any? && @edit_allowed %>
11 <small>(<%= link_to l(:label_more), {}, :onclick => 'Effect.toggle("issue_descr_fields", "appear", {duration:0.3}); return false;' %>)</small>
11 <small>(<%= link_to l(:label_more), {}, :onclick => 'Effect.toggle("issue_descr_fields", "appear", {duration:0.3}); return false;' %>)</small>
12 <% end %>
12 <% end %>
13 </legend>
13 </legend>
14 <%= render :partial => (@edit_allowed ? 'form' : 'form_update'), :locals => {:f => f} %>
14 <%= render :partial => (@edit_allowed ? 'form' : 'form_update'), :locals => {:f => f} %>
15 </fieldset>
15 </fieldset>
16 <% end %>
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 <fieldset><legend><%= l(:field_notes) %></legend>
31 <fieldset><legend><%= l(:field_notes) %></legend>
19 <%= text_area_tag 'notes', @notes, :cols => 60, :rows => 10, :class => 'wiki-edit' %>
32 <%= text_area_tag 'notes', @notes, :cols => 60, :rows => 10, :class => 'wiki-edit' %>
20 <%= wikitoolbar_for 'notes' %>
33 <%= wikitoolbar_for 'notes' %>
21
34
22 <p id="attachments_p"><label><%=l(:label_attachment_new)%>
35 <p id="attachments_p"><label><%=l(:label_attachment_new)%>
23 <%= image_to_function 'add.png', 'addFileField();return false;' %></label>
36 <%= image_to_function 'add.png', 'addFileField();return false;' %></label>
24 <%= file_field_tag 'attachments[]', :size => 30 %> <em>(<%= l(:label_max_size) %>: <%= number_to_human_size(Setting.attachment_max_size.to_i.kilobytes) %>)</em></p>
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 </fieldset>
38 </fieldset>
26 </div>
39 </div>
27
40
28 <%= f.hidden_field :lock_version %>
41 <%= f.hidden_field :lock_version %>
29 <%= submit_tag l(:button_submit) %>
42 <%= submit_tag l(:button_submit) %>
30 <%= link_to_remote l(:label_preview),
43 <%= link_to_remote l(:label_preview),
31 { :url => { :controller => 'issues', :action => 'preview', :project_id => @project, :id => @issue },
44 { :url => { :controller => 'issues', :action => 'preview', :project_id => @project, :id => @issue },
32 :method => 'post',
45 :method => 'post',
33 :update => 'preview',
46 :update => 'preview',
34 :with => 'Form.serialize("issue-form")',
47 :with => 'Form.serialize("issue-form")',
35 :complete => "Element.scrollTo('preview')"
48 :complete => "Element.scrollTo('preview')"
36 }, :accesskey => accesskey(:preview) %>
49 }, :accesskey => accesskey(:preview) %>
37 <% end %>
50 <% end %>
38
51
39 <div id="preview" class="wiki"></div>
52 <div id="preview" class="wiki"></div>
General Comments 0
You need to be logged in to leave comments. Login now