From d0c4ef2179f3031e57323e4014c1ad7e87354c85 Mon Sep 17 00:00:00 2001 From: Scott Idem Date: Wed, 6 Nov 2024 14:23:38 -0500 Subject: [PATCH] Now with edit content partially ready. --- .../(idaa)/archives/[archive_id]/+page.svelte | 126 +++- ...a_comp__archive_content_obj_id_edit.svelte | 590 ++++++++++++++++++ ...e_idaa_comp__archive_content_obj_li.svelte | 8 +- .../ae_idaa_comp__archive_obj_id_edit.svelte | 1 - .../ae_idaa_comp__archive_obj_id_view.svelte | 1 - .../ae_idaa_comp__event_obj_id_edit.svelte | 6 +- 6 files changed, 721 insertions(+), 11 deletions(-) create mode 100644 src/routes/idaa/(idaa)/archives/[archive_id]/ae_idaa_comp__archive_content_obj_id_edit.svelte delete mode 100644 src/routes/idaa/(idaa)/archives/[archive_id]/ae_idaa_comp__archive_obj_id_edit.svelte diff --git a/src/routes/idaa/(idaa)/archives/[archive_id]/+page.svelte b/src/routes/idaa/(idaa)/archives/[archive_id]/+page.svelte index cd87dfcd..e3b514c6 100644 --- a/src/routes/idaa/(idaa)/archives/[archive_id]/+page.svelte +++ b/src/routes/idaa/(idaa)/archives/[archive_id]/+page.svelte @@ -26,6 +26,7 @@ import Archive_view from './ae_idaa_comp__archive_obj_id_view.svelte'; // import Archive_page_menu from './session_page_menu.svelte'; import Archive_content_obj_li from './ae_idaa_comp__archive_content_obj_li.svelte'; +import Archive_content_obj_id_edit from './ae_idaa_comp__archive_content_obj_id_edit.svelte'; import { browser } from '$app/environment'; @@ -107,4 +108,127 @@ if (browser) { - \ No newline at end of file + + + + + + + +
+

+ {#if $ae_loc.trusted_access} + + + + {/if} + + Edit Archive: {$lq__archive_obj?.name}

+
+ +
+ + + + + +
+ +
+
+ +
+ + + + + + + +
+

+ {#if $ae_loc.trusted_access} + + + + {/if} + + Edit Archive Content: {$lq__archive_content_obj?.name}

+
+ +
+ + + + + +
+ +
+
+ +
\ No newline at end of file diff --git a/src/routes/idaa/(idaa)/archives/[archive_id]/ae_idaa_comp__archive_content_obj_id_edit.svelte b/src/routes/idaa/(idaa)/archives/[archive_id]/ae_idaa_comp__archive_content_obj_id_edit.svelte new file mode 100644 index 00000000..a58f1da9 --- /dev/null +++ b/src/routes/idaa/(idaa)/archives/[archive_id]/ae_idaa_comp__archive_content_obj_id_edit.svelte @@ -0,0 +1,590 @@ + + +
+ + +
+ + {#await update_archive_content_obj_promise} +
Saving...
+ {:then} + {#if update_archive_content_obj_promise} +
Finished saving
+ {:else} + + {/if} + {/await} + +

Archive Content

+ + + + + + + + + +
+ Public Access with Rotating Access Key/Passcode + + +
+ + +

File?

+ {#if !$idaa_slct.archive_content_id} + FILE INPUT GOES HERE + + + {/if} + + + + + + + +

Original

+ + +
+ +
+ + + + + + + {#if $ae_loc.trusted_access} +
+ +

+ Admin Options + +

+ + + + + + + + + + + {#if $ae_loc.administrator_access} + + {/if} + + + + + +
+ {/if} + + +
+ + + {#if $idaa_slct.archive_content_id} + + {/if} +
+ +
+ +
+ + + diff --git a/src/routes/idaa/(idaa)/archives/[archive_id]/ae_idaa_comp__archive_content_obj_li.svelte b/src/routes/idaa/(idaa)/archives/[archive_id]/ae_idaa_comp__archive_content_obj_li.svelte index 88b89eba..a6ba3eac 100644 --- a/src/routes/idaa/(idaa)/archives/[archive_id]/ae_idaa_comp__archive_content_obj_li.svelte +++ b/src/routes/idaa/(idaa)/archives/[archive_id]/ae_idaa_comp__archive_content_obj_li.svelte @@ -64,7 +64,7 @@ onMount(() => { // let message = {'archive_id': idaa_archive_content_obj?.archive_id}; // window.parent.postMessage(message, "*"); - $idaa_sess.archives.show__modal_view__archive_content_id = true; + $idaa_sess.archives.show__modal_view__archive_content_id = $idaa_slct.archive_content_id; $idaa_sess.archives.show__modal_edit__archive_content_id = false; }} class="btn btn-md variant-ghost-primary hover:variant-filled-primary transition" @@ -127,11 +127,11 @@ onMount(() => {