mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 17:45:22 +08:00
1c87bb7fe9
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
23 lines
551 B
Handlebars
23 lines
551 B
Handlebars
<label>{{i18n "admin.logs.screened_ips.form.label"}}</label>
|
|
<TextField
|
|
@value={{this.ip_address}}
|
|
@disabled={{this.formSubmitted}}
|
|
@class="ip-address-input"
|
|
@placeholderKey="admin.logs.screened_ips.form.ip_address"
|
|
@autocorrect="off"
|
|
@autocapitalize="off"
|
|
/>
|
|
|
|
<ComboBox
|
|
@content={{this.actionNames}}
|
|
@value={{this.actionName}}
|
|
@onChange={{action (mut this.actionName)}}
|
|
/>
|
|
|
|
<DButton
|
|
@action={{this.submitForm}}
|
|
@disabled={{this.formSubmitted}}
|
|
@label="admin.logs.screened_ips.form.add"
|
|
type="submit"
|
|
class="btn-default"
|
|
/> |