2022-06-30 06:30:50 -04:00
|
|
|
<DModalBody @class="add-upload-modal" @title="admin.customize.theme.add_upload">
|
2017-05-09 17:20:28 -04:00
|
|
|
<div class="inputs">
|
2018-11-21 16:50:49 -05: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 04:37:54 -04:00
|
|
|
<Input id="theme-variable-name" @value={{this.name}} />
|
2018-11-21 16:50:49 -05:00
|
|
|
</section>
|
2022-07-05 13:41:31 -04:00
|
|
|
{{#if this.fileSelected}}
|
|
|
|
{{#if this.errorMessage}}
|
|
|
|
<span class="alert alert-error">{{this.errorMessage}}</span>
|
2018-03-07 15:37:22 -05:00
|
|
|
{{/if}}
|
2020-04-13 11:17:20 -04:00
|
|
|
{{/if}}
|
2017-05-09 17:20:28 -04:00
|
|
|
</div>
|
2022-06-30 06:30:50 -04:00
|
|
|
</DModalBody>
|
2017-05-09 17:20:28 -04:00
|
|
|
|
|
|
|
<div class="modal-footer">
|
2022-07-05 13:41:31 -04:00
|
|
|
<DButton @action={{action "upload"}} @disabled={{this.disabled}} @class="btn btn-primary" @icon="upload" @label="admin.customize.theme.upload" />
|
2022-06-30 06:30:50 -04:00
|
|
|
<DModalCancel @close={{route-action "closeModal"}} />
|
2017-05-09 17:20:28 -04:00
|
|
|
</div>
|