mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-16 22:25:30 +08:00
62 lines
2.3 KiB
Text
62 lines
2.3 KiB
Text
<% provide(:head_title, t("protocols.index.head_title")) %>
|
|
|
|
<% if current_team %>
|
|
<% provide(:sidebar_title, t('sidebar.templates.sidebar_title')) %>
|
|
<%= content_for :sidebar do %>
|
|
<%= render partial: "/shared/sidebar/templates_sidebar", locals: {active: :protocol} %>
|
|
<% end %>
|
|
<% provide(:container_class, 'no-second-nav-container') %>
|
|
|
|
<div class="content-pane flexible protocols-index <%= @type %>">
|
|
<div class="content-header sticky-header">
|
|
<div class="title-row">
|
|
<% if templates_view_mode_archived?(type: @type) %>
|
|
<h1>
|
|
<span><%= t('labels.archived')%></span>
|
|
<%= t('protocols.index.head_title_archived') %>
|
|
</h1>
|
|
<% else %>
|
|
<h1><%= t('protocols.index.head_title') %></h1>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
<div class="protocols-container">
|
|
<%= render partial: "protocols/index/protocols_datatable" %>
|
|
|
|
<div id="actionToolbar" data-behaviour="vue">
|
|
<action-toolbar actions-url="<%= actions_toolbar_protocols_url %>" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<% end %>
|
|
|
|
<div id="protocolFileImportModal">
|
|
<protocol-file-import-modal
|
|
import-url="<%= import_docx_protocols_path %>"
|
|
protocol-template-table-url="<%= protocols_path %>"
|
|
/>
|
|
</div>
|
|
<%= javascript_include_tag 'vue_protocol_file_import_modal' %>
|
|
|
|
<div id="protocolsio-preview-modal-target"></div>
|
|
<%= render partial: "protocols/index/general_toolbar" %>
|
|
<%= render partial: "protocols/index/protocol_filters" %>
|
|
<%= render partial: "protocols/index/delete_draft_modal" %>
|
|
<%= render partial: "protocols/index/linked_children_modal" %>
|
|
<%= render partial: "protocols/index/protocol_preview_modal" %>
|
|
<%= render partial: "protocols/index/protocolsio_modal" %>
|
|
<%= render partial: "protocols/index/new_protocol_modal", locals: {type: 'new'} %>
|
|
|
|
<%= render partial: "protocols/import_export/import_elements" %>
|
|
<%= javascript_include_tag "vue_components_action_toolbar" %>
|
|
<%= javascript_include_tag "handsontable.full" %>
|
|
|
|
<!-- Libraries for formulas -->
|
|
<%= render partial: "shared/formulas_libraries" %>
|
|
|
|
<%= stylesheet_link_tag 'datatables' %>
|
|
<%= javascript_include_tag "assets/wopi/create_wopi_file" %>
|
|
<%= javascript_include_tag "protocols/index" %>
|
|
<%= javascript_include_tag "protocols/new_protocol" %>
|
|
<%= javascript_include_tag 'pdf_js' %>
|
|
<%= stylesheet_link_tag 'pdf_js_styles' %>
|