Skip to content

Instantly share code, notes, and snippets.

@elchele
Created Jun 4, 2021
Embed
What would you like to do?
Remove "Download All" button from Notes attachments field.
{{!--
File: ./custom/modules/Notes/clients/base/fields/multi-attachments/detail.hbs
--}}
<div class="select2-container select2-container-multi select2-choices-pills-close
select2 span12 multi-attachments-detail-view">
<ul class="select2-choices">
{{#each value}}
<li class="select2-search-choice">
<div>
<span class="select2-choice-type">
<a class="ellipsis_inline multi-attachment-link"
data-placement="bottom"
title="{{name}}"
href="{{url}}"
data-url="{{url}}"
target="_blank">{{fileName}}
</a>
<a class="multi-attachment-link-type"
href="{{url}}"
data-url="{{url}}"
target="_blank">{{fileExt}}</a>
</span>
</div>
</li>
{{/each}}
</ul>
</div>
{{#if singleImage }}
<a class="attachment-preview"
data-placement="bottom"
title="{{value.[0].name}}"
href="{{value.[0].url}}"
data-url="{{value.[0].url}}"
target="_blank">
<img src="{{value.[0].url}}" alt="{{value.[0].name}}"/>
</a>
{{/if}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment