mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 09:42:07 +08:00
UX: Allow enter key to submit test email in admin panel
This commit is contained in:
parent
97dad94bfd
commit
6f9afde9a8
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue
Block a user