Gate journal filters by access level
This commit is contained in:
@@ -125,35 +125,41 @@ function prevent_default<T extends Event>(fn: (event: T) => void) {
|
|||||||
</select>
|
</select>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<span class="flex flex-row flex-wrap items-center gap-2">
|
{#if $ae_loc.edit_mode && ($ae_loc.manager_access || $ae_loc.trusted_access)}
|
||||||
<span class="hidden text-sm text-gray-500 lg:inline"> Filters: </span>
|
<span class="flex flex-row flex-wrap items-center gap-2">
|
||||||
|
<span class="hidden text-sm text-gray-500 lg:inline"> Filters: </span>
|
||||||
|
|
||||||
<label class="flex flex-row items-center gap-1 text-xs font-semibold text-gray-500">
|
{#if $ae_loc.manager_access}
|
||||||
<span>Enabled</span>
|
<label class="flex flex-row items-center gap-1 text-xs font-semibold text-gray-500">
|
||||||
<select
|
<span>Enabled</span>
|
||||||
class="select select-sm"
|
<select
|
||||||
bind:value={$journals_loc.entry.qry__enabled}
|
class="select select-sm"
|
||||||
onchange={handle_search_trigger}
|
bind:value={$journals_loc.entry.qry__enabled}
|
||||||
title="Filter by enabled status">
|
onchange={handle_search_trigger}
|
||||||
<option value="enabled">Enabled Only</option>
|
title="Filter by enabled status">
|
||||||
<option value="not_enabled">Disabled Only</option>
|
<option value="enabled">Enabled Only</option>
|
||||||
<option value="all">All</option>
|
<option value="not_enabled">Disabled Only</option>
|
||||||
</select>
|
<option value="all">All</option>
|
||||||
</label>
|
</select>
|
||||||
|
</label>
|
||||||
|
{/if}
|
||||||
|
|
||||||
<label class="flex flex-row items-center gap-1 text-xs font-semibold text-gray-500">
|
{#if $ae_loc.trusted_access}
|
||||||
<span>Hidden</span>
|
<label class="flex flex-row items-center gap-1 text-xs font-semibold text-gray-500">
|
||||||
<select
|
<span>Hidden</span>
|
||||||
class="select select-sm"
|
<select
|
||||||
bind:value={$journals_loc.entry.qry__hidden}
|
class="select select-sm"
|
||||||
onchange={handle_search_trigger}
|
bind:value={$journals_loc.entry.qry__hidden}
|
||||||
title="Filter by hidden status">
|
onchange={handle_search_trigger}
|
||||||
<option value="not_hidden">Visible Only</option>
|
title="Filter by hidden status">
|
||||||
<option value="hidden">Hidden Only</option>
|
<option value="not_hidden">Visible Only</option>
|
||||||
<option value="all">All</option>
|
<option value="hidden">Hidden Only</option>
|
||||||
</select>
|
<option value="all">All</option>
|
||||||
</label>
|
</select>
|
||||||
</span>
|
</label>
|
||||||
|
{/if}
|
||||||
|
</span>
|
||||||
|
{/if}
|
||||||
|
|
||||||
<!-- Search Control Toggles -->
|
<!-- Search Control Toggles -->
|
||||||
<span
|
<span
|
||||||
|
|||||||
Reference in New Issue
Block a user