mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-09-21 07:26:15 +08:00
Merge pull request #3349 from aignatov-bio/ai-sci-5758-small-report-wizard-fixes
Small report wizard fixes [SCI-5758]
This commit is contained in:
commit
967ec1fdbf
|
@ -51,8 +51,7 @@ class ReportsController < ApplicationController
|
||||||
# Report grouped by modules
|
# Report grouped by modules
|
||||||
def new
|
def new
|
||||||
@templates = Extends::REPORT_TEMPLATES
|
@templates = Extends::REPORT_TEMPLATES
|
||||||
@active_template = @templates.one? ? @templates.keys[0] : nil
|
@repositories = Repository.accessible_by_teams(current_team).active.select(:id, :name).order(:name)
|
||||||
@repositories = Repository.accessible_by_teams(current_team).active.select(:id, :name)
|
|
||||||
@report = current_team.reports.new
|
@report = current_team.reports.new
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -115,7 +114,7 @@ class ReportsController < ApplicationController
|
||||||
@edit = true
|
@edit = true
|
||||||
@templates = Extends::REPORT_TEMPLATES
|
@templates = Extends::REPORT_TEMPLATES
|
||||||
@active_template = @report.settings[:template]
|
@active_template = @report.settings[:template]
|
||||||
@repositories = Repository.accessible_by_teams(current_team).active.select(:id, :name)
|
@repositories = Repository.accessible_by_teams(current_team).active.select(:id, :name).order(:name)
|
||||||
@report.settings = Report::DEFAULT_SETTINGS if @report.settings.blank?
|
@report.settings = Report::DEFAULT_SETTINGS if @report.settings.blank?
|
||||||
|
|
||||||
@project_contents = {
|
@project_contents = {
|
||||||
|
|
|
@ -157,6 +157,7 @@
|
||||||
<span class="sci-checkbox-label"></span>
|
<span class="sci-checkbox-label"></span>
|
||||||
</span>
|
</span>
|
||||||
<%= t("projects.reports.wizard.third_step.results_comments") %>
|
<%= t("projects.reports.wizard.third_step.results_comments") %>
|
||||||
|
<div class="divider"></div>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<div class="divider"></div>
|
<div class="divider"></div>
|
||||||
|
|
Loading…
Reference in a new issue