27 lines
1.1 KiB
Smarty
27 lines
1.1 KiB
Smarty
<div>
|
|
<div class="clearfix">
|
|
{{#unless uploadFromFileSystemDisabled}}
|
|
<div class="pull-left">
|
|
<label style="overflow: hidden; width: 50px; cursor: pointer;" title="{{translate 'Attach File'}}">
|
|
<span class="btn btn-default" style="cursor: pointer;"><span class="glyphicon glyphicon-paperclip"></span></span>
|
|
<input type="file" class="file pull-right" multiple style="opacity: 0; width: 1px;">
|
|
</label>
|
|
</div>
|
|
{{/unless}}
|
|
|
|
{{#if sourceList.length}}
|
|
<div class="pull-left dropdown">
|
|
<button class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown">
|
|
<span class="glyphicon glyphicon-file"></span>
|
|
</button>
|
|
<ul class="dropdown-menu" role="menu">
|
|
{{#each sourceList}}
|
|
<li><a href="javascript:" class="action" data-action="insertFromSource" data-name="{{./this}}">{{translate this category='insertFromSourceLabels' scope='Attachment'}}</a></li>
|
|
{{/each}}
|
|
</ul>
|
|
</div>
|
|
{{/if}}
|
|
</div>
|
|
<div class="attachments"></div>
|
|
</div>
|