This is a good point for things. Looks good and working well.

This commit is contained in:
Scott Idem
2024-03-21 18:13:05 -04:00
parent 7381797a28
commit 18c1c84044
5 changed files with 263 additions and 56 deletions

View File

@@ -377,16 +377,18 @@ function send_init_confirm_email({to_email}) {
let body_html = `
<div>${$event_exhibit_obj?.license_li_json[license_key].full_name},
<p>If this was sent to you incorrectly, plaese ignore.</p>
<p>If this was sent to you incorrectly, please ignore.</p>
</div>
<br>
<div>
Exhibit ID: ${$events_slct.exhibit_id}<br>
<p>Use your license key login link below.<br>
<p>Use your license key sign in link below.<br>
Copy and paste link: <a href="${data.url.origin}/events_leads/exhibit/${$events_slct.exhibit_id}?license_key=${license_key}">${data.url.origin}/events_leads/exhibit/${$events_slct.exhibit_id}?license_key=${license_key}&event_id=${$events_slct.event_id}</a></p>
</div>`;
<p>If the email or passcode for your exhibit is changed, this link will no longer work.</p>
</div>
`;
api.send_email({
api_cfg: $ae_api,
@@ -398,8 +400,6 @@ function send_init_confirm_email({to_email}) {
});
}
</script>
@@ -563,7 +563,7 @@ function send_init_confirm_email({to_email}) {
{#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 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).
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). Use the Clear License button to "log out" or Sign In with a different license.
</p>
{:else if $events_loc?.leads.auth_exhibit_kv[$events_slct.exhibit_id]}
<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>
@@ -973,7 +973,7 @@ function send_init_confirm_email({to_email}) {
placeholder="Email address"
bind:value={$events_sess.leads.tmp_license.email}
required
class="input max-w-48"
class="input max-w-48 m-1"
/>
<input
@@ -982,7 +982,7 @@ function send_init_confirm_email({to_email}) {
placeholder="Full name"
bind:value={$events_sess.leads.tmp_license.full_name}
required
class="input max-w-48"
class="input max-w-48 m-1"
/>
{#if $ae_loc.trusted_access}
@@ -992,7 +992,7 @@ function send_init_confirm_email({to_email}) {
placeholder="Passcode"
bind:value={$events_sess.leads.tmp_license.passcode}
required
class="input max-w-48"
class="input max-w-48 m-1"
/>
{/if}
@@ -1012,7 +1012,7 @@ function send_init_confirm_email({to_email}) {
$events_sess.leads.show_form__license = false;
}}
>
<span class="fas fa-trash mx-1"></span>
<span class="fas fa-trash m-1"></span>
Delete
</button>
@@ -1026,7 +1026,7 @@ function send_init_confirm_email({to_email}) {
// $slct_trigger = 'save__ds__code';
}}
>
<span class="fas fa-save mx-1"></span>
<span class="fas fa-save m-1"></span>
Save
</button>
</div>