2022-08-04 16:51:30 +08:00
|
|
|
<% provide(:sidebar_title, t('sidebar.templates.sidebar_title')) %>
|
|
|
|
<% provide(:container_class, "no-second-nav-container") %>
|
|
|
|
|
|
|
|
<div id="labelTemplateContainer"
|
|
|
|
data-label-template-url="<%= label_template_path(params[:id], format: :json) %>"
|
2022-08-24 19:55:54 +08:00
|
|
|
data-label-templates-url="<%= label_templates_path %>"
|
|
|
|
data-preview-url="<%= zpl_preview_label_templates_path %>"
|
2022-08-04 19:36:14 +08:00
|
|
|
data-new-label="<%= params[:new_label] || false %>"
|
2022-08-04 16:51:30 +08:00
|
|
|
>
|
|
|
|
<label-template-container
|
|
|
|
:label-template-url="labelTemplateUrl"
|
|
|
|
:label-templates-url="labelTemplatesUrl"
|
2022-08-24 19:55:54 +08:00
|
|
|
:preview-url="previewUrl"
|
2022-08-04 19:36:14 +08:00
|
|
|
:new-label="newLabel"
|
2022-08-04 16:51:30 +08:00
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
|
2023-06-16 16:19:54 +08:00
|
|
|
<%= javascript_include_tag 'vue_label_template' %>
|