Files
lucent-laravel/front/views/records/tools.blade.php
T
2024-10-02 18:58:30 +03:00

110 lines
3.6 KiB
PHP

<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>--}}