discourse/app/assets/javascripts/admin/templates/email-index.hbs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
932 B
Handlebars
Raw Normal View History

<table class="table">
<tr>
<th>{{i18n 'admin.email.delivery_method'}}</th>
2014-12-13 02:28:20 +08:00
<td>{{delivery_method}}</td>
</tr>
{{#each model.settings as |s|}}
<tr>
2014-12-13 02:28:20 +08:00
<th style='width: 25%'>{{s.name}}</th>
<td>{{s.value}}</td>
</tr>
{{/each}}
</table>
<form>
<div class='admin-controls'>
{{#if sendingEmail}}
<div class='span15 controls'>{{i18n 'admin.email.sending_test'}}</div>
{{else}}
<div class='controls'>
{{text-field value=testEmailAddress placeholderKey="admin.email.test_email_address"}}
</div>
<div class='controls'>
{{d-button
class="btn-primary"
action=(action "sendTestEmail")
disabled=sendTestEmailDisabled
label="admin.email.send_test"
type="submit"}}
{{#if sentTestEmailMessage}}<span class='result-message'>{{sentTestEmailMessage}}</span>{{/if}}
</div>
{{/if}}
</div>
</form>