Merge pull request #1212 from okriuchykhin/ok_SCI_2377

Add hooks to new report modal [SCI-2377]
This commit is contained in:
okriuchykhin 2018-06-14 15:48:43 +02:00 committed by GitHub
commit 801d0a4a22
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,7 +7,7 @@
</div> </div>
<div class="checkbox-tree"> <div class="checkbox-tree">
<ul> <ul data-hook="module-content-list">
<li> <li>
<%= form.check_box :module_all, label: t("projects.reports.elements.modals.module_contents_inner.check_all") %> <%= form.check_box :module_all, label: t("projects.reports.elements.modals.module_contents_inner.check_all") %>
<ul> <ul>
@ -35,8 +35,7 @@
<% if my_module_undefined or (my_module.results.select { |r| r.active? }).exists? %> <% if my_module_undefined or (my_module.results.select { |r| r.active? }).exists? %>
<li> <li>
<%= form.check_box :module_results, label: t("projects.reports.elements.modals.module_contents_inner.results") %> <%= form.check_box :module_results, label: t("projects.reports.elements.modals.module_contents_inner.results") %>
<ul> <ul data-hook="result-types-list">
<% if my_module_undefined or (my_module.results.select { |r| r.is_asset && r.active? }).exists? %> <% if my_module_undefined or (my_module.results.select { |r| r.is_asset && r.active? }).exists? %>
<li> <li>
<%= form.check_box :module_result_assets, label: t("projects.reports.elements.modals.module_contents_inner.result_assets") %> <%= form.check_box :module_result_assets, label: t("projects.reports.elements.modals.module_contents_inner.result_assets") %>