scinote-web/app/views/label_templates/_index_toolbar.html.erb

25 lines
1.3 KiB
Text
Raw Normal View History

<template id="labelTemplatesToolbar">
<% if can_manage_label_templates?(current_team) %>
<button data-url="<%= label_templates_path %>" title="<%= t('label_templates.index.toolbar.new') %>"
class="btn btn-primary auto-shrink-button" id="newLabelTemplate">
<i class="fas fa-plus"></i>
<span class="button-text"><%= t('label_templates.index.toolbar.new') %></span>
</button>
<div class="btn btn-light hidden selected-actions auto-shrink-button"
title="<%= t('label_templates.index.toolbar.duplicate') %>"
data-url="<%= duplicate_label_templates_path %>"
id="duplicateLabelTemplate">
<i class="fas fa-clone"></i>
<span class="button-text"><%= t('label_templates.index.toolbar.duplicate') %></span>
</div>
<div class="btn btn-light hidden selected-actions auto-shrink-button" id="setDefaultLabelTemplate" title="<%= t('label_templates.index.toolbar.set_default') %>">
<i class="fas fa-thumbtack"></i>
<span class="button-text"><%= t('label_templates.index.toolbar.set_default') %></span>
</div>
<div class="btn btn-light hidden selected-actions auto-shrink-button" id="deleteLabelTemplate" title="<%= t('label_templates.index.toolbar.delete') %>">
<i class="fas fa-trash"></i>
<span class="button-text"><%= t('label_templates.index.toolbar.delete') %></span>
</div>
<% end%>
</template>