Add 'Test mode' switch to the profile dropdown

This commit is contained in:
Alex Turchyn
2024-12-30 23:26:48 +02:00
committed by Pete Matsyburka
parent 616aced4e4
commit 19b5a07bac
8 changed files with 44 additions and 28 deletions
@@ -308,7 +308,7 @@
<%= f.hidden_field :template_id, value: @template.id %>
<div class="flex items-center justify-between">
<span>
<%= t('share_template_with_test_environment') %>
<%= t('share_template_with_test_mode') %>
</span>
<%= f.check_box :value, class: 'toggle', checked: @template.template_sharings.exists?(account_id: current_account.testing_accounts), onchange: 'this.form.requestSubmit()' %>
</div>