Making the admin options consistent
This commit is contained in:
@@ -77,11 +77,11 @@ async function handle_delete_post_obj({post_id, method}: key_val) {
|
||||
</button>
|
||||
</section> <!-- END: section post__options -->
|
||||
|
||||
<h3 class="h3">Post</h3>
|
||||
<!-- <h3 class="h3">Post</h3> -->
|
||||
|
||||
<input type="hidden" value={$idaa_slct.post_id} />
|
||||
|
||||
<section class="ae_section post__general_information space-y-1"> <!-- BEGIN: section post__general_information -->
|
||||
<section class="ae_section post__general_information border border-gray-200 rounded p-2 space-y-2"> <!-- BEGIN: section post__general_information -->
|
||||
|
||||
<label for="title">Title of BB Post:
|
||||
<input type="text" id="title" name="title" required max="200" value={$lq__post_obj?.title} placeholder="Title of Post" autocomplete="off" class="input w-96" />
|
||||
@@ -213,89 +213,84 @@ async function handle_delete_post_obj({post_id, method}: key_val) {
|
||||
|
||||
</section> <!-- END: section post__general_information -->
|
||||
|
||||
|
||||
{#if $ae_loc.trusted_access}
|
||||
<button
|
||||
type="button"
|
||||
class="ae_btn ae_d_none_toggle ae_float_right ae_smallest btn btn-xs btn-info btn-sm variant-ghost-warning hover:variant-filled-warning transition"
|
||||
class="btn btn-sm variant-soft-secondary float-right"
|
||||
on:click={() => {
|
||||
// document.querySelector('.ae_d_none_content').classList.toggle('ae_fade_out'); document.querySelector('.ae_d_none_content').classList.toggle('ae_fade_in');
|
||||
$idaa_loc.show__admin_options = !$idaa_loc.show__admin_options;
|
||||
$idaa_loc.bb.show__admin_options = !$idaa_loc.bb.show__admin_options;
|
||||
}}
|
||||
>
|
||||
<span class="fas fa-eye m-1"></span>
|
||||
{$idaa_loc.show__admin_options ? 'Hide' : ''} Admin Options?
|
||||
{$idaa_loc.bb.show__admin_options ? 'Hide' : 'Show'} Admin
|
||||
</button>
|
||||
|
||||
<section
|
||||
class="ae_section post__admin_options"
|
||||
class:hidden={!$ae_loc.trusted_access || !$idaa_loc.show__admin_options}
|
||||
class="ae_section post__admin_options border border-gray-200 rounded p-2 space-y-2"
|
||||
class:hidden={!$idaa_loc.bb.show__admin_options}
|
||||
> <!-- BEGIN: section post__admin_options -->
|
||||
|
||||
<h3 class="h4">
|
||||
<h3 class="h3">
|
||||
Admin Options
|
||||
|
||||
</h3>
|
||||
|
||||
<span
|
||||
|
||||
class="flex flex-row flex-wrap items-center justify-between"
|
||||
>
|
||||
<label>Hide
|
||||
<input
|
||||
type="checkbox"
|
||||
name="hide"
|
||||
id="hide"
|
||||
bind:checked={$idaa_slct.post_obj.hide}
|
||||
class="checkbox"
|
||||
>
|
||||
</label>
|
||||
|
||||
<span
|
||||
class="flex flex-row flex-wrap items-center justify-between"
|
||||
>
|
||||
<label>Hide
|
||||
<input
|
||||
type="checkbox"
|
||||
name="hide"
|
||||
id="hide"
|
||||
bind:checked={$idaa_slct.post_obj.hide}
|
||||
class="checkbox"
|
||||
>
|
||||
</label>
|
||||
<label>Priority
|
||||
<input
|
||||
type="checkbox"
|
||||
name="priority"
|
||||
id="priority"
|
||||
bind:checked={$idaa_slct.post_obj.priority}
|
||||
class="checkbox"
|
||||
>
|
||||
</label>
|
||||
|
||||
<label>Priority
|
||||
<input
|
||||
type="checkbox"
|
||||
name="priority"
|
||||
id="priority"
|
||||
bind:checked={$idaa_slct.post_obj.priority}
|
||||
class="checkbox"
|
||||
>
|
||||
</label>
|
||||
<label>Sort <input type="number" name="sort" value={$lq__post_obj?.sort} class="input w-24" /></label>
|
||||
|
||||
<label>Sort <input type="number" name="sort" value={$lq__post_obj?.sort} class="input w-24" /></label>
|
||||
<label>Group <input type="text" name="group" value={$lq__post_obj?.group ? $lq__post_obj?.group : ''} max="100" class="input w-40" /></label>
|
||||
|
||||
<label>Group <input type="text" name="group" value={$lq__post_obj?.group ? $lq__post_obj?.group : ''} max="100" class="input w-40" /></label>
|
||||
|
||||
{#if $ae_loc.administrator_access}
|
||||
<label>Enable
|
||||
<input
|
||||
type="checkbox"
|
||||
name="enable"
|
||||
id="enable"
|
||||
bind:checked={$idaa_slct.post_obj.enable}
|
||||
class="checkbox"
|
||||
>
|
||||
</label>
|
||||
{/if}
|
||||
</span>
|
||||
|
||||
{#if $ae_loc.trusted_access}
|
||||
<label
|
||||
for="notes"
|
||||
>
|
||||
Internal Staff Notes
|
||||
<Tiptap_editor
|
||||
default_minimal={true}
|
||||
bind:html_text={$idaa_slct.post_obj.notes}
|
||||
show_button_kv={{'heading__h1': false, 'heading__h2': false, 'heading__h3': false}}
|
||||
bind:new_html={$idaa_slct.post_obj.notes_new_html}
|
||||
/>
|
||||
{#if $ae_loc.administrator_access}
|
||||
<label>Enable
|
||||
<input
|
||||
type="checkbox"
|
||||
name="enable"
|
||||
id="enable"
|
||||
bind:checked={$idaa_slct.post_obj.enable}
|
||||
class="checkbox"
|
||||
>
|
||||
</label>
|
||||
{/if}
|
||||
</span>
|
||||
|
||||
</span> <!-- END: span ae_show_hide_content -->
|
||||
{#if $ae_loc.trusted_access}
|
||||
<label
|
||||
for="notes"
|
||||
>
|
||||
Internal Staff Notes
|
||||
<Tiptap_editor
|
||||
default_minimal={true}
|
||||
bind:html_text={$idaa_slct.post_obj.notes}
|
||||
show_button_kv={{'heading__h1': false, 'heading__h2': false, 'heading__h3': false}}
|
||||
bind:new_html={$idaa_slct.post_obj.notes_new_html}
|
||||
/>
|
||||
</label>
|
||||
{/if}
|
||||
|
||||
</section> <!-- END: section post__admin_options -->
|
||||
{/if}
|
||||
|
||||
|
||||
<section class="ae_section ae_options ae_row ae_actions post__options post__actions flex flex-row gap-1 items-center justify-between">
|
||||
|
||||
Reference in New Issue
Block a user