2017-10-17 19:17:49 +08:00
|
|
|
<% provide(:head_title, t('users.settings.account.addons.head_title')) %>
|
2018-05-08 22:33:42 +08:00
|
|
|
<% provide(:container_class, "no-second-nav-container") %>
|
2017-10-17 19:17:49 +08:00
|
|
|
|
2018-04-05 22:30:02 +08:00
|
|
|
<%= render partial: 'users/settings/sidebar.html.erb' %>
|
2020-07-13 20:51:51 +08:00
|
|
|
<div class="tab-content user-account-addons">
|
2018-05-08 22:33:42 +08:00
|
|
|
<div class="tab-pane content-pane active" role="tabpanel">
|
2017-10-17 19:17:49 +08:00
|
|
|
|
|
|
|
<div class="row">
|
2021-08-16 16:51:46 +08:00
|
|
|
<h1 class="addons-title"><%= t('users.settings.account.addons.title') %></h1>
|
|
|
|
|
2018-04-05 22:30:02 +08:00
|
|
|
<div class="col-xs-12 col-sm-12">
|
2021-08-16 16:51:46 +08:00
|
|
|
<h2 class="addons-subtitle" ><%= t('users.settings.account.addons.scinote_addons') %></h2>
|
2017-10-17 19:17:49 +08:00
|
|
|
<div data-hook="settings-addons-container">
|
|
|
|
<em data-hook="settings-addons-no-addons">
|
|
|
|
<%= t('users.settings.account.addons.no_addons') %>
|
|
|
|
</em>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-09-02 15:52:52 +08:00
|
|
|
<div class="row printer-settings">
|
2021-07-21 19:48:38 +08:00
|
|
|
<div class="col-xs-12 col-sm-12">
|
2021-08-16 16:51:46 +08:00
|
|
|
<h2 class="addons-subtitle"><%= t('users.settings.account.addons.label_printers') %></h2>
|
2022-08-04 17:14:35 +08:00
|
|
|
<% if Rails.configuration.x.zebra_print_enabled %>
|
|
|
|
<div class="printers-container">
|
|
|
|
<div class="printer">
|
|
|
|
<div class="header">
|
|
|
|
<div class="title">
|
|
|
|
<%= t('users.settings.account.addons.zebra_printer.title') %>
|
|
|
|
</div>
|
|
|
|
<div class="control">
|
|
|
|
<%= t('users.settings.account.addons.printers.enabled') %>
|
|
|
|
<i class="fas fa-check"></i>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
<%= t('users.settings.account.addons.zebra_printer.description') %>
|
|
|
|
</div>
|
|
|
|
<%= link_to t('users.settings.account.addons.printers.printer_details'), zebra_settings_path(), class: 'printer-details' %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
2021-08-02 21:38:37 +08:00
|
|
|
<div class="printers-container">
|
|
|
|
<div class="printer">
|
|
|
|
<div class="header">
|
|
|
|
<div class="title">
|
|
|
|
<%= t('users.settings.account.addons.fluics_printer.title') %>
|
2021-07-21 19:48:38 +08:00
|
|
|
</div>
|
2021-08-02 21:38:37 +08:00
|
|
|
<div class="control">
|
|
|
|
<%= t('users.settings.account.addons.printers.enabled') %>
|
|
|
|
<i class="fas fa-check"></i>
|
2021-07-21 19:48:38 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
2021-08-02 21:38:37 +08:00
|
|
|
<div class="description">
|
|
|
|
<%= t('users.settings.account.addons.fluics_printer.description') %>
|
|
|
|
</div>
|
|
|
|
<% if !@label_printer_any && can_manage_label_printers? %>
|
|
|
|
<%= link_to label_printers_path(), class: 'printer-details btn btn-primary' do %>
|
|
|
|
<i class="fas fa-key"></i>
|
|
|
|
<%= t('users.settings.account.addons.printers.enter_api_key') %>
|
|
|
|
<% end %>
|
|
|
|
<% else %>
|
|
|
|
<%= link_to t('users.settings.account.addons.printers.printer_details'), label_printers_path(), class: 'printer-details' %>
|
|
|
|
<% end %>
|
2021-07-23 19:52:28 +08:00
|
|
|
</div>
|
2021-08-02 21:38:37 +08:00
|
|
|
</div>
|
2021-07-21 19:48:38 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
2017-10-17 19:17:49 +08:00
|
|
|
</div>
|
|
|
|
<div class="tab-pane tab-pane-settings" role="tabpanel"></div>
|
|
|
|
</div>
|