mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-11 10:06:53 +08:00
35 lines
1.3 KiB
Text
35 lines
1.3 KiB
Text
<% provide(:sidebar_title, t('sidebar.templates.sidebar_title')) %>
|
|
<%= content_for :sidebar do %>
|
|
<%= render partial: "/shared/sidebar/templates_sidebar", locals: {active: :protocol} %>
|
|
<% end %>
|
|
<div class="content-pane protocols-show" >
|
|
<div class="protocol-position-container">
|
|
<div class="protocol-actions">
|
|
<a class="btn btn-secondary pull-right" href="<%= print_protocol_path(@protocol) %>" target="_blank" tabindex="0">
|
|
<span class="fas fa-print" aria-hidden="true"></span>
|
|
<span><%= t("protocols.print.button") %></span>
|
|
</a>
|
|
</div>
|
|
<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' %>
|
|
|
|
<%= javascript_pack_tag 'vue/protocol' %>
|
|
<%= render partial: 'label_printers/label_printer_modal' %>
|