2022-07-26 19:52:40 +08:00
|
|
|
<% if current_team %>
|
|
|
|
<% provide(:sidebar_title, t('sidebar.templates.sidebar_title')) %>
|
2022-07-27 16:10:32 +08:00
|
|
|
<% provide(:container_class, "no-second-nav-container") %>
|
2022-07-26 19:52:40 +08:00
|
|
|
<%= content_for :sidebar do %>
|
|
|
|
<%= render partial: "/shared/sidebar/templates_sidebar", locals: {active: :label} %>
|
|
|
|
<% end %>
|
2022-07-27 16:10:32 +08:00
|
|
|
|
|
|
|
<% content_for :head do %>
|
|
|
|
<meta name="turbolinks-cache-control" content="no-cache">
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<%= stylesheet_link_tag 'datatables' %>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="content-pane flexible label-templates-index">
|
|
|
|
<div class="content-header sticky-header">
|
|
|
|
<div class="title-row">
|
|
|
|
<h1>
|
|
|
|
<%= t('label_templates.index.head_title') %>
|
|
|
|
</h1>
|
|
|
|
</div>
|
2023-05-25 19:12:27 +08:00
|
|
|
</div>
|
2022-07-27 16:10:32 +08:00
|
|
|
<div id="content-label-templates-index">
|
2023-05-25 19:12:27 +08:00
|
|
|
<div class="label-templates-datatable">
|
|
|
|
<table id="label-templates-table"
|
|
|
|
class="table"
|
|
|
|
data-source="<%= datatable_label_templates_path(format: :json) %>">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th id="select-all">
|
|
|
|
<div class="sci-checkbox-container">
|
|
|
|
<input name="select_all" type="checkbox" class="sci-checkbox">
|
|
|
|
<span class="sci-checkbox-label"></span>
|
|
|
|
</div>
|
|
|
|
</th>
|
|
|
|
<th id="label-template-selected"><i class="fas fa-thumbtack"></i></th>
|
|
|
|
<th id="label-template-name"><%= t('label_templates.index.thead_name') %></th>
|
|
|
|
<th id="label-template-format"><%= t('label_templates.index.format') %></th>
|
|
|
|
<th id="label-template-description"><%= t('label_templates.index.description') %></th>
|
|
|
|
<th id="label-template-updated-by"><%= t('label_templates.index.updated_by') %></th>
|
|
|
|
<th id="label-template-updated-at"><%= t('label_templates.index.updated_at') %></th>
|
|
|
|
<th id="label-template-created-by"><%= t('label_templates.index.created_by') %></th>
|
|
|
|
<th id="label-template-created-at"><%= t('label_templates.index.created_at') %></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody></tbody>
|
|
|
|
</table>
|
2022-07-27 16:10:32 +08:00
|
|
|
</div>
|
2023-05-10 17:15:28 +08:00
|
|
|
|
|
|
|
<div id="actionToolbar" data-behaviour="vue">
|
|
|
|
<action-toolbar actions-url="<%= actions_toolbar_label_templates_url %>" />
|
|
|
|
</div>
|
2022-07-26 19:52:40 +08:00
|
|
|
</div>
|
2022-07-28 20:37:59 +08:00
|
|
|
</div>
|
2022-07-27 16:10:32 +08:00
|
|
|
|
2022-07-28 20:37:59 +08:00
|
|
|
<%= render partial: "index_toolbar" %>
|
|
|
|
<%= render partial: "delete_modal" %>
|
2023-06-16 16:19:54 +08:00
|
|
|
<%= javascript_include_tag 'label_templates/label_templates_datatable' %>
|
|
|
|
<%= javascript_include_tag 'vue_components_action_toolbar' %>
|
2022-07-26 19:52:40 +08:00
|
|
|
<% end %>
|