mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-08 20:22:53 +03:00
Updated copy for portal signup notice
Refs https://github.com/TryGhost/Team/issues/2897
This commit is contained in:
parent
8571011e7d
commit
bbcc7de31c
@ -141,11 +141,12 @@
|
||||
|
||||
{{#if (feature "makingItRain")}}
|
||||
<GhFormGroup class="gh-stack-item mt5 mb5" @errors={{this.settings.errors}} @hasValidated={{this.settings.hasValidated}}>
|
||||
<label class="modal-fullsettings-title">Notice on signup</label>
|
||||
<label class="modal-fullsettings-title">Display notice at signup</label>
|
||||
<KoenigBasicHtmlInput
|
||||
@name="footer"
|
||||
@html={{this.settings.portalSignupTermsHtml}}
|
||||
@class="miw-100 form-text gh-members-emailsettings-footer-input"
|
||||
@placeholder="By signing up, I agree to receive emails from {{this.config.blogTitle}}."
|
||||
@onChange={{action "setTermsHtml"}}
|
||||
/>
|
||||
<GhErrorMessage @errors={{this.settings.errors}} @property="portalSignupTermsHtml" />
|
||||
|
@ -286,7 +286,7 @@ export default ModalComponent.extend({
|
||||
this.settings.hasValidated.removeObject('portalSignupTermsHtml');
|
||||
|
||||
if (content.length > this.maxTermsLength) {
|
||||
this.settings.errors.add('portalSignupTermsHtml', 'You\'ve exceeded the character limit');
|
||||
this.settings.errors.add('portalSignupTermsHtml', 'Signup notice is too long');
|
||||
this.settings.hasValidated.pushObject('portalSignupTermsHtml');
|
||||
}
|
||||
}
|
||||
|
@ -17,8 +17,10 @@ export function countDownCharacters(params) {
|
||||
|
||||
if (length > maxCharacters) {
|
||||
el.style.color = '#E25440';
|
||||
el.style.fontWeight = 'bold';
|
||||
} else {
|
||||
el.style.color = '#30CF43';
|
||||
el.style.fontWeight = 'bold';
|
||||
}
|
||||
|
||||
el.innerHTML = length;
|
||||
|
@ -107,6 +107,10 @@
|
||||
height: 60px;
|
||||
}
|
||||
|
||||
.gh-portal-settings .gh-members-emailsettings-footer-input .__mobiledoc-editor.__has-no-content:after {
|
||||
line-height: 1.5em
|
||||
}
|
||||
|
||||
.gh-portal-setting-sectionheading {
|
||||
font-size: 1.1rem;
|
||||
font-weight: 600;
|
||||
|
Loading…
Reference in New Issue
Block a user