2018-07-19 23:56:42 +08:00
|
|
|
<% content_for :head do %>
|
|
|
|
<meta name="turbolinks-cache-control" content="no-cache">
|
|
|
|
<% end %>
|
|
|
|
|
2016-07-21 19:11:15 +08:00
|
|
|
<% provide(:head_title, t("protocols.index.head_title")) %>
|
|
|
|
|
2018-05-25 23:14:22 +08:00
|
|
|
<% if current_team %>
|
2022-07-26 19:52:40 +08:00
|
|
|
<% provide(:sidebar_title, t('sidebar.templates.sidebar_title')) %>
|
|
|
|
<%= content_for :sidebar do %>
|
|
|
|
<%= render partial: "/shared/sidebar/templates_sidebar", locals: {active: :protocol} %>
|
|
|
|
<% end %>
|
2022-12-05 20:32:05 +08:00
|
|
|
<% provide(:container_class, 'no-second-nav-container') %>
|
2016-07-21 19:11:15 +08:00
|
|
|
|
2023-01-25 04:17:50 +08:00
|
|
|
<div class="content-pane flexible protocols-index <%= @type %>">
|
2022-12-05 20:32:05 +08:00
|
|
|
<div class="content-header sticky-header">
|
|
|
|
<div class="title-row">
|
2023-03-07 21:55:11 +08:00
|
|
|
<% if templates_view_mode_archived?(type: @type) %>
|
2023-01-25 04:17:50 +08:00
|
|
|
<h1>
|
2023-06-02 08:03:41 +08:00
|
|
|
<span><%= t('labels.archived')%></span>
|
2023-01-25 04:17:50 +08:00
|
|
|
<%= t('protocols.index.head_title_archived') %>
|
|
|
|
</h1>
|
2019-06-12 13:19:14 +08:00
|
|
|
<% else %>
|
2023-01-25 04:17:50 +08:00
|
|
|
<h1><%= t('protocols.index.head_title') %></h1>
|
2019-06-12 13:19:14 +08:00
|
|
|
<% end %>
|
2016-07-21 19:11:15 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-12-05 20:32:05 +08:00
|
|
|
<div class="protocols-container">
|
|
|
|
<%= render partial: "protocols/index/protocols_datatable.html.erb" %>
|
2023-05-17 20:12:40 +08:00
|
|
|
|
|
|
|
<div id="actionToolbar" data-behaviour="vue">
|
|
|
|
<action-toolbar actions-url="<%= actions_toolbar_protocols_url %>" />
|
|
|
|
</div>
|
2016-07-21 19:11:15 +08:00
|
|
|
</div>
|
2018-05-25 23:14:22 +08:00
|
|
|
</div>
|
|
|
|
<% end %>
|
2018-05-08 22:33:42 +08:00
|
|
|
|
2017-09-19 21:02:16 +08:00
|
|
|
<div id="protocolsio-preview-modal-target"></div>
|
2022-12-19 20:18:24 +08:00
|
|
|
<%= render partial: "protocols/index/general_toolbar.html.erb" %>
|
2022-12-15 23:57:19 +08:00
|
|
|
<%= render partial: "protocols/index/protocol_filters.html.erb" %>
|
2023-02-13 16:50:39 +08:00
|
|
|
<%= render partial: "protocols/index/delete_draft_modal.html.erb" %>
|
2016-07-21 19:11:15 +08:00
|
|
|
<%= render partial: "protocols/index/linked_children_modal.html.erb" %>
|
2016-12-13 17:39:18 +08:00
|
|
|
<%= render partial: "protocols/index/protocol_preview_modal.html.erb" %>
|
2023-02-21 18:03:06 +08:00
|
|
|
<%= render partial: "protocols/index/protocolsio_modal.html.erb" %>
|
2023-02-17 21:27:20 +08:00
|
|
|
<%= render partial: "protocols/index/new_protocol_modal.html.erb", locals: {type: 'new'} %>
|
2016-07-21 19:11:15 +08:00
|
|
|
|
|
|
|
<%= render partial: "protocols/import_export/import_elements.html.erb" %>
|
2023-05-17 20:12:40 +08:00
|
|
|
<%= javascript_include_tag "vue_components_action_toolbar" %>
|
2021-05-04 22:05:19 +08:00
|
|
|
<%= javascript_include_tag "handsontable.full" %>
|
2016-12-22 18:43:11 +08:00
|
|
|
|
|
|
|
<!-- Libraries for formulas -->
|
2019-05-13 16:45:12 +08:00
|
|
|
<%= render partial: "shared/formulas_libraries.html.erb" %>
|
2018-11-26 21:05:02 +08:00
|
|
|
|
|
|
|
<%= stylesheet_link_tag 'datatables' %>
|
2019-04-24 19:34:56 +08:00
|
|
|
<%= javascript_include_tag "assets/wopi/create_wopi_file" %>
|
2018-11-26 21:05:02 +08:00
|
|
|
<%= javascript_include_tag "protocols/index" %>
|
2023-02-17 21:27:20 +08:00
|
|
|
<%= javascript_include_tag "protocols/new_protocol" %>
|
2023-03-30 19:27:10 +08:00
|
|
|
<%= javascript_include_tag 'pdf_js' %>
|
|
|
|
<%= stylesheet_link_tag 'pdf_js_styles' %>
|