mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-11-09 16:01:30 +08:00
Fix default selection of results in reports wizard [SCI-5726]
This commit is contained in:
parent
dde82423f1
commit
167ebd3d58
2 changed files with 9 additions and 7 deletions
|
|
@ -46,7 +46,7 @@ class Report < ApplicationRecord
|
||||||
step_tables: true,
|
step_tables: true,
|
||||||
step_comments: true
|
step_comments: true
|
||||||
},
|
},
|
||||||
file_results: false,
|
file_results: true,
|
||||||
file_results_previews: false,
|
file_results_previews: false,
|
||||||
table_results: true,
|
table_results: true,
|
||||||
text_results: true,
|
text_results: true,
|
||||||
|
|
|
||||||
|
|
@ -99,12 +99,14 @@
|
||||||
<label>
|
<label>
|
||||||
<%= t("projects.reports.wizard.third_step.order_results") %>
|
<%= t("projects.reports.wizard.third_step.order_results") %>
|
||||||
</label>
|
</label>
|
||||||
<select class="order-results" id="taskResultsOrder">
|
<%= select_tag :taskResultsOrder,
|
||||||
<option value="atoz"><%= t("projects.reports.wizard.third_step.atoz") %></option>
|
options_for_select([
|
||||||
<option value="ztoa"><%= t("projects.reports.wizard.third_step.ztoa") %></option>
|
[t('projects.reports.wizard.third_step.atoz'), 'atoz'],
|
||||||
<option value="new"><%= t("projects.reports.wizard.third_step.new_results") %></option>
|
[t('projects.reports.wizard.third_step.ztoa'), 'ztoa'],
|
||||||
<option value="old"><%= t("projects.reports.wizard.third_step.old_results") %></option>
|
[t('projects.reports.wizard.third_step.new_results'), 'new'],
|
||||||
</select>
|
[t('projects.reports.wizard.third_step.old_results'), 'old']
|
||||||
|
], selected: report.settings.dig(:task, :result_order)),
|
||||||
|
class: 'order-results' %>
|
||||||
</div>
|
</div>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue