_edit.html.erb
52 lines
| 2.4 KiB
| text/plain
|
TextLexer
|
r9346 | <%= labelled_form_for @issue, :html => {:id => 'issue-form', :multipart => true} do |f| %> | ||
|
r3551 | <%= error_messages_for 'issue', 'time_entry' %> | ||
|
r8670 | <%= render :partial => 'conflict' if @conflict %> | ||
|
r1115 | <div class="box"> | ||
|
r13614 | <% if @issue.attributes_editable? %> | ||
|
r7982 | <fieldset class="tabular"><legend><%= l(:label_change_properties) %></legend> | ||
|
r8670 | <div id="all_attributes"> | ||
|
r8107 | <%= render :partial => 'form', :locals => {:f => f} %> | ||
|
r8670 | </div> | ||
|
r1115 | </fieldset> | ||
<% end %> | ||||
|
r7804 | <% if User.current.allowed_to?(:log_time, @project) %> | ||
|
r1166 | <fieldset class="tabular"><legend><%= l(:button_log_time) %></legend> | ||
|
r9346 | <%= labelled_fields_for :time_entry, @time_entry do |time_entry| %> | ||
|
r1151 | <div class="splitcontentleft"> | ||
<p><%= time_entry.text_field :hours, :size => 6, :label => :label_spent_time %> <%= l(:field_hours) %></p> | ||||
</div> | ||||
<div class="splitcontentright"> | ||||
|
r1588 | <p><%= time_entry.select :activity_id, activity_collection_for_select_options %></p> | ||
|
r1151 | </div> | ||
|
r1412 | <p><%= time_entry.text_field :comments, :size => 60 %></p> | ||
|
r1672 | <% @time_entry.custom_field_values.each do |value| %> | ||
|
r7125 | <p><%= custom_field_tag_with_label :time_entry, value %></p> | ||
|
r1672 | <% end %> | ||
|
r1151 | <% end %> | ||
</fieldset> | ||||
<% end %> | ||||
|
r7124 | |||
|
r1115 | <fieldset><legend><%= l(:field_notes) %></legend> | ||
|
r10336 | <%= f.text_area :notes, :cols => 60, :rows => 10, :class => 'wiki-edit', :no_label => true %> | ||
<%= wikitoolbar_for 'issue_notes' %> | ||||
<% if @issue.safe_attribute? 'private_notes' %> | ||||
|
r12096 | <%= f.check_box :private_notes, :no_label => true %> <label for="issue_private_notes"><%= l(:field_private_notes) %></label> | ||
|
r10336 | <% end %> | ||
|
r2085 | <%= call_hook(:view_issues_edit_notes_bottom, { :issue => @issue, :notes => @notes, :form => f }) %> | ||
|
r10336 | </fieldset> | ||
|
r7124 | |||
|
r10336 | <fieldset><legend><%= l(:label_attachment_plural) %></legend> | ||
<p><%= render :partial => 'attachments/form', :locals => {:container => @issue} %></p> | ||||
|
r1115 | </fieldset> | ||
</div> | ||||
|
r7124 | |||
|
r1115 | <%= f.hidden_field :lock_version %> | ||
|
r8654 | <%= hidden_field_tag 'last_journal_id', params[:last_journal_id] || @issue.last_journal_id %> | ||
|
r1115 | <%= submit_tag l(:button_submit) %> | ||
|
r9848 | <%= preview_link preview_edit_issue_path(:project_id => @project, :id => @issue), 'issue-form' %> | ||
|
r13095 | | <%= link_to l(:button_cancel), {}, :onclick => "$('#update').hide(); return false;" %> | ||
|
r1115 | <% end %> | ||
<div id="preview" class="wiki"></div> | ||||