|
|
|
@ -8,7 +8,8 @@
|
|
|
|
|
<% if @issue.safe_attribute?('status_id') && @allowed_statuses.present? %>
|
|
|
|
|
<%= f.select :status_id,
|
|
|
|
|
(@allowed_statuses.collect { |p| [p.name, p.id] }),
|
|
|
|
|
{:onchange => "updateIssueFrom('#{escape_javascript project_issue_form_path(@project, :id => @issue, :format => 'js')}')", :no_label => true},
|
|
|
|
|
{:no_label => true},
|
|
|
|
|
:onchange => "updateIssueFrom('#{escape_javascript project_issue_form_path(@project, :id => @issue, :format => 'js')}')",
|
|
|
|
|
:class => "w150" %>
|
|
|
|
|
<% else %>
|
|
|
|
|
<%= h(@issue.status.name) %>
|
|
|
|
@ -92,7 +93,8 @@
|
|
|
|
|
<li><label class="label02"> % 完成 : </label>
|
|
|
|
|
<% if @issue.safe_attribute?('done_ratio') && @issue.leaf? && Issue.use_field_for_done_ratio? %>
|
|
|
|
|
<%= f.select :done_ratio, ((0..10).to_a.collect { |r| ["#{r*10} %", r*10] }),
|
|
|
|
|
{:required => @issue.required_attribute?('done_ratio'), :no_label => true, :onchange => "PrecentChange(this.value)"},
|
|
|
|
|
{:required => @issue.required_attribute?('done_ratio'), :no_label => true},
|
|
|
|
|
:onchange => "PrecentChange(this.value)",
|
|
|
|
|
:class => "w150" %>
|
|
|
|
|
<% end %>
|
|
|
|
|
</li>
|
|
|
|
|