2020-04-14 02:18:49 -04:00
|
|
|
{{#d-modal-body class="add-upload-modal" title="admin.customize.theme.add_upload"}}
|
2020-04-13 11:17:20 -04:00
|
|
|
<div class="inputs">
|
|
|
|
<section class="field">
|
2020-04-14 02:18:49 -04:00
|
|
|
<input onchange={{action "updateName"}} type="file" id="file-input" accept="*">
|
|
|
|
<label for="file-input">{{i18n "admin.customize.theme.upload_file_tip"}}</label>
|
2020-04-13 11:17:20 -04:00
|
|
|
</section>
|
|
|
|
<section class="field">
|
2020-04-14 02:18:49 -04:00
|
|
|
<label for="theme-variable-name">{{i18n "admin.customize.theme.variable_name"}}</label>
|
2018-11-21 16:50:49 -05:00
|
|
|
{{input id="theme-variable-name" value=name}}
|
2020-04-13 11:17:20 -04:00
|
|
|
</section>
|
|
|
|
{{#if fileSelected}}
|
|
|
|
{{#if errorMessage}}
|
|
|
|
<span class="alert alert-error">{{errorMessage}}</span>
|
2018-03-07 15:37:22 -05:00
|
|
|
{{/if}}
|
2020-04-13 11:17:20 -04:00
|
|
|
{{/if}}
|
|
|
|
</div>
|
2017-05-09 17:20:28 -04:00
|
|
|
{{/d-modal-body}}
|
|
|
|
|
|
|
|
<div class="modal-footer">
|
2020-04-14 02:18:49 -04:00
|
|
|
{{d-button action=(action "upload") disabled=disabled class="btn btn-primary" icon="upload" label="admin.customize.theme.upload"}}
|
2019-01-10 05:06:01 -05:00
|
|
|
{{d-modal-cancel close=(route-action "closeModal")}}
|
2017-05-09 17:20:28 -04:00
|
|
|
</div>
|