new: add `duplicate` button for articles

This commit is contained in:
Valentin Lab
2025-12-14 21:01:17 +01:00
parent fefd6209ac
commit 66c035ef9a
13 changed files with 92 additions and 9 deletions

View File

@@ -1,5 +1,6 @@
@php
$cancelUrl = $cancel_url ?? $cancelUrl ?? null;
$duplicateUrl = $duplicate_url ?? $duplicateUrl ?? null;
@endphp
@push('header-actions')
@@ -8,6 +9,12 @@
'class' => 'btn-sm mr-2',
'url' => $cancelUrl,
])
@if($duplicateUrl)
@include('components.form.buttons.button-duplicate', [
'class' => 'btn-sm mr-2',
'duplicate_url' => $duplicateUrl,
])
@endif
@include('components.form.buttons.button-save', [
'class' => 'btn-sm',
])
@@ -18,6 +25,9 @@
<div class="col-12">
<div class="text-right form-buttons">
@include('components.form.buttons.button-cancel', ['url' => $cancelUrl])
@if($duplicateUrl)
@include('components.form.buttons.button-duplicate', ['duplicate_url' => $duplicateUrl])
@endif
@include('components.form.buttons.button-save')
</div>
</div>