Updated to do list. Cleaned up the badge search area at the top of the badge. Also tested the upload option
This commit is contained in:
@@ -429,62 +429,64 @@ async function handle_search_refresh(params: any) {
|
||||
></Comp_badge_search>
|
||||
|
||||
{#if $ae_loc.trusted_access && $ae_loc.edit_mode}
|
||||
<div class="flex flex-row items-center justify-center">
|
||||
<div class="flex flex-row gap-1 items-center justify-center">
|
||||
{#if badges_loc.current.enable_add_badge_btn ?? true}
|
||||
<!-- <div class="flex justify-end px-4"> -->
|
||||
<button
|
||||
type="button"
|
||||
class="btn btn-sm preset-tonal-primary border-primary-500 border"
|
||||
class="btn btn-sm preset-tonal-warning border-warning-500 border"
|
||||
onclick={() => {
|
||||
show_create_badge_modal = true;
|
||||
create_badge_dialog?.showModal();
|
||||
}}>
|
||||
}}
|
||||
title="Manually create a badge for an attendee. Required fields: given name, family name, and email. Optional fields: badge type, affiliations, and any other custom fields defined in your event's badge templates."
|
||||
>
|
||||
<UserPlus size="1em" />
|
||||
Create Badge
|
||||
</button>
|
||||
<!-- </div> -->
|
||||
{/if}
|
||||
|
||||
{#if badges_loc.current.enable_upload_badge_li_btn ?? true}
|
||||
<!-- <div class="flex justify-end px-4 mt-2"> -->
|
||||
<button
|
||||
type="button"
|
||||
class="btn btn-sm ml-2"
|
||||
class="btn btn-sm preset-tonal-warning border-warning-500 border"
|
||||
onclick={() => {
|
||||
show_upload_badge_modal = true;
|
||||
upload_badge_dialog?.showModal();
|
||||
}}>
|
||||
}}
|
||||
title="Upload a CSV file to bulk create badges. Required columns: given_name, family_name, email. Optional columns: badge_type_code, affiliations, and any other custom fields defined in your event's badge templates."
|
||||
>
|
||||
<Upload size="1em" /> Upload Badge List
|
||||
</button>
|
||||
<!-- </div> -->
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
{#if badges_loc.current.enable_mass_print ?? true}
|
||||
<div class="flex flex-row gap-1 items-center justify-center">
|
||||
<a
|
||||
href={`/events/${$events_slct?.event_id}/badges/print_list?printed_status=not_printed`}
|
||||
class="btn preset-filled-secondary">
|
||||
<Printer size="1em" /> Print Unprinted
|
||||
</a>
|
||||
<a
|
||||
href={`/events/${$events_slct?.event_id}/badges/print_list`}
|
||||
class="btn preset-filled-secondary">
|
||||
<Printer size="1em" /> Print All
|
||||
</a>
|
||||
<a
|
||||
href={`/events/${$events_slct?.event_id}/templates`}
|
||||
class="btn btn-tertiary">
|
||||
<FileText size="1em" /> Manage Templates
|
||||
</a>
|
||||
<a
|
||||
href={`/events/${$events_slct?.event_id}/badges/stats`}
|
||||
class="btn btn-tertiary">
|
||||
<BarChart2 size="1em" /> Badge Printing Stats
|
||||
</a>
|
||||
</div>
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
{#if $ae_loc.trusted_access && (badges_loc.current.enable_mass_print ?? true)}
|
||||
<div class="mt-2 flex gap-2 px-4">
|
||||
<a
|
||||
href={`/events/${$events_slct?.event_id}/badges/print_list?printed_status=not_printed`}
|
||||
class="btn preset-filled-secondary">
|
||||
<Printer size="1em" /> Print Unprinted
|
||||
</a>
|
||||
<a
|
||||
href={`/events/${$events_slct?.event_id}/badges/print_list`}
|
||||
class="btn preset-filled-secondary">
|
||||
<Printer size="1em" /> Print All
|
||||
</a>
|
||||
<a
|
||||
href={`/events/${$events_slct?.event_id}/templates`}
|
||||
class="btn btn-tertiary">
|
||||
<FileText size="1em" /> Manage Templates
|
||||
</a>
|
||||
<a
|
||||
href={`/events/${$events_slct?.event_id}/badges/stats`}
|
||||
class="btn btn-tertiary">
|
||||
<BarChart2 size="1em" /> Badge Printing Stats
|
||||
</a>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
|
||||
<!-- Create Badge modal — native <dialog> for focus trap + backdrop.
|
||||
Clicking the backdrop closes it. The form remounts each open so state is fresh. -->
|
||||
|
||||
Reference in New Issue
Block a user