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') %>
|
2023-09-21 16:19:31 +08:00
|
|
|
<div class="content-pane protocols-show flexible with-grey-background pb-4" >
|
|
|
|
<div class="content-header sticky-header">
|
2023-01-05 18:42:59 +08:00
|
|
|
<div class="title-row">
|
2024-06-07 18:05:31 +08:00
|
|
|
<h1 data-e2e="e2e-TX-protocolTemplates-protocol-title">
|
2023-01-05 18:42:59 +08:00
|
|
|
<% if @inline_editable_title_config.present? %>
|
|
|
|
<%= render partial: "shared/inline_editing",
|
|
|
|
locals: {
|
|
|
|
initial_value: @protocol.name,
|
|
|
|
config: @inline_editable_title_config
|
|
|
|
} %>
|
|
|
|
<% else %>
|
2023-03-07 03:44:47 +08:00
|
|
|
<% if @protocol.archived %>
|
2023-06-02 08:03:41 +08:00
|
|
|
<span><%= t('labels.archived')%></span>
|
2023-03-07 03:44:47 +08:00
|
|
|
<% end %>
|
2023-01-05 18:42:59 +08:00
|
|
|
<div class="name-readonly-placeholder">
|
2023-03-31 22:30:26 +08:00
|
|
|
<% if @protocol.in_repository_draft? %>
|
|
|
|
<%= t('protocols.draft_name', name: @protocol.name ) %>
|
|
|
|
<% else %>
|
|
|
|
<%= @protocol.name %>
|
|
|
|
<% end %>
|
2023-01-05 18:42:59 +08:00
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
</h1>
|
2022-07-15 16:10:18 +08:00
|
|
|
</div>
|
2023-01-05 18:42:59 +08:00
|
|
|
</div>
|
2023-09-21 16:19:31 +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 %>"
|
2024-06-07 18:05:31 +08:00
|
|
|
data-e2e="e2e-CO-protocolTemplates-protocol"
|
2023-09-21 16:19:31 +08:00
|
|
|
>
|
|
|
|
<protocol-container
|
|
|
|
:protocol-url="protocolUrl"
|
|
|
|
/>
|
2022-05-27 18:49:10 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Create new office file modal -->
|
2023-06-21 20:13:20 +08:00
|
|
|
<%= render partial: 'assets/wopi/create_wopi_file_modal' %>
|
2023-02-22 21:59:48 +08:00
|
|
|
<%= render partial: "my_modules/protocols/print_protocol_modal", locals: { protocol: @protocol, comments_enabled: true} %>
|
2022-05-27 18:49:10 +08:00
|
|
|
|
2023-02-24 23:17:36 +08:00
|
|
|
|
2022-05-27 18:49:10 +08:00
|
|
|
<%= javascript_include_tag "handsontable.full" %>
|
2023-06-21 20:13:20 +08:00
|
|
|
<%= render partial: "shared/formulas_libraries" %>
|
2023-03-30 19:27:10 +08:00
|
|
|
<%= javascript_include_tag 'pdf_js' %>
|
|
|
|
<%= stylesheet_link_tag 'pdf_js_styles' %>
|
2022-05-27 18:49:10 +08:00
|
|
|
|
2022-12-07 21:07:43 +08:00
|
|
|
<%= render 'shared/tiny_mce_packs' %>
|
2023-03-30 19:27:10 +08:00
|
|
|
<%= javascript_include_tag 'vue_protocol' %>
|