2017-05-11 02:43:05 +08:00
|
|
|
{{#d-modal-body 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>
|
|
|
|
{{input id="theme-variable-name" value=name}}
|
|
|
|
</section>
|
2018-03-08 04:37:22 +08:00
|
|
|
{{#if fileSelected}}
|
2018-05-09 17:54:43 +08:00
|
|
|
{{#if errorMessage}}
|
|
|
|
<span class="alert alert-error">{{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>
|
|
|
|
{{/d-modal-body}}
|
|
|
|
|
|
|
|
<div class="modal-footer">
|
2019-01-10 18:06:01 +08:00
|
|
|
{{d-button action=(action "upload") disabled=disabled class="btn btn-primary" icon="upload" label="admin.customize.theme.upload"}}
|
|
|
|
{{d-modal-cancel close=(route-action "closeModal")}}
|
2017-05-10 05:20:28 +08:00
|
|
|
</div>
|