_edit.html.erb
50 lines
| 2.3 KiB
| text/plain
|
TextLexer
|
r7981 | <% 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"> | ||
<% if @edit_allowed || !@allowed_statuses.empty? %> | ||||
|
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> | ||
|
r8022 | <% 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> | ||
<%= text_area_tag 'notes', @notes, :cols => 60, :rows => 10, :class => 'wiki-edit' %> | ||||
<%= wikitoolbar_for 'notes' %> | ||||
|
r2085 | <%= call_hook(:view_issues_edit_notes_bottom, { :issue => @issue, :notes => @notes, :form => f }) %> | ||
|
r7124 | |||
|
r8771 | <p><%=l(:label_attachment_plural)%><br /><%= 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) %> | ||
|
r7124 | <%= link_to_remote l(:label_preview), | ||
|
r8766 | { :url => preview_edit_issue_path(:project_id => @project, :id => @issue), | ||
|
r1115 | :method => 'post', | ||
:update => 'preview', | ||||
:with => 'Form.serialize("issue-form")', | ||||
|
r1122 | :complete => "Element.scrollTo('preview')" | ||
|
r1115 | }, :accesskey => accesskey(:preview) %> | ||
<% end %> | ||||
<div id="preview" class="wiki"></div> | ||||