Files
upstream-mirror 7cc7e6b4f3
Some checks failed
Test / Test on PHP 8.3 (push) Failing after 5s
Test / Test on PHP 8.4 (push) Failing after 4s
Test / Test on PHP 8.5 (push) Failing after 3s
TypeScript static analysis / TypeScript check (push) Failing after 14s
Test Integration on MySQL / Test on PHP 8.3 (push) Failing after 1s
Test Integration on MySQL / Test on PHP 8.5 (push) Failing after 1s
Test Integration on PostgreSQL / Test on PHP 8.4 fix (push) Failing after 1s
Test Integration on PostgreSQL / Test on PHP 8.4 master (push) Failing after 1s
snapshot of https://github.com/espocrm/espocrm.git (master, 2026-09-18; blobs > 131072B omitted)
2026-09-18 04:19:15 +05:00

39 lines
1.4 KiB
Smarty

<div class="attachment-upload">
<div class="attachment-button{{#if id}} hidden{{/if}} clearfix ">
<div class="pull-left">
<label class="attach-file-label" title="{{translate 'Attach File'}}" tabindex="0">
<span class="btn btn-default btn-icon"><span class="fas fa-paperclip"></span></span>
<input
type="file"
class="file pull-right"
{{#if acceptAttribute}}accept="{{acceptAttribute}}"{{/if}}
{{#if capture}} capture="{{capture}}" {{/if}}
tabindex="-1"
>
</label>
</div>
{{#unless id}}
{{#if sourceList.length}}
<div class="pull-left dropdown">
<button class="btn btn-default btn-icon dropdown-toggle" type="button" data-toggle="dropdown">
<span class="fas fa-file"></span>
</button>
<ul class="dropdown-menu" role="menu">
{{#each sourceList}}
<li><a
role="button"
tabindex="0"
class="action"
data-action="insertFromSource"
data-name="{{./this}}"
>{{translate this category='insertFromSourceLabels' scope='Attachment'}}</a></li>
{{/each}}
</ul>
</div>
{{/if}}
{{/unless}}
</div>
<div class="attachment"></div>
</div>