This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse/templates/modal/upload_selector.js.handlebars
Régis Hanol 36e6345eee change the icon in the composer toolbar with a more generic upload icon
also changed all references to "images uploads" to a "uploads"
2013-07-14 23:44:50 +02:00

37 lines
1.4 KiB
Handlebars

<ul class="nav nav-pills">
<li title="{{i18n upload_selector.local_title}}" {{bindAttr class="localSelected:active"}}>
<a href="#" {{action selectLocal}}>{{i18n upload_selector.from_my_computer}}</a>
</li>
<li title="{{i18n upload_selector.remote_title}}" {{bindAttr class="remoteSelected:active"}}>
<a href="#" {{action selectRemote}}>{{i18n upload_selector.from_the_web}}</a>
</li>
</ul>
{{#if localSelected}}
<div class='modal-body'>
<form>
<input type="file" name="file" id="filename-input" value="browse"><br>
<span class='description'>{{i18n upload_selector.local_tip}}</span> <br>
</form>
</div>
<div class='modal-footer'>
<button class='btn btn-large btn-primary' {{action upload target="view"}}>
<span class='add-upload'><i class='icon-file-alt'></i><i class='icon-plus'></i></span>
{{i18n upload_selector.upload}}
</button>
</div>
{{else}}
<div class='modal-body'>
<form>
<input type="text" name="text" id="fileurl-input" autofocus><br>
<span class='description'>{{i18n upload_selector.remote_tip}}</span> <br>
</form>
</div>
<div class='modal-footer'>
<button class='btn btn-large btn-primary' {{action add target="view"}}>
<span class='add-upload'><i class='icon-file-alt'></i><i class='icon-plus'></i></span>
{{i18n upload_selector.add_image}}
</button>
</div>
{{/if}}