This is just a good clean point of development. Still a lot of work though!
This commit is contained in:
@@ -404,7 +404,7 @@ function send_init_confirm_email({to_email}) {
|
||||
|
||||
|
||||
<section
|
||||
class="ae_events_leads md:container h-full mx-auto flex flex-col items-center space-y-4"
|
||||
class="ae_events_leads md:container h-full mx-auto flex flex-col items-center space-y-4 pt-0 pb-8"
|
||||
>
|
||||
|
||||
|
||||
@@ -562,13 +562,13 @@ function send_init_confirm_email({to_email}) {
|
||||
</div>
|
||||
|
||||
{#if $events_loc.leads.auth_exhibit_kv[$events_slct.exhibit_id] && $events_loc.leads.auth_exhibit_kv[$events_slct.exhibit_id].key}
|
||||
<p class="border-2 border-primary p-2 variant-soft-secondary">
|
||||
<p class="border border-slate-500/10 p-2 variant-soft-secondary">
|
||||
You are logged in using the shared exhibit staff passcode and are using the license key for {$events_loc.leads.auth_exhibit_kv[$events_slct.exhibit_id].key}. Any leads you collect will be associated with this license key (email address).
|
||||
</p>
|
||||
{:else if $events_loc?.leads.auth_exhibit_kv[$events_slct.exhibit_id]}
|
||||
<p class="border-2 border-primary p-2 variant-soft-secondary">To use the lead retrieval service, please select a license from the list below. You may need to add one first.</p>
|
||||
<p class="border border-slate-500/10 p-2 variant-soft-warning">Please select your name from the license list below to use the lead retrieval service. You may need to add your name first. This is also used to link new leads to whoever adds them.</p>
|
||||
{:else}
|
||||
<p>To access this exhibit you must enter the shared staff passcode that you were given. You will then be able to select a license and use the lead retrieval service from your device.</p>
|
||||
<p class="border border-slate-500/10 p-2 variant-soft-warning">To access this exhibit you must enter the shared staff passcode that you were given. You will then be able to select a license and use the lead retrieval service from your device.</p>
|
||||
<label class="label variant-glass-warning p-2 px-4 m-2 rounded-full font-bold">Shared exhibit passcode:
|
||||
<input
|
||||
type="text"
|
||||
@@ -589,6 +589,15 @@ function send_init_confirm_email({to_email}) {
|
||||
{#if $event_exhibit_obj?.license_max }
|
||||
<h2 class="h3">License List (max {$event_exhibit_obj?.license_max})</h2>
|
||||
|
||||
<div class="border border-slate-500/10 p-2 variant-soft-secondary">Use the "Sign In" or "Email" option buttons below to log in using one of the available licenses. Be sure use the one with your name and email address. If you select a license that is already in use on another device, it will be logged out.
|
||||
<ul
|
||||
class="list-disc list-inside"
|
||||
>
|
||||
<li>"<strong>Sign In</strong>" option - Use this to sign and use the license with your current browser and device.</li>
|
||||
<li>"<strong>Email</strong>" option - Use this to send an email with a link to log in. You may want to use this to send the link to other staff associated with this exhibit.</li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
||||
{#if !Array.isArray($event_exhibit_obj?.license_li_json) || (Array.isArray($event_exhibit_obj?.license_li_json) && $event_exhibit_obj?.license_li_json.length < $event_exhibit_obj?.license_max)}
|
||||
<button
|
||||
@@ -615,25 +624,8 @@ function send_init_confirm_email({to_email}) {
|
||||
<span class="fas fa-edit mx-1"></span>
|
||||
Add License
|
||||
</button>
|
||||
{:else}
|
||||
<!-- <button
|
||||
class="btn btn-sm variant-soft-warning w-40"
|
||||
on:click={() => {
|
||||
console.log('No more licenses available. Remove the last one from the list?');
|
||||
let tmp_obj = $event_exhibit_obj;
|
||||
tmp_obj?.license_li_json.pop();
|
||||
console.log('Remove License:', tmp_obj);
|
||||
db_events.exhibits.put(tmp_obj);
|
||||
// This still needs to be saved to the database.
|
||||
}}
|
||||
>
|
||||
<span class="fas fa-trash mx-1"></span>
|
||||
Delete License
|
||||
</button> -->
|
||||
{/if} <!-- $event_exhibit_obj?.license_li_json.length < $event_exhibit_obj?.license_max -->
|
||||
|
||||
<div>Use the "Sign In" or "Email" option buttons below to log in using one of the available licenses. If you select a license that is already in use on another device, it will be logged out. The "Sign In" option will use the license selected with your browser. The "Email" option will send an email with a link to log in.</div>
|
||||
|
||||
<section class="ae_license_list ae_h_scrollfix">
|
||||
<form
|
||||
on:submit|preventDefault={() => {
|
||||
@@ -693,7 +685,7 @@ function send_init_confirm_email({to_email}) {
|
||||
{#if index < $event_exhibit_obj?.license_max}
|
||||
<!-- Edit the values and save the new license list information. -->
|
||||
<!-- Button to send an email with the login link -->
|
||||
<div class="btn-group text-sm">
|
||||
<div class="btn-group btn-group-vertical sm:btn-group-vertical md:btn-group lg:btn-group xl:btn-group text-sm">
|
||||
<button
|
||||
type="button"
|
||||
on:click={() => {
|
||||
@@ -703,16 +695,12 @@ function send_init_confirm_email({to_email}) {
|
||||
key: license.email,
|
||||
updated_on: new Date().toISOString()
|
||||
};
|
||||
}
|
||||
|
||||
if ($events_loc.leads.auto_hide_on_sign_in) {
|
||||
$events_loc.leads.tab[$events_slct.exhibit_id] = 'add_scan';
|
||||
if ($events_loc.leads.auto_hide_on_sign_in) {
|
||||
$events_loc.leads.tab[$events_slct.exhibit_id] = 'add_scan';
|
||||
|
||||
$ae_loc.iframe = true;
|
||||
|
||||
// document.getElementsByTagName('html')[0].classList.add('iframe');
|
||||
// document.getElementsByTagName('html')[0].classList.remove('dark');
|
||||
// document.getElementsByTagName('html')[0].classList.remove('light');
|
||||
$ae_loc.iframe = true;
|
||||
}
|
||||
}
|
||||
}}
|
||||
class="btn btn-sm text-sm variant-soft-primary"
|
||||
@@ -788,7 +776,7 @@ function send_init_confirm_email({to_email}) {
|
||||
Save
|
||||
</button>
|
||||
{:else} -->
|
||||
<div class="btn-group">
|
||||
<div class="btn-group btn-group-vertical sm:btn-group-vertical md:btn-group lg:btn-group xl:btn-group text-sm">
|
||||
<button
|
||||
type="button"
|
||||
on:click={() => {
|
||||
|
||||
Reference in New Issue
Block a user