wip file field
This commit is contained in:
@@ -1,33 +1,62 @@
|
||||
@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>
|
||||
<div class="tools-header">
|
||||
<div style="display: flex;align-items: center; gap:10px;">
|
||||
@if(!$createMode)
|
||||
<x-lucent::dropdown>
|
||||
<x-lucent::icon icon="ellipsis"></x-lucent::icon>
|
||||
<x-slot:items>
|
||||
<h6 class="dropdown-header">Record Actions</h6>
|
||||
<a
|
||||
class="dropdown-item"
|
||||
href="{{lucent_url("records/new")}}?schema={{$schema->name}}"
|
||||
>
|
||||
Create new
|
||||
</a>
|
||||
<a
|
||||
class="dropdown-item"
|
||||
href="{{lucent_url("records/clone")}}/{{$record->id}}"
|
||||
>
|
||||
Clone
|
||||
</a>
|
||||
<a
|
||||
class="dropdown-item"
|
||||
href="{{lucent_url("records/revisions")}}/{{$record->id}}">Revisions</a
|
||||
>
|
||||
</x-slot>
|
||||
</x-lucent::dropdown>
|
||||
@endif
|
||||
@if($record->status !== "trashed")
|
||||
<x-lucent::switch value="published" :checked="$record->status === 'published'"></x-lucent::switch>
|
||||
@endif
|
||||
@if($record->status === "published")
|
||||
Published
|
||||
@elseif($record->status === "draft")
|
||||
Draft
|
||||
@elseif($record->status === "trashed")
|
||||
Trashed
|
||||
@endif
|
||||
</div>
|
||||
@if($createMode)
|
||||
<button
|
||||
class="button primary btn-spinner"
|
||||
>
|
||||
<span
|
||||
class="spinner-border spinner-border-sm"
|
||||
role="status"
|
||||
aria-hidden="true"
|
||||
></span>
|
||||
Create
|
||||
</button>
|
||||
@else
|
||||
<button
|
||||
type="button"
|
||||
class="button primary ms-2 btn btn-primary btn-spinner"
|
||||
>
|
||||
<span
|
||||
class="spinner-border spinner-border-sm"
|
||||
role="status"
|
||||
aria-hidden="true"
|
||||
></span>
|
||||
Save
|
||||
</button>
|
||||
@endif
|
||||
|
||||
</div>
|
||||
Reference in New Issue
Block a user