diff --git a/src/lib/ae_elements/AE_Record_Controls.svelte b/src/lib/ae_elements/AE_Record_Controls.svelte new file mode 100644 index 00000000..50451671 --- /dev/null +++ b/src/lib/ae_elements/AE_Record_Controls.svelte @@ -0,0 +1,192 @@ + + +
+ {#if show_labels} + + Controls: + + {/if} + + + {#if show_priority} + + {/if} + + + {#if show_hide} + + {/if} + + + {#if show_enable} + + {/if} + + + {#if show_alert} + + {/if} + + + {#if allow_delete} + + {:else if allow_disable} + + {/if} +
diff --git a/src/routes/events/[event_id]/(badges)/badges/[badge_id]/print/+page.svelte b/src/routes/events/[event_id]/(badges)/badges/[badge_id]/print/+page.svelte index 71127ef9..129427c9 100644 --- a/src/routes/events/[event_id]/(badges)/badges/[badge_id]/print/+page.svelte +++ b/src/routes/events/[event_id]/(badges)/badges/[badge_id]/print/+page.svelte @@ -113,6 +113,18 @@ // growing its width expands it leftward into the badge area automatically. // transition-all on both elements makes the layout shift smooth. let is_editing = $derived(preview_overrides !== null); + + // Print margin config from badge template cfg_json. + // When set, overrides the default @page margin: 0 for per-template positioning. + // Expected format in cfg_json: { "print_margin": { "top": "0.25in", "right": "0.25in", "bottom": "0.25in", "left": "0.25in" } } + // All four edges are optional; omitted edges fall back to 0. + // TODO: inject into @page rule via a dynamic @@ -276,8 +313,9 @@ -
+ On print: pr-0 restores full width; the #badge_render_area id triggers flex-centering + from the @media print rules above. --> +
-
- -
+
+ - - - + + + {#if $ae_loc.trusted_access} + + {/if} + - - - + {#if $lq__event_session_obj?.event_id} -
- - -
+ -
-

- Æ Session Menu Options -

+ {#snippet header()} +

+ + Session Options +

+ + {/snippet} -
-
- +
+ + {#if $ae_loc.trusted_access} +
+

Launcher

- - -
+ + {/if} -
- - - - - - - - - - - - {#if $ae_loc.manager_access} - - {:else if $ae_loc.administrator_access} - - {/if} -
-
+ + {#if $ae_loc.trusted_access} +
+

Record

+ +
+ {/if}
+ - -
- - + - -
- -
-