discourse/app/assets/javascripts/admin/addon/components/permalink-form.hbs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
966 B
Handlebars
Raw Normal View History

<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"
/>
2022-11-10 03:23:08 +08:00
<TextField
@value={{this.permalinkTypeValue}}
@disabled={{this.formSubmitted}}
@placeholderKey={{this.permalinkTypePlaceholder}}
@autocorrect="off"
@autocapitalize="off"
@keyDown={{this.submitFormOnEnter}}
class="permalink-destination"
2022-11-10 03:23:08 +08:00
/>
2022-11-10 03:23:08 +08:00
<DButton
@action={{this.onSubmit}}
2022-11-10 03:23:08 +08:00
@disabled={{this.formSubmitted}}
@label="admin.permalink.form.add"
class="permalink-add"
2022-11-10 03:23:08 +08:00
/>
</div>
</div>