-
- <% options.each_with_index do |(label, value), index| %>
-
- <%= radio_button_tag 'option', value, value == 'general', class: 'peer hidden', data: { action: 'change:toggle-visible#trigger' } %>
-
-
- <% end %>
-
-
+ <% show_api = Docuseal.multitenant? || current_account.testing? || !current_account.linked_account_account %>
+ <% options = [%w[General general]] %>
+ <% options << ['API and Embedding', 'api'] if show_api %>
+ <% if options.size > 1 %>
+
+
+ <% options.each_with_index do |(label, value), index| %>
+
+ <%= radio_button_tag 'option', value, value == 'general', class: 'peer hidden', data: { action: 'change:toggle-visible#trigger' } %>
+
+
+ <% end %>
+
+
+ <% end %>
<%= form_for @template, url: template_preferences_path(@template), method: :post, html: { autocomplete: 'off', class: 'mt-1' } do |f| %>
@@ -62,39 +66,41 @@
<% end %>
<%= render 'templates_code_modal/preferences' %>
-