]> BookStack Code Mirror - bookstack/blob - resources/views/attachments/manager-list.blade.php
Implement the renderPages parameter
[bookstack] / resources / views / attachments / manager-list.blade.php
1 <div component="sortable-list" option:sortable-list:handle-selector=".handle">
2     @foreach($attachments as $attachment)
3         <div component="ajax-delete-row"
4              option:ajax-delete-row:url="{{ url('/attachments/' . $attachment->id) }}"
5              data-id="{{ $attachment->id }}"
6              class="card drag-card">
7             <div class="handle">@icon('grip')</div>
8             <div class="py-s">
9                 <a href="{{ $attachment->getUrl() }}" target="_blank">{{ $attachment->name }}</a>
10             </div>
11             <div class="flex-fill justify-flex-end">
12                 <button component="event-emit-select"
13                         option:event-emit-select:name="edit"
14                         option:event-emit-select:id="{{ $attachment->id }}"
15                         type="button"
16                         class="drag-card-action text-center text-primary">@icon('edit')</button>
17                 <div component="dropdown" class="flex-fill relative">
18                     <button refs="dropdown@toggle" type="button" class="drag-card-action text-center text-neg">@icon('close')</button>
19                     <div refs="dropdown@menu" class="dropdown-menu">
20                         <p class="text-neg small px-m mb-xs">{{ trans('entities.attachments_delete') }}</p>
21                         <button refs="ajax-delete-row@delete" type="button" class="text-primary small delete">{{ trans('common.confirm') }}</button>
22                     </div>
23                 </div>
24             </div>
25         </div>
26     @endforeach
27     @if (count($attachments) === 0)
28         <p class="small text-muted">
29             {{ trans('entities.attachments_no_files') }}
30         </p>
31     @endif
32 </div>