discourse/app/assets/javascripts/admin/templates/modal/admin-add-upload.hbs

23 lines
911 B
Handlebars
Raw Normal View History

2017-05-10 14:43:05 -04:00
{{#d-modal-body class='add-upload-modal' title="admin.customize.theme.add_upload"}}
<div class="inputs">
<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>
{{#if fileSelected}}
{{#if errorMessage}}
<span class="alert alert-error">{{errorMessage}}</span>
{{/if}}
{{/if}}
</div>
{{/d-modal-body}}
<div class="modal-footer">
2017-05-10 14:43:05 -04:00
{{d-button action="upload" disabled=disabled class='btn btn-primary' icon='upload' label='admin.customize.theme.upload'}}
{{d-modal-cancel close=(action "closeModal")}}
</div>