2021-02-08 15:14:46 +03:00
|
|
|
<div class="gh-post-preview-email-container">
|
|
|
|
<div class="gh-post-preview-email-mockup">
|
2021-01-28 16:57:14 +03:00
|
|
|
<div class="gh-pe-emailclient-sender">
|
|
|
|
<p>
|
2021-06-11 18:42:27 +03:00
|
|
|
<span class="strong">{{this.config.blogTitle}}</span> <{{full-email-address this.settings.membersFromAddress}}>
|
2021-01-28 16:57:14 +03:00
|
|
|
</p>
|
|
|
|
<p><span class="dark">To:</span> Jamie Larson <jamie@example.com></p>
|
2021-01-22 12:24:33 +03:00
|
|
|
</div>
|
2021-06-08 12:36:01 +03:00
|
|
|
<iframe class="gh-pe-iframe" {{did-insert this.renderEmailPreview}} sandbox="allow-same-origin allow-popups"></iframe>
|
2021-01-22 12:24:33 +03:00
|
|
|
</div>
|
2021-01-27 01:49:05 +03:00
|
|
|
</div>
|
2021-01-28 16:57:14 +03:00
|
|
|
<div class="gh-post-preview-email-footer">
|
2021-02-08 21:20:38 +03:00
|
|
|
<span class="mr3 nowrap fw6 f8 darkgrey">Send a test newsletter</span>
|
|
|
|
|
2021-07-08 16:37:31 +03:00
|
|
|
<div class="gh-post-preview-email-input {{if this.sendPreviewEmailError "error"}}">
|
2021-01-27 01:49:05 +03:00
|
|
|
<Input
|
|
|
|
@value={{this.previewEmailAddress}}
|
2021-02-08 21:20:38 +03:00
|
|
|
class="gh-input gh-post-preview-email-input"
|
2021-01-27 01:49:05 +03:00
|
|
|
placeholder="you@yoursite.com"
|
2021-02-08 13:54:42 +03:00
|
|
|
aria-invalid={{if this.sendPreviewEmailError "true"}}
|
|
|
|
aria-describedby={{if this.sendPreviewEmailError "sendError"}}
|
2021-01-27 01:49:05 +03:00
|
|
|
{{on-key "Enter" (perform this.sendPreviewEmailTask)}}
|
|
|
|
/>
|
2021-02-08 21:20:38 +03:00
|
|
|
{{#if this.sendPreviewEmailError}}
|
|
|
|
<div class="error fixed nowrap f8 lh-heading"><span class="response" id="sendError">{{this.sendPreviewEmailError}}</span></div>
|
|
|
|
{{/if}}
|
2021-01-27 01:49:05 +03:00
|
|
|
</div>
|
|
|
|
<GhTaskButton
|
|
|
|
@task={{this.sendPreviewEmailTask}}
|
|
|
|
@buttonText="Send"
|
|
|
|
@successText="Sent"
|
|
|
|
@runningText="Sending..."
|
2021-02-08 21:20:38 +03:00
|
|
|
@class="gh-btn gh-btn-green gh-btn-icon gh-post-preview-email-trigger"
|
2021-01-27 01:49:05 +03:00
|
|
|
/>
|
2021-01-22 12:24:33 +03:00
|
|
|
</div>
|