* . * 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>
32 lines
1.5 KiB
Text
32 lines
1.5 KiB
Text
<%= form_for(Settings::General.new,
|
|
url: admin_settings_general_settings_path,
|
|
html: { data: {
|
|
action: "submit->config#updateConfigurationSettings",
|
|
testid: "emailForm"
|
|
} }) do |f| %>
|
|
<details class="crayons-card">
|
|
<summary class="crayons-subtitle-2 p-6">Emails</summary>
|
|
<div class="p-6 pt-0">
|
|
<fieldset class="grid gap-4">
|
|
<div class="crayons-field">
|
|
<%= admin_config_label :contact_email %>
|
|
<%= admin_config_description Constants::Settings::General::DETAILS[:contact_email][:description] %>
|
|
<%= f.text_field :contact_email,
|
|
class: "crayons-textfield",
|
|
value: Settings::General.contact_email,
|
|
placeholder: Constants::Settings::General::DETAILS[:contact_email][:placeholder] %>
|
|
</div>
|
|
|
|
<div class="crayons-field">
|
|
<%= admin_config_label :periodic_email_digest %>
|
|
<%= admin_config_description Constants::Settings::General::DETAILS[:periodic_email_digest][:description] %>
|
|
<%= f.number_field :periodic_email_digest,
|
|
class: "crayons-textfield",
|
|
value: Settings::General.periodic_email_digest,
|
|
placeholder: Constants::Settings::General::DETAILS[:periodic_email_digest][:placeholder] %>
|
|
</div>
|
|
</fieldset>
|
|
<%= render "update_setting_button", f: f %>
|
|
</div>
|
|
</details>
|
|
<% end %>
|