wip create/edit
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
{{-- on:refresh={refresh}--}}
|
||||
{{-- />--}}
|
||||
{{-- {/if}--}}
|
||||
@include("lucent::records.tools")
|
||||
@include("lucent::records.table")
|
||||
</div>
|
||||
|
||||
|
||||
@@ -2,6 +2,5 @@
|
||||
|
||||
@section("content")
|
||||
@include("lucent::records.index")
|
||||
|
||||
@endsection
|
||||
|
||||
|
||||
@@ -0,0 +1,109 @@
|
||||
<div class="toolbar">
|
||||
<div class="toolbar-filters">
|
||||
|
||||
{{-- <SortFields--}}
|
||||
{{-- {schema}--}}
|
||||
{{-- {sortParam}--}}
|
||||
{{-- {sortField}--}}
|
||||
{{-- {systemFields}--}}
|
||||
{{-- {inModal}--}}
|
||||
{{-- {modalUrl}--}}
|
||||
{{-- on:refresh--}}
|
||||
{{-- />--}}
|
||||
|
||||
|
||||
{{-- <FilterFields--}}
|
||||
{{-- bind:schema--}}
|
||||
{{-- {systemFields}--}}
|
||||
{{-- {operators}--}}
|
||||
{{-- {filter}--}}
|
||||
{{-- {inModal}--}}
|
||||
{{-- {modalUrl}--}}
|
||||
{{-- on:refresh--}}
|
||||
{{-- />--}}
|
||||
|
||||
<form method="GET">
|
||||
<input type="search" name="filter[search_regex]" placeholder="Search"
|
||||
class="search" required>
|
||||
</form>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div style="display:flex;align-items: center;gap:4px">
|
||||
@if(get_class($schema) === \Lucent\Schema\CollectionSchema::class)
|
||||
@if(!$inModal && $isWritable)
|
||||
<a
|
||||
href="{{lucent_url("records/new?schema=")}}{{$schema->name}}"
|
||||
class="button"
|
||||
>
|
||||
New Record
|
||||
</a>
|
||||
@endif
|
||||
@else
|
||||
<div>
|
||||
{{-- <Uploader {schema} on:uploadComplete={uploadComplete}/>--}}
|
||||
</div>
|
||||
@endif
|
||||
@if(!$inModal)
|
||||
{{-- <Dropdown orientation="right">--}}
|
||||
{{-- <div slot="button">--}}
|
||||
{{-- <Icon icon="ellipsis-vertical"/>--}}
|
||||
{{-- </div>--}}
|
||||
{{-- {#if filter["status_in"] === "trashed"}--}}
|
||||
{{-- {#if isWritable}--}}
|
||||
{{-- <a--}}
|
||||
{{-- class="dropdown-item"--}}
|
||||
{{-- href="{channel.lucentUrl}/content/{schema.name}/emptyTrash"--}}
|
||||
{{-- >--}}
|
||||
{{-- Empty trash--}}
|
||||
{{-- </a>--}}
|
||||
{{-- {/if}--}}
|
||||
{{-- {:else}--}}
|
||||
|
||||
{{-- <a--}}
|
||||
{{-- class="dropdown-item"--}}
|
||||
{{-- href={csvUrl}--}}
|
||||
{{-- >Export to CSV</a--}}
|
||||
{{-- >--}}
|
||||
{{-- <a--}}
|
||||
{{-- class="dropdown-item"--}}
|
||||
{{-- href="{channel.lucentUrl}/content/{schema.name}?filter[status_in]=trashed"--}}
|
||||
{{-- >View trashed records</a--}}
|
||||
{{-- >--}}
|
||||
{{-- <a--}}
|
||||
{{-- class="dropdown-item"--}}
|
||||
{{-- href="{channel.lucentUrl}/content/{schema.name}?notlinked=*"--}}
|
||||
{{-- >View unlinked records</a--}}
|
||||
{{-- >--}}
|
||||
{{-- {/if}--}}
|
||||
{{-- </Dropdown>--}}
|
||||
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
{{--<div class="applied-filters">--}}
|
||||
{{-- <AppliedFilterNotLinked--}}
|
||||
{{-- {inModal}--}}
|
||||
{{-- {modalUrl}--}}
|
||||
{{-- on:refresh--}}
|
||||
{{-- ></AppliedFilterNotLinked>--}}
|
||||
{{-- {#if Object.entries(filter).length > 0}--}}
|
||||
{{-- {#each Object.entries(filter) as [k, v]}--}}
|
||||
{{-- <AppliedFilter--}}
|
||||
{{-- {schema}--}}
|
||||
{{-- {operators}--}}
|
||||
{{-- key={k}--}}
|
||||
{{-- value={v}--}}
|
||||
{{-- {inModal}--}}
|
||||
{{-- {modalUrl}--}}
|
||||
{{-- {graph}--}}
|
||||
{{-- on:refresh--}}
|
||||
{{-- />--}}
|
||||
{{-- {/each}--}}
|
||||
{{-- {/if}--}}
|
||||
{{--</div>--}}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user