This repository has been archived on 2026-07-19. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
espocrm-base/client/res/templates/fields/attachments-multiple/edit.tpl
T
2016-02-16 17:27:45 +02:00

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>