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 %>
|
2023-01-05 18:42:59 +08:00
|
|
|
<% provide(:container_class, 'no-second-nav-container') %>
|
2022-05-27 18:49:10 +08:00
|
|
|
<div class="content-pane protocols-show" >
|
2023-01-05 18:42:59 +08:00
|
|
|
<div class="content-header">
|
|
|
|
<div id="breadcrumbsWrapper">
|
|
|
|
<div class="breadcrumbs-container">
|
|
|
|
<a href="<%= protocols_path %>" class="breadcrumbs-link">
|
|
|
|
<%= t('sidebar.templates.protocol_templates') %>
|
|
|
|
</a>
|
|
|
|
<span class="delimiter">/</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="title-row">
|
|
|
|
<h1>
|
|
|
|
<% if @inline_editable_title_config.present? %>
|
|
|
|
<%= render partial: "shared/inline_editing",
|
|
|
|
locals: {
|
|
|
|
initial_value: @protocol.name,
|
|
|
|
config: @inline_editable_title_config
|
|
|
|
} %>
|
|
|
|
<% else %>
|
|
|
|
<div class="name-readonly-placeholder">
|
|
|
|
<%= @protocol.name %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
</h1>
|
2022-07-15 16:10:18 +08:00
|
|
|
</div>
|
2023-01-05 18:42:59 +08:00
|
|
|
</div>
|
|
|
|
<div class="protocol-position-container">
|
2022-05-27 18:49:10 +08:00
|
|
|
<div
|
|
|
|
id="protocolContainer"
|
|
|
|
data-protocol-url="<%= protocol_path(@protocol) %>"
|
|
|
|
data-date-format="<%= datetime_picker_format_date_only %>"
|
|
|
|
data-user-utc-offset="<%= ActiveSupport::TimeZone.find_tzinfo(current_user.time_zone).utc_offset %>"
|
|
|
|
>
|
|
|
|
<protocol-container
|
|
|
|
:protocol-url="protocolUrl"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Create new office file modal -->
|
|
|
|
<%= render partial: 'assets/wopi/create_wopi_file_modal.html.erb' %>
|
|
|
|
|
|
|
|
<%= javascript_include_tag "handsontable.full" %>
|
|
|
|
<%= render partial: "shared/formulas_libraries.html.erb" %>
|
|
|
|
<%= javascript_pack_tag 'pdfjs/pdf_js' %>
|
|
|
|
<%= stylesheet_pack_tag 'pdfjs/pdf_js_styles' %>
|
|
|
|
|
2022-12-07 21:07:43 +08:00
|
|
|
<%= render 'shared/tiny_mce_packs' %>
|
2022-07-15 16:10:18 +08:00
|
|
|
<%= javascript_pack_tag 'vue/protocol' %>
|
2022-10-03 19:39:18 +08:00
|
|
|
<%= render partial: 'label_printers/label_printer_modal' %>
|