discourse/app/assets/javascripts/admin/addon/templates/email-index.hbs
Jarek Radosz 1c87bb7fe9
DEV: Update DButton uses (#23333)
1. Use `this.` instead of `{{action}}` where applicable
2. Use `{{fn}}` instead of `@actionParam` where applicable
3. Use non-`@` versions of class/type/tabindex/aria-controls/aria-expanded
4. Remove `btn` class (it's added automatically to all DButtons)
5. Remove `type="button"` (it's the default)
6. Use `concat-class` helper
2023-08-31 11:49:35 +02:00

42 lines
1.1 KiB
Handlebars

<table class="table">
<tbody>
<tr>
<th>{{i18n "admin.email.delivery_method"}}</th>
<td>{{this.delivery_method}}</td>
</tr>
{{#each this.model.settings as |s|}}
<tr>
<th style="width: 25%">{{s.name}}</th>
<td>{{s.value}}</td>
</tr>
{{/each}}
</tbody>
</table>
<form>
<div class="admin-controls">
<div class="controls">
<div class="inline-form">
{{#if this.sendingEmail}}
{{i18n "admin.email.sending_test"}}
{{else}}
<TextField
@value={{this.testEmailAddress}}
@placeholderKey="admin.email.test_email_address"
/>
<DButton
@action={{this.sendTestEmail}}
@disabled={{this.sendTestEmailDisabled}}
@label="admin.email.send_test"
type="submit"
class="btn-primary"
/>
{{#if this.sentTestEmailMessage}}
<span class="result-message">{{this.sentTestEmailMessage}}</span>
{{/if}}
{{/if}}
</div>
</div>
</div>
</form>