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">
|
|
|
|
<input onchange={{action "updateName"}} type="file" id="file-input" accept='*'><br>
|
2017-05-11 02:43:05 +08:00
|
|
|
<span class="description">{{i18n 'admin.customize.theme.upload_file_tip'}}</span><br>
|
|
|
|
<label>{{i18n 'admin.customize.theme.variable_name'}}
|
|
|
|
{{input id="name" value=name}}<br>
|
|
|
|
</label>
|
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>
|
|
|
|
{{/if}}
|
2018-03-08 04:37:22 +08:00
|
|
|
{{/if}}
|
2017-05-10 05:20:28 +08:00
|
|
|
</div>
|
|
|
|
{{/d-modal-body}}
|
|
|
|
|
|
|
|
<div class="modal-footer">
|
2017-05-11 02:43:05 +08:00
|
|
|
{{d-button action="upload" disabled=disabled class='btn btn-primary' icon='upload' label='admin.customize.theme.upload'}}
|
2017-09-14 01:23:19 +08:00
|
|
|
{{d-modal-cancel close=(action "closeModal")}}
|
2017-05-10 05:20:28 +08:00
|
|
|
</div>
|