Moved the welcome page URL field to the first section

refs https://github.com/TryGhost/Team/issues/1168
This commit is contained in:
Djordje Vlaisavljevic 2022-01-31 15:53:01 +01:00
parent c9aa43e5a5
commit 0f718c5a99

View File

@ -47,6 +47,22 @@
{{/if}}
<GhErrorMessage @errors={{this.errors}} @property="description" />
</GhFormGroup>
<GhFormGroup>
<label for="welcomePage" class="fw6">Welcome page</label>
<GhUrlInput
@id="welcomePage"
@value={{readonly this.model.product.welcomePageURL}}
@baseUrl={{readonly this.siteUrl}}
@setResult={{this.setWelcomePageURL}}
@validateUrl={{this.validateWelcomePageURL}}
@placeholder={{readonly this.siteUrl}}
/>
{{#if (not this.isFreeProduct)}}
<p>Redirect to this URL after signup for premium membership</p>
{{else}}
<p>Redirect to this URL after signup for a free membership</p>
{{/if}}
</GhFormGroup>
{{#if (not this.isFreeProduct)}}
<GhFormGroup @errors={{this.settings.errors}} @hasValidated={{this.settings.hasValidated}} @property="prices">
<div class="gh-settings-members-pricelabelcont">
@ -134,21 +150,6 @@
</form>
</div>
</div>
<h4 class="gh-main-section-header small bn">Advanced</h4>
<div class="gh-main-section-content grey gh-product-priceform-block">
<GhFormGroup>
<label for="welcomePage" class="fw6">Welcome page</label>
<GhUrlInput
@id="welcomePage"
@value={{readonly this.model.product.welcomePageURL}}
@baseUrl={{readonly this.siteUrl}}
@setResult={{this.setWelcomePageURL}}
@validateUrl={{this.validateWelcomePageURL}}
@placeholder={{readonly this.siteUrl}}
/>
<p>Redirect to this URL after signup for premium membership</p>
</GhFormGroup>
</div>
</div>
<div class="gh-main-section-block gh-product-form-tierpreview">
<div class="gh-product-form-tierpreview-content">