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