<%= t(".exchange_rate_description") %>
<%= styled_form_with model: Setting.new, url: settings_hosting_path, method: :patch, data: { controller: "auto-submit-form", "auto-submit-form-trigger-event-value": "change" } do |form| %> <%= form.select :exchange_rate_provider, [ [t(".providers.twelve_data"), "twelve_data"], [t(".providers.yahoo_finance"), "yahoo_finance"] ], { label: t(".exchange_rate_provider_label") }, { value: ENV.fetch("EXCHANGE_RATE_PROVIDER", Setting.exchange_rate_provider), disabled: ENV["EXCHANGE_RATE_PROVIDER"].present?, data: { "auto-submit-form-target": "auto" } } %> <% end %><%= t(".securities_description") %>
<%= styled_form_with model: Setting.new, url: settings_hosting_path, method: :patch, data: { controller: "auto-submit-form" } do |form| %> <% disabled = ENV["SECURITIES_PROVIDERS"].present? || ENV["SECURITIES_PROVIDER"].present? %> <% enabled_providers = Setting.enabled_securities_providers %><%= t(".env_configured_message") %>