Patch #38732 » adjusting_elements_position_on_issue_edit_view.patch
| app/views/issues/_attributes.html.erb | ||
|---|---|---|
|
</div>
|
||
|
|
||
|
<div class="splitcontentright">
|
||
|
<% if @issue.safe_attribute? 'parent_issue_id' %>
|
||
|
<p id="parent_issue"><%= f.text_field :parent_issue_id, :size => 10,
|
||
|
:required => @issue.required_attribute?('parent_issue_id'),
|
||
|
:onchange => "updateIssueFrom('#{escape_javascript update_issue_form_path(@project, @issue)}', this)" %></p>
|
||
|
<%= javascript_tag "observeAutocompleteField('issue_parent_issue_id', '#{escape_javascript(auto_complete_issues_path(:project_id => @issue.project, :scope => Setting.cross_project_subtasks, :status => @issue.closed? ? 'c' : 'o', :issue_id => @issue.id))}')" %>
|
||
|
<% end %>
|
||
|
|
||
|
<% if @issue.safe_attribute? 'start_date' %>
|
||
|
<p id="start_date_area">
|
||
|
<%= f.date_field(:start_date, :size => 10, :required => @issue.required_attribute?('start_date')) %>
|
||
| ... | ... | |
|
</p>
|
||
|
<% end %>
|
||
|
|
||
|
<% if @issue.safe_attribute?('done_ratio') && Issue.use_field_for_done_ratio? %>
|
||
|
<p><%= f.select :done_ratio, ((0..10).to_a.collect {|r| ["#{r*10} %", r*10] }), :required => @issue.required_attribute?('done_ratio') %></p>
|
||
|
<% end %>
|
||
|
|
||
|
<% if @issue.safe_attribute? 'estimated_hours' %>
|
||
|
<p><%= f.hours_field :estimated_hours, :size => 3, :required => @issue.required_attribute?('estimated_hours') %> <%= l(:field_hours) %></p>
|
||
|
<% end %>
|
||
|
|
||
|
<% if @issue.safe_attribute?('done_ratio') && Issue.use_field_for_done_ratio? %>
|
||
|
<p><%= f.select :done_ratio, ((0..10).to_a.collect {|r| ["#{r*10} %", r*10] }), :required => @issue.required_attribute?('done_ratio') %></p>
|
||
|
<% end %>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
| app/views/issues/_form.html.erb | ||
|---|---|---|
|
:onchange => "updateIssueFrom('#{escape_javascript update_issue_form_path(@project, @issue)}', this)" %></p>
|
||
|
<% end %>
|
||
|
|
||
|
<% if @issue.safe_attribute? 'parent_issue_id' %>
|
||
|
<p id="parent_issue"><%= f.text_field :parent_issue_id, :size => 10,
|
||
|
:required => @issue.required_attribute?('parent_issue_id'),
|
||
|
:onchange => "updateIssueFrom('#{escape_javascript update_issue_form_path(@project, @issue)}', this)" %></p>
|
||
|
<%= javascript_tag "observeAutocompleteField('issue_parent_issue_id', '#{escape_javascript(auto_complete_issues_path(:project_id => @issue.project, :scope => Setting.cross_project_subtasks, :status => @issue.closed? ? 'c' : 'o', :issue_id => @issue.id))}')" %>
|
||
|
<% end %>
|
||
|
|
||
|
<% if @issue.safe_attribute?('tracker_id') || (@issue.persisted? && @issue.tracker_id_changed?) %>
|
||
|
<p>
|
||
|
<%= f.select :tracker_id, trackers_options_for_select(@issue), {:required => true},
|
||
| ... | ... | |
|
<p><%= f.text_field :subject, :size => 80, :maxlength => 255, :required => true %></p>
|
||
|
<% end %>
|
||
|
|
||
|
<hr>
|
||
|
|
||
|
<div id="attributes" class="attributes">
|
||
|
<%= render :partial => 'issues/attributes' %>
|
||
|
</div>
|
||
|
|
||
|
<hr>
|
||
|
|
||
|
<% if @issue.safe_attribute? 'description' %>
|
||
|
<p>
|
||
|
<%= f.label_for_field :description, :required => @issue.required_attribute?('description') %>
|
||
| ... | ... | |
|
<%= wikitoolbar_for 'issue_description', preview_issue_path(:project_id => @issue.project, :issue_id => @issue.id) %>
|
||
|
<% end %>
|
||
|
|
||
|
<div id="attributes" class="attributes">
|
||
|
<%= render :partial => 'issues/attributes' %>
|
||
|
</div>
|
||
|
|
||
|
<%= call_hook(:view_issues_form_details_bottom, { :issue => @issue, :form => f }) %>
|
||
|
<% end %>
|
||
|
|
||
| public/stylesheets/application.css | ||
|---|---|---|
|
.add-filter {width:35%; float:right; text-align: right; vertical-align: top;}
|
||
|
|
||
|
#issue_is_private_wrap {float:right; margin-right:1em;}
|
||
|
#parent_issue {float:right;}
|
||
|
.toggle-multiselect { margin-right:5px; cursor:pointer;}
|
||
|
.buttons { font-size: 0.9em; margin-bottom: 1.4em; margin-top: 1em; }
|
||
|
.buttons .icon {padding-bottom:3px; padding-top:1px;}
|
||