mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 09:34:44 +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
38 lines
977 B
Handlebars
38 lines
977 B
Handlebars
<div class="permalink-form">
|
|
<div class="inline-form">
|
|
<label>{{i18n "admin.permalink.form.label"}}</label>
|
|
|
|
<TextField
|
|
@value={{this.url}}
|
|
@disabled={{this.formSubmitted}}
|
|
@class="permalink-url"
|
|
@placeholderKey="admin.permalink.url"
|
|
@autocorrect="off"
|
|
@autocapitalize="off"
|
|
/>
|
|
|
|
<ComboBox
|
|
@content={{this.permalinkTypes}}
|
|
@value={{this.permalinkType}}
|
|
@onChange={{action (mut this.permalinkType)}}
|
|
@class="permalink-type"
|
|
/>
|
|
|
|
<TextField
|
|
@value={{this.permalinkTypeValue}}
|
|
@disabled={{this.formSubmitted}}
|
|
@class="permalink-destination"
|
|
@placeholderKey={{this.permalinkTypePlaceholder}}
|
|
@autocorrect="off"
|
|
@autocapitalize="off"
|
|
@keyDown={{action "submitFormOnEnter"}}
|
|
/>
|
|
|
|
<DButton
|
|
@action={{this.onSubmit}}
|
|
@disabled={{this.formSubmitted}}
|
|
@label="admin.permalink.form.add"
|
|
class="permalink-add"
|
|
/>
|
|
</div>
|
|
</div> |