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