feat: add marketing email option on registration (#29397)

This commit is contained in:
Zainab Amir
2021-12-07 17:16:28 +05:00
committed by GitHub
parent 5f77890c58
commit acf5add774
8 changed files with 50 additions and 2 deletions

View File

@@ -86,7 +86,7 @@
html.push(HtmlUtils.template(fieldTpl)($.extend(fields[i], {
form: this.formType,
requiredStr: this.requiredStr,
optionalStr: this.optionalStr,
optionalStr: fields[i].name === 'marketing_emails_opt_in' ? '' : this.optionalStr,
supplementalText: fields[i].supplementalText || '',
supplementalLink: fields[i].supplementalLink || ''
})));

View File

@@ -320,6 +320,12 @@ ul.fa-ul{
width: calc(50% - 10px);
}
&.checkbox-marketing_emails_opt_in {
.label-text {
font-size: small !important;
}
}
.label-text-small {
font-size: small;
}

View File

@@ -101,6 +101,7 @@
<% if ( restrictions.max_length && type !== 'password' ) { %> maxlength="<%- restrictions.max_length %>"<% } %>
<% if ( restrictions.readonly ) { %> readonly <% } %>
<% if ( required ) { %> required<% } %>
<% if ( defaultValue === true ) { %> checked<% } %>
<% if ( typeof errorMessages !== 'undefined' ) {
_.each(errorMessages, function( msg, type ) {%>
data-errormsg-<%- type %>="<%- msg %>"