mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-04 17:04:59 +03:00
267889993f
refs https://github.com/TryGhost/Team/issues/1084 - updates shareable offer link UI to to open directly instead of route - calculates offer url from code and updates in link modal - wires copy button on link modal - removes route based link code for modal
27 lines
926 B
Handlebars
27 lines
926 B
Handlebars
<div class="modal-content">
|
|
<header class="modal-header">
|
|
<h1>Offer link</h1>
|
|
</header>
|
|
<button type="button" class="close" title="Close" {{on "click" @close}}>{{svg-jar "close"}}<span class="hidden">Close</span></button>
|
|
|
|
<div class="modal-body">
|
|
<p>
|
|
You can share this link with your members via email or social media. This discount will be applied at checkout when members use this link.
|
|
</p>
|
|
<div class="gh-input-group">
|
|
<GhTextInput
|
|
@name="url"
|
|
@value={{this.offerUrl}}
|
|
@id="url"
|
|
@disabled="disabled"
|
|
@class="gh-input" />
|
|
|
|
<GhTaskButton
|
|
@buttonText="Copy link"
|
|
@task={{this.copyOfferUrl}}
|
|
@successText="Link copied"
|
|
@class="gh-btn gh-btn-black gh-btn-icon" />
|
|
</div>
|
|
</div>
|
|
</div>
|