mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 22:29:34 +08:00
f9648de897
Co-Authored-By: Bianca Nenciu <nbianca@users.noreply.github.com> Co-Authored-By: David Taylor <david@taylorhq.com>
23 lines
926 B
Handlebars
23 lines
926 B
Handlebars
{{#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">
|
|
{{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")}}
|
|
</div>
|