2021-04-19 15:45:14 +03:00
<button class="close" href title="Close" {{ action "closeModal" }} {{ action ( optional this .noop ) on = "mouseDown" }} >
{{ svg-jar "close" }}
</button>
<form>
<div class="modal-body">
<div class="gh-main-section-block">
<div class="gh-main-section-content gh-member-product-memberdetails">
<GhMemberAvatar
@member= {{ this .member }}
@sizeClass= {{ if this .member .name 'f-subheadline fw4 lh-zero tracked-1' 'f-headline fw4 lh-zero tracked-1' }}
@containerClass="w20 h20 mr4 gh-member-detail-avatar"
/>
<h3> {{ or this .member .name this .member .email }} </h3>
{{ # if ( and this .member .name this .member .email ) }}
<p>
{{ this .member .email }}
</p>
{{ / if }}
</div>
<div class="gh-main-section-content grey gh-member-product-form-block">
2021-04-26 19:28:39 +03:00
<GhFormGroup>
2021-05-06 19:16:56 +03:00
<label for="price" class="fw6">Add subscription</label>
2021-04-26 19:28:39 +03:00
<span class="gh-select">
<OneWaySelect
@options= {{ this .prices }}
@optionValuePath="id"
@optionLabelPath="label"
@update= {{ this .setPrice }}
/>
{{ svg-jar "arrow-down-small" }}
</span>
2021-05-06 18:11:09 +03:00
<p>You can only use zero value prices when adding a product manually. Use <a href="https://dashboard.stripe.com" target="_blank">Stripe Dashboard</a> to add product with non-zero prices.</p>
2021-04-19 15:45:14 +03:00
</GhFormGroup>
</div>
</div>
</div>
</form>
<div class="modal-footer">
<button
class="gh-btn"
{{ action "closeModal" }}
2021-04-26 19:28:39 +03:00
{{!-- disable mouseDown so it does not trigger focus-out validations --}}
2021-04-19 15:45:14 +03:00
{{ action ( optional this .noop ) on = "mouseDown" }}
data-test-button="cancel-webhook"
>
2021-05-06 18:11:09 +03:00
<span> {{ if this .prices .length "Cancel" "OK" }} </span>
2021-04-19 15:45:14 +03:00
</button>
2021-05-06 18:11:09 +03:00
<GhTaskButton @buttonText="Add subscription"
2021-04-19 15:45:14 +03:00
@successText= {{ this .successText }}
2021-04-26 19:28:39 +03:00
@task= {{ this .addPriceTask }}
@disabled= {{ this .cannotAddPrice }}
2021-04-26 21:55:25 +03:00
@class="gh-btn gh-btn-black gh-btn-icon gh-btn-add-memberproduct"
2021-04-19 15:45:14 +03:00
data-test-button="save-webhook" />
</div>