2014-12-08 16:35:49 -05:00
|
|
|
<p>{{i18n 'admin.email.preview_digest_desc'}}</p>
|
2013-06-11 12:27:11 -04:00
|
|
|
|
2017-06-28 15:36:34 -04:00
|
|
|
<div class='admin-controls email-preview'>
|
2013-06-03 16:12:24 -04:00
|
|
|
<div class='span7 controls'>
|
2014-12-08 16:35:49 -05:00
|
|
|
<label for='last-seen'>{{i18n 'admin.email.last_seen_user'}}</label>
|
2016-04-15 11:58:32 -04:00
|
|
|
{{date-picker-past value=lastSeen id="last-seen"}}
|
2015-10-30 14:05:54 -04:00
|
|
|
<label>{{i18n 'admin.email.user'}}:</label>
|
2020-02-11 14:20:12 -05:00
|
|
|
{{user-selector single="true" usernames=username canReceiveUpdates=true}}
|
2019-11-04 05:23:54 -05:00
|
|
|
{{d-button
|
|
|
|
class="btn-primary digest-refresh-button"
|
|
|
|
action=(action "refresh")
|
|
|
|
label="admin.email.refresh"}}
|
2015-08-16 05:51:31 -04:00
|
|
|
<div class="toggle">
|
|
|
|
<label>{{i18n 'admin.email.format'}}</label>
|
|
|
|
{{#if showHtml}}
|
2019-08-01 02:37:42 -04:00
|
|
|
<span>{{i18n 'admin.email.html'}}</span> | <a href
|
|
|
|
{{action "toggleShowHtml"}}>{{i18n 'admin.email.text'}}</a>
|
2015-08-16 05:51:31 -04:00
|
|
|
{{else}}
|
2019-08-01 02:37:42 -04:00
|
|
|
<a href {{action "toggleShowHtml"}}>{{i18n 'admin.email.html'}}</a> |
|
|
|
|
<span>{{i18n 'admin.email.text'}}</span>
|
2015-08-16 05:51:31 -04:00
|
|
|
{{/if}}
|
|
|
|
</div>
|
2013-06-03 16:12:24 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2015-04-28 17:05:06 -04:00
|
|
|
{{#conditional-loading-spinner condition=loading}}
|
2016-11-23 17:46:57 -05:00
|
|
|
|
2019-08-01 02:37:42 -04:00
|
|
|
<div class="email-preview-digest">
|
|
|
|
{{#if showSendEmailForm}}
|
|
|
|
<div class="controls">
|
|
|
|
{{#if sendingEmail}}
|
|
|
|
{{i18n 'admin.email.sending_test'}}
|
|
|
|
{{else}}
|
|
|
|
<label>{{i18n 'admin.email.send_digest_label'}}</label>
|
|
|
|
{{text-field value=email placeholderKey="admin.email.test_email_address"}}
|
2019-11-04 05:23:54 -05:00
|
|
|
{{d-button
|
|
|
|
class="btn-default"
|
|
|
|
action=(action "sendEmail")
|
|
|
|
disabled=sendEmailDisabled
|
|
|
|
label="admin.email.send_digest"}}
|
2019-08-01 02:37:42 -04:00
|
|
|
{{#if sentEmail}}
|
|
|
|
<span class='result-message'>{{i18n 'admin.email.sent_test'}}</span>
|
|
|
|
{{/if}}
|
2016-11-23 17:46:57 -05:00
|
|
|
{{/if}}
|
2019-08-01 02:37:42 -04:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
2016-11-23 17:46:57 -05:00
|
|
|
|
2019-08-01 02:37:42 -04:00
|
|
|
<div class="preview-output">
|
|
|
|
{{#if showHtml}}
|
|
|
|
{{#if htmlEmpty}}
|
|
|
|
<p>{{i18n 'admin.email.no_result'}}</p>
|
|
|
|
{{else}}
|
|
|
|
<iframe srcdoc={{model.html_content}} />
|
|
|
|
{{/if}}
|
2016-11-24 15:38:22 -05:00
|
|
|
{{else}}
|
2019-08-01 02:37:42 -04:00
|
|
|
<pre>{{{model.text_content}}}</pre>
|
2016-11-24 15:38:22 -05:00
|
|
|
{{/if}}
|
2019-08-01 02:37:42 -04:00
|
|
|
</div>
|
2016-11-24 15:38:22 -05:00
|
|
|
</div>
|
|
|
|
|
2019-11-04 05:23:54 -05:00
|
|
|
{{/conditional-loading-spinner}}
|