UX: Allow enter key to submit test email in admin panel

This commit is contained in:
David Taylor 2019-11-18 15:36:06 +00:00
parent 97dad94bfd
commit 6f9afde9a8

View File

@ -12,20 +12,23 @@
{{/each}}
</table>
<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"}}
<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>
<div class='controls'>
{{d-button
class="btn-primary"
action=(action "sendTestEmail")
disabled=sendTestEmailDisabled
label="admin.email.send_test"}}
{{#if sentTestEmailMessage}}<span class='result-message'>{{sentTestEmailMessage}}</span>{{/if}}
</div>
{{/if}}
</div>
</form>