mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-27 10:14:17 +08:00
Small report wizard fixes [SCI-5758]
This commit is contained in:
parent
e675e4004e
commit
f586865696
2 changed files with 3 additions and 3 deletions
|
@ -51,8 +51,7 @@ class ReportsController < ApplicationController
|
|||
# Report grouped by modules
|
||||
def new
|
||||
@templates = Extends::REPORT_TEMPLATES
|
||||
@active_template = @templates.one? ? @templates.keys[0] : nil
|
||||
@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 = current_team.reports.new
|
||||
end
|
||||
|
||||
|
@ -115,7 +114,7 @@ class ReportsController < ApplicationController
|
|||
@edit = true
|
||||
@templates = Extends::REPORT_TEMPLATES
|
||||
@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?
|
||||
|
||||
@project_contents = {
|
||||
|
|
|
@ -157,6 +157,7 @@
|
|||
<span class="sci-checkbox-label"></span>
|
||||
</span>
|
||||
<%= t("projects.reports.wizard.third_step.results_comments") %>
|
||||
<div class="divider"></div>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="divider"></div>
|
||||
|
|
Loading…
Reference in a new issue