2021-11-16 17:25:54 +08:00
|
|
|
<div class="permalink-form">
|
|
|
|
<div class="inline-form">
|
|
|
|
<label>{{i18n "admin.permalink.form.label"}}</label>
|
2019-01-22 22:09:21 +08:00
|
|
|
|
2022-07-06 01:41:31 +08:00
|
|
|
<TextField
|
|
|
|
@value={{this.url}}
|
|
|
|
@disabled={{this.formSubmitted}}
|
|
|
|
@class="permalink-url"
|
|
|
|
@placeholderKey="admin.permalink.url"
|
|
|
|
@autocorrect="off"
|
|
|
|
@autocapitalize="off"
|
|
|
|
/>
|
2019-01-22 22:09:21 +08:00
|
|
|
|
2022-07-06 01:41:31 +08:00
|
|
|
<ComboBox
|
|
|
|
@content={{this.permalinkTypes}}
|
|
|
|
@value={{this.permalinkType}}
|
|
|
|
@onChange={{action (mut this.permalinkType)}}
|
|
|
|
@class="permalink-type"
|
|
|
|
/>
|
2019-01-22 22:09:21 +08:00
|
|
|
|
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"}}
|
|
|
|
/>
|
2019-01-22 22:09:21 +08:00
|
|
|
|
2022-11-10 03:23:08 +08:00
|
|
|
<DButton
|
2023-08-31 17:49:35 +08:00
|
|
|
@action={{this.onSubmit}}
|
2022-11-10 03:23:08 +08:00
|
|
|
@disabled={{this.formSubmitted}}
|
|
|
|
@label="admin.permalink.form.add"
|
2023-08-31 17:49:35 +08:00
|
|
|
class="permalink-add"
|
2022-11-10 03:23:08 +08:00
|
|
|
/>
|
2021-11-16 17:25:54 +08:00
|
|
|
</div>
|
2021-09-09 23:01:56 +08:00
|
|
|
</div>
|