2012-04-25 21:17:49 +04:00
|
|
|
<%= labelled_form_for @issue, :html => {:id => 'issue-form', :multipart => true} do |f| %>
|
2010-04-11 21:00:13 +04:00
|
|
|
<%= error_messages_for 'issue', 'time_entry' %>
|
2012-02-06 03:49:19 +04:00
|
|
|
<%= render :partial => 'conflict' if @conflict %>
|
2008-02-09 19:11:18 +03:00
|
|
|
<div class="box">
|
|
|
|
<% if @edit_allowed || !@allowed_statuses.empty? %>
|
2011-12-07 00:15:22 +04:00
|
|
|
<fieldset class="tabular"><legend><%= l(:label_change_properties) %></legend>
|
2012-02-06 03:49:19 +04:00
|
|
|
<div id="all_attributes">
|
2011-12-15 14:41:49 +04:00
|
|
|
<%= render :partial => 'form', :locals => {:f => f} %>
|
2012-02-06 03:49:19 +04:00
|
|
|
</div>
|
2008-02-09 19:11:18 +03:00
|
|
|
</fieldset>
|
|
|
|
<% end %>
|
2011-11-26 01:58:09 +04:00
|
|
|
<% if User.current.allowed_to?(:log_time, @project) %>
|
2008-02-29 22:46:58 +03:00
|
|
|
<fieldset class="tabular"><legend><%= l(:button_log_time) %></legend>
|
2012-04-25 21:17:49 +04:00
|
|
|
<%= labelled_fields_for :time_entry, @time_entry do |time_entry| %>
|
2008-02-21 20:50:33 +03:00
|
|
|
<div class="splitcontentleft">
|
|
|
|
<p><%= time_entry.text_field :hours, :size => 6, :label => :label_spent_time %> <%= l(:field_hours) %></p>
|
|
|
|
</div>
|
|
|
|
<div class="splitcontentright">
|
2008-06-29 16:01:20 +04:00
|
|
|
<p><%= time_entry.select :activity_id, activity_collection_for_select_options %></p>
|
2008-02-21 20:50:33 +03:00
|
|
|
</div>
|
2008-05-13 21:51:55 +04:00
|
|
|
<p><%= time_entry.text_field :comments, :size => 60 %></p>
|
2008-07-22 22:52:00 +04:00
|
|
|
<% @time_entry.custom_field_values.each do |value| %>
|
2011-09-15 13:28:33 +04:00
|
|
|
<p><%= custom_field_tag_with_label :time_entry, value %></p>
|
2008-07-22 22:52:00 +04:00
|
|
|
<% end %>
|
2008-02-21 20:50:33 +03:00
|
|
|
<% end %>
|
|
|
|
</fieldset>
|
|
|
|
<% end %>
|
2011-09-15 13:28:10 +04:00
|
|
|
|
2008-02-09 19:11:18 +03:00
|
|
|
<fieldset><legend><%= l(:field_notes) %></legend>
|
2012-10-04 01:36:19 +04:00
|
|
|
<%= f.text_area :notes, :cols => 60, :rows => 10, :class => 'wiki-edit', :no_label => true %>
|
|
|
|
<%= wikitoolbar_for 'issue_notes' %>
|
|
|
|
|
|
|
|
<% if @issue.safe_attribute? 'private_notes' %>
|
2013-11-27 17:31:24 +04:00
|
|
|
<%= f.check_box :private_notes, :no_label => true %> <label for="issue_private_notes"><%= l(:field_private_notes) %></label>
|
2012-10-04 01:36:19 +04:00
|
|
|
<% end %>
|
|
|
|
|
2008-12-04 02:18:12 +03:00
|
|
|
<%= call_hook(:view_issues_edit_notes_bottom, { :issue => @issue, :notes => @notes, :form => f }) %>
|
2012-10-04 01:36:19 +04:00
|
|
|
</fieldset>
|
2011-09-15 13:28:10 +04:00
|
|
|
|
2012-10-04 01:36:19 +04:00
|
|
|
<fieldset><legend><%= l(:label_attachment_plural) %></legend>
|
|
|
|
<p><%= render :partial => 'attachments/form', :locals => {:container => @issue} %></p>
|
2008-02-09 19:11:18 +03:00
|
|
|
</fieldset>
|
|
|
|
</div>
|
2011-09-15 13:28:10 +04:00
|
|
|
|
2008-02-09 19:11:18 +03:00
|
|
|
<%= f.hidden_field :lock_version %>
|
2012-02-04 21:36:15 +04:00
|
|
|
<%= hidden_field_tag 'last_journal_id', params[:last_journal_id] || @issue.last_journal_id %>
|
2008-02-09 19:11:18 +03:00
|
|
|
<%= submit_tag l(:button_submit) %>
|
2012-07-18 21:47:19 +04:00
|
|
|
<%= preview_link preview_edit_issue_path(:project_id => @project, :id => @issue), 'issue-form' %>
|
2008-02-09 19:11:18 +03:00
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<div id="preview" class="wiki"></div>
|