2018-04-18 22:47:52 +08:00
|
|
|
<%= stylesheet_link_tag 'datatables' %>
|
2016-02-12 23:52:43 +08:00
|
|
|
|
2021-05-06 20:00:33 +08:00
|
|
|
<% if params[:preview_report_id] %>
|
|
|
|
<%= hidden_field_tag :show_report_preview, nil, class: "file-preview-link", data: { preview_url: document_preview_report_path(params[:preview_report_id], report_type: params[:preview_type]) } %>
|
|
|
|
<% end %>
|
|
|
|
|
2023-11-20 18:38:41 +08:00
|
|
|
<% content_for :head do %>
|
|
|
|
<meta id="cache-directive" name="turbolinks-cache-control" content="no-cache">
|
|
|
|
<% end %>
|
|
|
|
|
2021-03-17 19:54:25 +08:00
|
|
|
<div class="content-pane flexible reports-index">
|
2021-03-16 20:11:15 +08:00
|
|
|
<%= render partial: 'reports/index_header' %>
|
2024-01-11 02:56:01 +08:00
|
|
|
<div id="reportsTable" class="fixed-content-body">
|
|
|
|
<reports-table
|
|
|
|
actions-url="<%= actions_toolbar_reports_url %>"
|
|
|
|
available-repositories-url="<%= reports_available_repositories_path %>"
|
|
|
|
available-columns-url="<%= available_asset_type_columns_path %>"
|
|
|
|
available-rows-url="<%= available_rows_repositories_path %>"
|
|
|
|
data-source="<%= reports_path(format: :json) %>"
|
|
|
|
create-url="<%= new_report_path if can_create_reports?(current_team) %>"
|
|
|
|
/>
|
2018-04-18 22:47:52 +08:00
|
|
|
</div>
|
2024-01-11 02:56:01 +08:00
|
|
|
<%= javascript_include_tag 'vue_reports_table' %>
|
|
|
|
<%= javascript_include_tag 'pdf_js' %>
|
|
|
|
<%= stylesheet_link_tag 'pdf_js_styles' %>
|
2016-02-12 23:52:43 +08:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Save report modal -->
|
|
|
|
<div class="modal" id="delete-reports-modal" tabindex="-1" role="dialog" aria-labelledby="delete-reports-modal-label">
|
2023-07-03 17:11:51 +08:00
|
|
|
<%= form_with url: reports_destroy_path, method: :post, id: "delete-reports-form" do |f| %>
|
2016-02-12 23:52:43 +08:00
|
|
|
<input type="hidden" name="report_ids" id="report-ids">
|
|
|
|
<div class="modal-dialog" role="document">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
2023-08-17 19:55:17 +08:00
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><i class="sn-icon sn-icon-close"></i></button>
|
2016-02-12 23:52:43 +08:00
|
|
|
<h4 class="modal-title" id="delete-reports-modal-label"><%=t "projects.reports.index.modal_delete.head_title" %></h4>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<%=t "projects.reports.index.modal_delete.message" %>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
2023-06-19 21:45:22 +08:00
|
|
|
<button type="button" class="btn btn-secondary" data-dismiss="modal"><%=t "general.cancel" %></button>
|
2018-04-25 19:57:12 +08:00
|
|
|
<%= f.button t("projects.reports.index.modal_delete.delete"), class: "btn btn-danger", id: "confirm-delete-reports-btn", name: nil %>
|
2016-02-12 23:52:43 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
</div>
|