2022-06-30 18:30:50 +08:00
|
|
|
<DModalBody @class="add-upload-modal" @title="admin.customize.theme.add_upload">
|
2017-05-10 05:20:28 +08:00
|
|
|
<div class="inputs">
|
2018-11-22 05:50:49 +08:00
|
|
|
<section class="field">
|
|
|
|
<input onchange={{action "updateName"}} type="file" id="file-input" accept="*">
|
|
|
|
<label for="file-input">{{i18n "admin.customize.theme.upload_file_tip"}}</label>
|
|
|
|
</section>
|
|
|
|
<section class="field">
|
|
|
|
<label for="theme-variable-name">{{i18n "admin.customize.theme.variable_name"}}</label>
|
2022-07-06 16:37:54 +08:00
|
|
|
<Input id="theme-variable-name" @value={{this.name}} />
|
2018-11-22 05:50:49 +08:00
|
|
|
</section>
|
2022-07-06 01:41:31 +08:00
|
|
|
{{#if this.fileSelected}}
|
|
|
|
{{#if this.errorMessage}}
|
|
|
|
<span class="alert alert-error">{{this.errorMessage}}</span>
|
2018-03-08 04:37:22 +08:00
|
|
|
{{/if}}
|
2020-04-13 23:17:20 +08:00
|
|
|
{{/if}}
|
2017-05-10 05:20:28 +08:00
|
|
|
</div>
|
2022-06-30 18:30:50 +08:00
|
|
|
</DModalBody>
|
2017-05-10 05:20:28 +08:00
|
|
|
|
|
|
|
<div class="modal-footer">
|
2022-07-06 01:41:31 +08:00
|
|
|
<DButton @action={{action "upload"}} @disabled={{this.disabled}} @class="btn btn-primary" @icon="upload" @label="admin.customize.theme.upload" />
|
2022-06-30 18:30:50 +08:00
|
|
|
<DModalCancel @close={{route-action "closeModal"}} />
|
2017-05-10 05:20:28 +08:00
|
|
|
</div>
|