0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

Product price cleanup

- removed bottom block (welcome page and stripe checkout link) from price modal
This commit is contained in:
Peter Zimon 2021-05-05 15:09:01 +02:00
parent 1d660218ae
commit 6cf86f431b
2 changed files with 1 additions and 35 deletions

View file

@ -8,7 +8,6 @@
<form>
<div class="modal-body">
<div class="gh-main-section-block">
<h4 class="gh-main-section-header small bn">Pricing</h4>
<div class="gh-main-section-content grey gh-product-priceform-block">
<GhFormGroup @errors={{this.price.errors}} @hasValidated={{this.price.hasValidated}} @property="name">
<label for="name" class="fw6">Name</label>
@ -40,7 +39,6 @@
@disabled={{this.isExistingPrice}}
@input={{action "setAmount" value="target.value"}}
/>
{{!-- <span class="gh-input-append"><span class="ttu">{{capitalize (or this.currencyVal "usd")}} </span>/{{or this.periodVal "month"}}</span> --}}
</div>
<GhErrorMessage @errors={{this.price.errors}} @property="price" />
</GhFormGroup>
@ -69,30 +67,6 @@
/>
</GhFormGroup>
</div>
<h4 class="gh-main-section-header small bn">Advanced</h4>
<div class="gh-main-section-content grey gh-product-priceform-block">
<GhFormGroup @errors={{this.price.errors}} @hasValidated={{this.price.hasValidated}} @property="welcome-page">
<label for="welcome-page" class="fw6">Welcome page</label>
<GhTextInput
@value=''
@name="welcome-page"
@id="welcome-page"
@class="gh-input" />
<p>Redirect to this URL after signing up with this price</p>
<GhErrorMessage @errors={{this.price.errors}} @property="welcome-page" />
</GhFormGroup>
<GhFormGroup @errors={{this.price.errors}} @hasValidated={{this.price.hasValidated}} @property="stripe-url">
<label for="stripe-url" class="fw6">Stripe Checkout URL</label>
<GhTextInput
@value='https://example.com/checkout'
@name="stripe-url"
@id="stripe-url"
@disabled={{true}}
@class="gh-input" />
<GhErrorMessage @errors={{this.price.errors}} @property="stripe-url" />
</GhFormGroup>
</div>
</div>
</div>
</form>

View file

@ -120,14 +120,6 @@
</div>
{{#if this.showPriceModal}}
{{!-- <GhFullscreenModal @modifier="action wide member-product">
<ModalProductPrice
@model={{hash
price=this.priceModel
}}
@confirm={{action "savePrice"}}
@closeModal={{this.closePriceModal}} />
</GhFullscreenModal> --}}
<GhFullscreenModal
@modal="product-price"
@model={{hash
@ -135,7 +127,7 @@
}}
@confirm={{action "savePrice"}}
@close={{this.closePriceModal}}
@modifier="action wide body-scrolling product-ssprice" />
@modifier="action wide product-ssprice" />
{{/if}}
{{#if this.showUnsavedChangesModal}}