2019-08-11 21:04:43 +02:00
|
|
|
{{ $templates->links() }}
|
|
|
|
|
|
|
|
@foreach($templates as $template)
|
2019-08-26 13:47:04 +02:00
|
|
|
<div class="card template-item border-card p-m mb-m" tabindex="0"
|
|
|
|
aria-label="{{ trans('entities.templates_replace_content') }} - {{ $template->name }}"
|
|
|
|
draggable="true" template-id="{{ $template->id }}">
|
2019-08-11 21:04:43 +02:00
|
|
|
<div class="template-item-content" title="{{ trans('entities.templates_replace_content') }}">
|
|
|
|
<div>{{ $template->name }}</div>
|
|
|
|
<div class="text-muted">{{ trans('entities.meta_updated', ['timeLength' => $template->updated_at->diffForHumans()]) }}</div>
|
|
|
|
</div>
|
|
|
|
<div class="template-item-actions">
|
|
|
|
<button type="button"
|
|
|
|
title="{{ trans('entities.templates_prepend_content') }}"
|
2019-08-26 13:47:04 +02:00
|
|
|
aria-label="{{ trans('entities.templates_prepend_content') }} - {{ $template->name }}"
|
2019-08-11 21:04:43 +02:00
|
|
|
template-action="prepend">@icon('chevron-up')</button>
|
|
|
|
<button type="button"
|
|
|
|
title="{{ trans('entities.templates_append_content') }}"
|
2019-08-26 13:47:04 +02:00
|
|
|
aria-label="{{ trans('entities.templates_append_content') }} -- {{ $template->name }}"
|
2019-08-11 21:04:43 +02:00
|
|
|
template-action="append">@icon('chevron-down')</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endforeach
|
|
|
|
|
|
|
|
{{ $templates->links() }}
|