* . * updates * update specs * expand profile field before deleting * expand auth section in rspec test * expand smtp settings summary in rspec * update user experience section specs * more spec tweaks Co-authored-by: Suzanne Aitchison <suzanne@forem.com>
39 lines
2 KiB
Text
39 lines
2 KiB
Text
<%= form_for(Settings::General.new,
|
|
url: admin_settings_general_settings_path,
|
|
html: { data: { action: "submit->config#updateConfigurationSettings" } }) do |f| %>
|
|
<details class="crayons-card">
|
|
<summary class="crayons-subtitle-2 p-6">Monetization</summary>
|
|
<div class="p-6 pt-0">
|
|
<fieldset class="grid gap-4">
|
|
|
|
<div class="crayons-field">
|
|
<%= admin_config_label :stripe_api_key, "Stripe API key" %>
|
|
<%= admin_config_description Constants::Settings::General::DETAILS[:stripe_api_key][:description] %>
|
|
<%= f.text_field :stripe_api_key,
|
|
class: "crayons-textfield",
|
|
value: Settings::General.stripe_api_key,
|
|
placeholder: Constants::Settings::General::DETAILS[:stripe_api_key][:placeholder] %>
|
|
</div>
|
|
|
|
<div class="crayons-field">
|
|
<%= admin_config_label :stripe_publishable_key %>
|
|
<%= admin_config_description Constants::Settings::General::DETAILS[:stripe_publishable_key][:description] %>
|
|
<%= f.text_field :stripe_publishable_key,
|
|
class: "crayons-textfield",
|
|
value: Settings::General.stripe_publishable_key,
|
|
placeholder: Constants::Settings::General::DETAILS[:stripe_publishable_key][:placeholder] %>
|
|
</div>
|
|
|
|
<div class="crayons-field">
|
|
<%= admin_config_label :payment_pointer %>
|
|
<%= admin_config_description Constants::Settings::General::DETAILS[:payment_pointer][:description] %>
|
|
<%= f.text_field :payment_pointer,
|
|
class: "crayons-textfield",
|
|
value: Settings::General.payment_pointer,
|
|
placeholder: Constants::Settings::General::DETAILS[:payment_pointer][:placeholder] %>
|
|
</div>
|
|
</fieldset>
|
|
<%= render "update_setting_button", f: f %>
|
|
</div>
|
|
</details>
|
|
<% end %>
|