2022-07-28 20:37:59 +08:00
|
|
|
<template id="labelTemplatesToolbar">
|
|
|
|
<% if can_manage_label_templates?(current_team) %>
|
2023-05-16 18:27:28 +08:00
|
|
|
<button data-url="<%= label_templates_path %>" title="<%= t('label_templates.index.toolbar.new') %>"
|
|
|
|
class="btn btn-primary auto-shrink-button" id="newLabelTemplate">
|
2023-06-08 14:33:37 +08:00
|
|
|
<i class="sn-icon sn-icon-new-task"></i>
|
2023-05-16 18:27:28 +08:00
|
|
|
<span class="button-text"><%= t('label_templates.index.toolbar.new') %></span>
|
|
|
|
</button>
|
|
|
|
<button title="<%= t('label_templates.index.toolbar.update_fluics_labels') %>"
|
|
|
|
class="btn btn-light" id="syncFluicsTemplates" data-url="<%= sync_fluics_templates_label_templates_path %>">
|
|
|
|
<i class="fas fa-sync"></i>
|
|
|
|
<span class="button-text"><%= t('label_templates.index.toolbar.update_fluics_labels') %></span>
|
|
|
|
</button>
|
|
|
|
<% end %>
|
2022-07-28 20:37:59 +08:00
|
|
|
</template>
|