2021-09-09 23:01:56 +08:00
|
|
|
<div class="emoji-uploader form-horizontal">
|
|
|
|
<div class="control-group">
|
2020-06-02 14:14:41 +08:00
|
|
|
<span class="label">
|
|
|
|
{{i18n "admin.emoji.name"}}
|
|
|
|
</span>
|
|
|
|
<div class="input">
|
2022-07-06 16:37:54 +08:00
|
|
|
<Input
|
|
|
|
id="emoji-name"
|
|
|
|
name="name"
|
|
|
|
placeholder={{i18n "admin.emoji.name"}}
|
|
|
|
@value={{readonly this.name}}
|
2024-02-28 21:00:53 +08:00
|
|
|
{{on "input" (with-event-value (fn (mut this.name)))}}
|
2022-07-06 16:37:54 +08:00
|
|
|
/>
|
2020-03-31 02:16:10 +08:00
|
|
|
</div>
|
2020-06-02 14:14:41 +08:00
|
|
|
</div>
|
2021-09-09 23:01:56 +08:00
|
|
|
<div class="control-group">
|
2020-06-02 14:14:41 +08:00
|
|
|
<span class="label">
|
|
|
|
{{i18n "admin.emoji.group"}}
|
|
|
|
</span>
|
|
|
|
<div class="input">
|
2022-07-06 01:41:31 +08:00
|
|
|
<ComboBox
|
|
|
|
@name="group"
|
|
|
|
@id="emoji-group-selector"
|
|
|
|
@value={{this.group}}
|
|
|
|
@content={{this.newEmojiGroups}}
|
|
|
|
@onChange={{action "createEmojiGroup"}}
|
|
|
|
@valueProperty={{null}}
|
|
|
|
@nameProperty={{null}}
|
|
|
|
@options={{hash allowAny=true}}
|
2022-06-30 18:30:50 +08:00
|
|
|
/>
|
2020-03-31 02:16:10 +08:00
|
|
|
</div>
|
2020-06-02 14:14:41 +08:00
|
|
|
</div>
|
2021-09-09 23:01:56 +08:00
|
|
|
<div class="control-group">
|
2020-06-02 14:14:41 +08:00
|
|
|
<div class="input">
|
2022-01-17 09:48:49 +08:00
|
|
|
<input
|
2024-10-23 00:07:16 +08:00
|
|
|
{{did-insert this.uppyUpload.setup}}
|
2022-01-17 09:48:49 +08:00
|
|
|
class="hidden-upload-field"
|
2024-10-23 00:07:16 +08:00
|
|
|
disabled={{this.uppyUpload.uploading}}
|
2022-01-17 09:48:49 +08:00
|
|
|
type="file"
|
|
|
|
multiple="true"
|
|
|
|
accept=".png,.gif"
|
2022-07-06 01:41:31 +08:00
|
|
|
/>
|
|
|
|
<DButton
|
|
|
|
@translatedLabel={{this.buttonLabel}}
|
|
|
|
@icon="plus"
|
2023-08-31 17:49:35 +08:00
|
|
|
@action={{this.chooseFiles}}
|
2024-10-23 00:07:16 +08:00
|
|
|
@disabled={{this.uppyUpload.uploading}}
|
2023-08-31 17:49:35 +08:00
|
|
|
class="btn-primary"
|
2022-12-28 20:28:11 +08:00
|
|
|
/>
|
2020-03-31 02:16:10 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-06-02 14:14:41 +08:00
|
|
|
</div>
|