mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 04:43:43 +08:00
11067c73d0
One step closer to removing all `action` helper usage
38 lines
966 B
Handlebars
38 lines
966 B
Handlebars
<div class="permalink-form">
|
|
<div class="inline-form">
|
|
<label>{{i18n "admin.permalink.form.label"}}</label>
|
|
|
|
<TextField
|
|
@value={{this.url}}
|
|
@disabled={{this.formSubmitted}}
|
|
@placeholderKey="admin.permalink.url"
|
|
@autocorrect="off"
|
|
@autocapitalize="off"
|
|
class="permalink-url"
|
|
/>
|
|
|
|
<ComboBox
|
|
@content={{this.permalinkTypes}}
|
|
@value={{this.permalinkType}}
|
|
@onChange={{fn (mut this.permalinkType)}}
|
|
class="permalink-type"
|
|
/>
|
|
|
|
<TextField
|
|
@value={{this.permalinkTypeValue}}
|
|
@disabled={{this.formSubmitted}}
|
|
@placeholderKey={{this.permalinkTypePlaceholder}}
|
|
@autocorrect="off"
|
|
@autocapitalize="off"
|
|
@keyDown={{this.submitFormOnEnter}}
|
|
class="permalink-destination"
|
|
/>
|
|
|
|
<DButton
|
|
@action={{this.onSubmit}}
|
|
@disabled={{this.formSubmitted}}
|
|
@label="admin.permalink.form.add"
|
|
class="permalink-add"
|
|
/>
|
|
</div>
|
|
</div> |