2024-01-20 23:53:14 +02:00
|
|
|
<% if can?(:manage, EncryptedConfig) || (current_user != true_user && current_account.testing?) %>
|
2026-04-27 12:13:53 +03:00
|
|
|
<%= form_for '', url: testing_account_path, method: current_account.testing? ? :delete : :post, html: { class: 'flex' } do |f| %>
|
2024-09-23 15:22:07 +03:00
|
|
|
<label class="flex items-center justify-between" for="testing_toggle">
|
2024-01-20 23:53:14 +02:00
|
|
|
<span class="mr-2 text-lg">
|
2024-12-30 23:26:48 +02:00
|
|
|
<%= t('test_mode') %>
|
2024-01-20 23:53:14 +02:00
|
|
|
</span>
|
2025-09-24 12:07:54 +03:00
|
|
|
<submit-form data-on="change" class="flex">
|
|
|
|
|
<%= f.check_box :testing_toggle, class: 'toggle', checked: current_account.testing? %>
|
|
|
|
|
</submit-form>
|
2024-01-20 23:53:14 +02:00
|
|
|
</label>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% end %>
|