mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-11 01:44:34 +08:00
21 lines
796 B
Text
21 lines
796 B
Text
<% provide(:sidebar_title, t('sidebar.templates.sidebar_title')) %>
|
|
<% provide(:container_class, "no-second-nav-container") %>
|
|
<%= content_for :sidebar do %>
|
|
<%= render partial: "/shared/sidebar/templates_sidebar", locals: {active: :label} %>
|
|
<% end %>
|
|
|
|
<div id="labelTemplateContainer"
|
|
data-label-template-url="<%= label_template_path(params[:id], format: :json) %>"
|
|
data-label-templates-url="<%= label_templates_path %>"
|
|
data-preview-url="<%= zpl_preview_label_templates_path %>"
|
|
data-new-label="<%= params[:new_label] || false %>"
|
|
>
|
|
<label-template-container
|
|
:label-template-url="labelTemplateUrl"
|
|
:label-templates-url="labelTemplatesUrl"
|
|
:preview-url="previewUrl"
|
|
:new-label="newLabel"
|
|
/>
|
|
</div>
|
|
|
|
<%= javascript_include_tag 'vue_label_template' %>
|