Add Mailchimp API Key to Site Config Form (#10995)
* Add Mailchimp API key to config show page * Update description for newsletter id
This commit is contained in:
parent
35648a696c
commit
60b18d1a80
2 changed files with 11 additions and 2 deletions
|
|
@ -12,7 +12,8 @@ module Constants
|
|||
placeholder: ""
|
||||
},
|
||||
require_captcha_for_email_password_registration: {
|
||||
description: "People will be required to fill out a captcha when they're creating a new account in your community",
|
||||
description: "People will be required to fill out a captcha when
|
||||
they're creating a new account in your community",
|
||||
placeholder: ""
|
||||
},
|
||||
authentication_providers: {
|
||||
|
|
@ -173,7 +174,7 @@ module Constants
|
|||
placeholder: ""
|
||||
},
|
||||
mailchimp_newsletter_id: {
|
||||
description: "Main Newsletter ID",
|
||||
description: "Main Newsletter ID, also known as Audience ID",
|
||||
placeholder: ""
|
||||
},
|
||||
mailchimp_sustaining_members_id: {
|
||||
|
|
|
|||
|
|
@ -979,6 +979,14 @@
|
|||
} %>
|
||||
<div id="newsletterBodyContainer" class="card-body collapse hide" aria-labelledby="newsletterBodyContainer">
|
||||
<fieldset class="flex flex-column gap-4">
|
||||
<div class="crayons-field">
|
||||
<%= admin_config_label :mailchimp_api_key, "Mailchimp API Key" %>
|
||||
<%= admin_config_description Constants::SiteConfig::DETAILS[:mailchimp_api_key][:description] %>
|
||||
<%= f.text_field :mailchimp_api_key,
|
||||
class: "crayons-textfield",
|
||||
value: SiteConfig.mailchimp_api_key %>
|
||||
</div>
|
||||
|
||||
<div class="crayons-field">
|
||||
<%= admin_config_label :mailchimp_newsletter_id, "Main Newsletter" %>
|
||||
<%= admin_config_description Constants::SiteConfig::DETAILS[:mailchimp_newsletter_id][:description] %>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue