Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

_edit.html.erb 4.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <%= labelled_form_for @issue, :html => {:id => 'issue-form', :multipart => true} do |f| %>
  2. <%= error_messages_for 'issue', 'time_entry' %>
  3. <%= render :partial => 'conflict' if @conflict %>
  4. <div class="box">
  5. <% if @issue.attributes_editable? %>
  6. <fieldset class="tabular"><legend><%= l(:label_change_properties) %></legend>
  7. <div id="all_attributes">
  8. <%= render :partial => 'form', :locals => {:f => f} %>
  9. </div>
  10. </fieldset>
  11. <% end %>
  12. <% if User.current.allowed_to?(:log_time, @issue.project) %>
  13. <fieldset class="tabular" id="log_time"><legend><%= l(:button_log_time) %></legend>
  14. <%= labelled_fields_for :time_entry, @time_entry do |time_entry| %>
  15. <div class="splitcontent">
  16. <div class="splitcontentleft">
  17. <p><%= time_entry.hours_field :hours, :size => 6, :label => :label_spent_time %> <%= l(:field_hours) %></p>
  18. </div>
  19. <div class="splitcontentright">
  20. <p><%= time_entry.select :activity_id, activity_collection_for_select_options %></p>
  21. </div>
  22. </div>
  23. <p><%= time_entry.text_field :comments, :size => 60 %></p>
  24. <% @time_entry.editable_custom_field_values.each do |value| %>
  25. <p><%= custom_field_tag_with_label :time_entry, value %></p>
  26. <% end %>
  27. <% end %>
  28. </fieldset>
  29. <% end %>
  30. <% if @issue.notes_addable? %>
  31. <fieldset id="add_notes"><legend><%= l(:field_notes) %></legend>
  32. <%= f.text_area :notes, :cols => 60, :rows => 10, :class => 'wiki-edit',
  33. :data => {
  34. :auto_complete => true
  35. },
  36. :no_label => true %>
  37. <%= wikitoolbar_for 'issue_notes', preview_issue_path(:project_id => @project, :issue_id => @issue) %>
  38. <% if @issue.safe_attribute? 'private_notes' %>
  39. <%= f.check_box :private_notes, :no_label => true %> <label for="issue_private_notes"><%= l(:field_private_notes) %></label>
  40. <% end %>
  41. <%= call_hook(:view_issues_edit_notes_bottom, { :issue => @issue, :notes => @notes, :form => f }) %>
  42. </fieldset>
  43. <% end %>
  44. <% if !@issue.attributes_editable? && User.current.allowed_to?(:add_issue_watchers, @issue.project) %>
  45. <%= update_data_sources_for_auto_complete({users: watchers_autocomplete_for_mention_path(project_id: @issue.project, q: '', object_type: 'issue',
  46. object_id: @issue.id)}) %>
  47. <% end %>
  48. <% if @issue.attachments_addable? %>
  49. <fieldset id="add_attachments"><legend><%= l(:label_attachment_plural) %></legend>
  50. <% if @issue.attachments.any? && @issue.safe_attribute?('deleted_attachment_ids') %>
  51. <div class="contextual"><%= link_to l(:label_edit_attachments), '#', :onclick => "$('#existing-attachments').toggle(); return false;" %></div>
  52. <div id="existing-attachments" style="<%= @issue.deleted_attachment_ids.blank? ? 'display:none;' : '' %>">
  53. <% @issue.attachments.each do |attachment| %>
  54. <span class="existing-attachment">
  55. <%= text_field_tag '', attachment.filename, :class => "icon icon-attachment filename", :disabled => true %>
  56. <label>
  57. <%= check_box_tag 'issue[deleted_attachment_ids][]',
  58. attachment.id,
  59. @issue.deleted_attachment_ids.include?(attachment.id),
  60. :id => nil, :class => "deleted_attachment" %> <%= l(:button_delete) %>
  61. </label>
  62. </span>
  63. <% end %>
  64. <hr />
  65. </div>
  66. <% end %>
  67. <div id="new-attachments" style="display:inline-block;">
  68. <%= render :partial => 'attachments/form', :locals => {:container => @issue} %>
  69. </div>
  70. </fieldset>
  71. <% end %>
  72. </div>
  73. <%= f.hidden_field :lock_version %>
  74. <%= hidden_field_tag 'last_journal_id', params[:last_journal_id] || @issue.last_journal_id %>
  75. <%= submit_tag l(:button_submit) %>
  76. <%= link_to(
  77. l(:button_cancel), issue_path(id: @issue.id),
  78. :onclick => params[:action] == 'show' ? "$('#update').hide(); return false;" : ''
  79. ) %>
  80. <%= hidden_field_tag 'prev_issue_id', @prev_issue_id if @prev_issue_id %>
  81. <%= hidden_field_tag 'next_issue_id', @next_issue_id if @next_issue_id %>
  82. <%= hidden_field_tag 'issue_position', @issue_position if @issue_position %>
  83. <%= hidden_field_tag 'issue_count', @issue_count if @issue_count %>
  84. <% end %>