scinote-web/app/views/reports/wizard/_second_step.html.erb
aignatov-bio d18a54c874
Update create and update action for reports controller [SCI-5641] (#3260)
Update create and update action [SCI-5641]
2021-04-20 13:35:40 +02:00

38 lines
1.6 KiB
Text

<div class="project-contents-container">
<div class="header">
<div class="title">
<%= t("projects.reports.wizard.second_step.select_project_content") %>
</div>
<div class="collapse-buttons sci-btn-group">
<button class="btn btn-light collapse-all">
<i class="fas fa-caret-up"></i>
<%= t("projects.reports.wizard.second_step.collapse_all") %>
</button>
<button class="btn btn-light expand-all">
<i class="fas fa-caret-down"></i>
<%= t("projects.reports.wizard.second_step.expand_all") %>
</button>
</div>
</div>
<div class="hide-unchecked">
<span class="sci-checkbox-container">
<input type="checkbox" class="sci-checkbox hide-unchecked-checkbox" />
<span class="sci-checkbox-label"></span>
</span>
<%= t("projects.reports.wizard.second_step.hide_unchecked") %>
</div>
<div class="select-all-my-modules">
<span class="sci-checkbox-container">
<input type="checkbox" class="sci-checkbox select-all-my-modules-checkbox" <%= 'checked' if report.settings.dig(:all_tasks) %>/>
<span class="sci-checkbox-label"></span>
</span>
<%= t("projects.reports.wizard.second_step.select_all_tasks") %>
</div>
<div class="divider"></div>
<div class="project-contents" data-project-id="<%= report.project&.id %>" data-project-content-url="<%= project_contents_reports_path %>">
<% if report.id %>
<%= render partial: 'reports/wizard/project_contents.html.erb',
locals: { project: report.project, report: report } %>
<% end %>
</div>
</div>