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>
|
||||
</span>
|
||||
|
||||
<span class="flex flex-row flex-wrap items-center gap-2">
|
||||
<span class="hidden text-sm text-gray-500 lg:inline"> Filters: </span>
|
||||
{#if $ae_loc.edit_mode && ($ae_loc.manager_access || $ae_loc.trusted_access)}
|
||||
<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">
|
||||
<span>Enabled</span>
|
||||
<select
|
||||
class="select select-sm"
|
||||
bind:value={$journals_loc.entry.qry__enabled}
|
||||
onchange={handle_search_trigger}
|
||||
title="Filter by enabled status">
|
||||
<option value="enabled">Enabled Only</option>
|
||||
<option value="not_enabled">Disabled Only</option>
|
||||
<option value="all">All</option>
|
||||
</select>
|
||||
</label>
|
||||
{#if $ae_loc.manager_access}
|
||||
<label class="flex flex-row items-center gap-1 text-xs font-semibold text-gray-500">
|
||||
<span>Enabled</span>
|
||||
<select
|
||||
class="select select-sm"
|
||||
bind:value={$journals_loc.entry.qry__enabled}
|
||||
onchange={handle_search_trigger}
|
||||
title="Filter by enabled status">
|
||||
<option value="enabled">Enabled Only</option>
|
||||
<option value="not_enabled">Disabled Only</option>
|
||||
<option value="all">All</option>
|
||||
</select>
|
||||
</label>
|
||||
{/if}
|
||||
|
||||
<label class="flex flex-row items-center gap-1 text-xs font-semibold text-gray-500">
|
||||
<span>Hidden</span>
|
||||
<select
|
||||
class="select select-sm"
|
||||
bind:value={$journals_loc.entry.qry__hidden}
|
||||
onchange={handle_search_trigger}
|
||||
title="Filter by hidden status">
|
||||
<option value="not_hidden">Visible Only</option>
|
||||
<option value="hidden">Hidden Only</option>
|
||||
<option value="all">All</option>
|
||||
</select>
|
||||
</label>
|
||||
</span>
|
||||
{#if $ae_loc.trusted_access}
|
||||
<label class="flex flex-row items-center gap-1 text-xs font-semibold text-gray-500">
|
||||
<span>Hidden</span>
|
||||
<select
|
||||
class="select select-sm"
|
||||
bind:value={$journals_loc.entry.qry__hidden}
|
||||
onchange={handle_search_trigger}
|
||||
title="Filter by hidden status">
|
||||
<option value="not_hidden">Visible Only</option>
|
||||
<option value="hidden">Hidden Only</option>
|
||||
<option value="all">All</option>
|
||||
</select>
|
||||
</label>
|
||||
{/if}
|
||||
</span>
|
||||
{/if}
|
||||
|
||||
<!-- Search Control Toggles -->
|
||||
<span
|
||||
|
||||
Reference in New Issue
Block a user