Files
lucent-laravel/front/views/records-editor/header.blade.php
T
lexx 5ed57838fc WIP moving to vanilla js from svelte
Editing record edit and i am in the middle of creating the dropdown component
2024-09-27 23:58:32 +03:00

33 lines
947 B
PHP

@php
$createMode = $createMode ?? false;
@endphp
<div style="display: flex;align-items: center; gap:10px;">
@if(!$createMode)
<x-lucent::dropdown>
icon
<x-slot:items>
<h6 class="dropdown-header">Record Actions</h6>
<a
class="dropdown-item"
href="{channel.lucentUrl}/records/new?schema={schema.name}"
>Create new</a
>
@if($createMode)
<a
class="dropdown-item"
on:click={clone}
href={channel.lucentUrl}
>
Clone
</a>
@endif
<a
class="dropdown-item"
href="{channel.lucentUrl}">Revisions</a
>
</x-slot>
</x-lucent::dropdown>
@endif
</div>