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}}
|
|
|
|
@placeholderKey="admin.permalink.url"
|
|
|
|
@autocorrect="off"
|
|
|
|
@autocapitalize="off"
|
2023-12-12 20:09:05 +08:00
|
|
|
class="permalink-url"
|
2022-07-06 01:41:31 +08:00
|
|
|
/>
|
2019-01-22 22:09:21 +08:00
|
|
|
|
2022-07-06 01:41:31 +08:00
|
|
|
<ComboBox
|
|
|
|
@content={{this.permalinkTypes}}
|
|
|
|
@value={{this.permalinkType}}
|
2024-03-07 01:05:03 +08:00
|
|
|
@onChange={{fn (mut this.permalinkType)}}
|
2023-12-12 20:09:05 +08:00
|
|
|
class="permalink-type"
|
2022-07-06 01:41:31 +08:00
|
|
|
/>
|
2019-01-22 22:09:21 +08:00
|
|
|
|
2022-11-10 03:23:08 +08:00
|
|
|
<TextField
|
|
|
|
@value={{this.permalinkTypeValue}}
|
|
|
|
@disabled={{this.formSubmitted}}
|
|
|
|
@placeholderKey={{this.permalinkTypePlaceholder}}
|
|
|
|
@autocorrect="off"
|
|
|
|
@autocapitalize="off"
|
2023-11-13 20:29:20 +08:00
|
|
|
@keyDown={{this.submitFormOnEnter}}
|
2023-12-12 20:09:05 +08:00
|
|
|
class="permalink-destination"
|
2022-11-10 03:23:08 +08:00
|
|
|
/>
|
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>
|