Project

General

Profile

Feature #31589 » issue-31589-poc.diff

Toshi MARUYAMA, 2020-01-06 16:22

View differences:

app/views/issues/_attributes.html.erb
3 3
<div class="splitcontent">
4 4
<div class="splitcontentleft">
5 5
<% if @issue.safe_attribute?('status_id') && @allowed_statuses.present? %>
6
<p><%= f.select :status_id, (@allowed_statuses.collect {|p| [p.name, p.id]}), {:required => true},
7
                :onchange => "updateIssueFrom('#{escape_javascript(update_issue_form_path(@project, @issue))}', this)" %></p>
6
<p>
7
  <%= f.select :status_id, (@allowed_statuses.collect {|p| [p.name, p.id]}), {:required => true},
8
               :onchange => "updateIssueFrom('#{escape_javascript(update_issue_form_path(@project, @issue))}', this)" %>
9
</p>
8 10
<%= hidden_field_tag 'was_default_status', @issue.status_id, :id => nil if @issue.status == @issue.default_status %>
9 11
<% else %>
10 12
<p><label><%= l(:field_status) %></label> <%= @issue.status %></p>
app/views/issues/_attributes.html.erb
6 6
<p>
7 7
  <%= f.select :status_id, (@allowed_statuses.collect {|p| [p.name, p.id]}), {:required => true},
8 8
               :onchange => "updateIssueFrom('#{escape_javascript(update_issue_form_path(@project, @issue))}', this)" %>
9
  <% if @issue.descendants.open.any? %>
10
    <span class="icon icon-warning" title="POC">
11
      &nbsp;
12
    </span>
13
  <% end %>
9 14
</p>
10 15
<%= hidden_field_tag 'was_default_status', @issue.status_id, :id => nil if @issue.status == @issue.default_status %>
11 16
<% else %>
(2-2/4)