2021-01-28 16:57:14 +03:00
|
|
|
<div class="modal-body modal-preview-email-content gh-pe-desktop-container h-auto overflow-auto">
|
|
|
|
<div class="gh-pe-emailclient-mockup">
|
|
|
|
<div class="gh-pe-emailclient-sender">
|
|
|
|
<p>
|
|
|
|
<span class="strong">{{this.config.blogTitle}}</span> <{{this.settings.membersFromAddress}}>
|
|
|
|
</p>
|
|
|
|
<p><span class="dark">To:</span> Jamie Larson <jamie@example.com></p>
|
2021-01-22 12:24:33 +03:00
|
|
|
</div>
|
2021-01-28 16:57:14 +03:00
|
|
|
<iframe class="gh-pe-iframe" {{did-insert this.renderEmailPreview}} sandbox="allow-same-origin"></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">
|
|
|
|
<span class="mr3 flex-grow-1 nowrap fw6 f8 darkgrey">Send a preview newsletter</span>
|
2021-01-27 01:49:05 +03:00
|
|
|
<div class="mr3 truncate midlightgrey">
|
|
|
|
<Input
|
|
|
|
@value={{this.previewEmailAddress}}
|
|
|
|
class="gh-input"
|
|
|
|
placeholder="you@yoursite.com"
|
|
|
|
{{on-key "Enter" (perform this.sendPreviewEmailTask)}}
|
|
|
|
/>
|
|
|
|
|
|
|
|
{{#if this.sendPreviewEmailError}}
|
|
|
|
<div class="error"><p class="response">{{this.sendPreviewEmailError}}</p></div>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
<GhTaskButton
|
|
|
|
@task={{this.sendPreviewEmailTask}}
|
|
|
|
@buttonText="Send"
|
|
|
|
@successText="Sent"
|
|
|
|
@runningText="Sending..."
|
|
|
|
@class="gh-btn gh-btn-green gh-btn-icon"
|
|
|
|
/>
|
2021-01-22 12:24:33 +03:00
|
|
|
</div>
|