The IDAA BB post page is looking good. Testing....
This commit is contained in:
@@ -62,14 +62,26 @@ if (browser) {
|
||||
</title>
|
||||
</svelte:head>
|
||||
|
||||
<h2 class="ae_title event__title text-2xl font-bold">
|
||||
<h2
|
||||
class="
|
||||
ae_title event__title
|
||||
text-2xl font-bold
|
||||
flex flex-row gap-2 items-center justify-between
|
||||
w-full
|
||||
"
|
||||
>
|
||||
<!-- <span class="ae_icon fas fa-calendar-alt"></span> -->
|
||||
<span class="ae_icon fas fa-calendar-day"></span>
|
||||
{$lq__event_obj?.name ? $lq__event_obj?.name : 'Recovery Meeting'}
|
||||
</h2>
|
||||
|
||||
<div
|
||||
class="flex flex-row gap-2 items-center justify-between mb-4"
|
||||
class="
|
||||
flex flex-row gap-2 items-center justify-between
|
||||
w-full
|
||||
p-1 pb-2 mb-2
|
||||
border-b border-b-surface-300-700
|
||||
"
|
||||
>
|
||||
|
||||
<a href="/idaa/recovery_meetings" class="novi_btn btn btn-secondary btn-sm
|
||||
@@ -99,7 +111,7 @@ if (browser) {
|
||||
</button>
|
||||
{:else}
|
||||
<!-- This checks if the currently logged in Novi user has a matching UUID or email address. -->
|
||||
{#if ($ae_loc.trusted_access && $ae_loc.edit_mode) || idaa_event_obj?.external_person_id === $idaa_loc.novi_uuid || idaa_event_obj?.contact_li_json[0].email === $idaa_loc.novi_email}
|
||||
{#if ($ae_loc.trusted_access && $ae_loc.edit_mode) || $lq__event_obj?.external_person_id === $idaa_loc.novi_uuid || $lq__event_obj?.contact_li_json[0].email === $idaa_loc.novi_email}
|
||||
<button
|
||||
type="button"
|
||||
class="novi_btn btn btn-warning btn-sm preset-tonal-warning border border-warning-500
|
||||
|
||||
@@ -1128,7 +1128,7 @@ function send_staff_notification_email() {
|
||||
type="button"
|
||||
on:click|preventDefault={() => {
|
||||
if (confirm('Are you sure you want to lock these fields? The primary contact name and email address are required.')) {
|
||||
if (!$idaa_slct.event_obj.contact_li_json[0]) {
|
||||
if (!$idaa_slct.event_obj?.contact_li_json[0]) {
|
||||
$idaa_slct.event_obj.contact_li_json[0] = {};
|
||||
}
|
||||
$idaa_slct.event_obj.contact_li_json[0].unlock = true;
|
||||
@@ -1155,7 +1155,7 @@ function send_staff_notification_email() {
|
||||
{/if}
|
||||
|
||||
<label for="contact_1_full_name">Full name
|
||||
{#if !($ae_loc.administrator_access || $idaa_slct.event_obj?.contact_li_json[0]?.unlock)}
|
||||
{#if !($ae_loc.administrator_access || ($idaa_slct.event_obj?.contact_li_json?.length && $idaa_slct.event_obj?.contact_li_json[0]?.unlock))}
|
||||
<span class="fas fa-lock" title="Field is locked"></span>
|
||||
{:else}
|
||||
<span class="fas fa-unlock" title="Field is unlocked"></span>
|
||||
@@ -1167,12 +1167,12 @@ function send_staff_notification_email() {
|
||||
placeholder="Full name"
|
||||
value={($lq__event_obj?.contact_li_json && $lq__event_obj?.contact_li_json[0] && $lq__event_obj?.contact_li_json[0].full_name ? $lq__event_obj?.contact_li_json[0].full_name : '')}
|
||||
autocomplete="name"
|
||||
readonly={!($ae_loc.trusted_access || $idaa_slct.event_obj?.contact_li_json[0]?.unlock)}
|
||||
readonly={!($ae_loc.trusted_access || ($idaa_slct.event_obj?.contact_li_json?.length && $idaa_slct.event_obj?.contact_li_json[0]?.unlock))}
|
||||
required={!$ae_loc.trusted_access}
|
||||
>
|
||||
</label>
|
||||
<label for="contact_1_email">Email
|
||||
{#if !($ae_loc.administrator_access || $idaa_slct.event_obj?.contact_li_json[0]?.unlock)}
|
||||
{#if !($ae_loc.administrator_access || ($idaa_slct.event_obj?.contact_li_json?.length && $idaa_slct.event_obj?.contact_li_json[0]?.unlock))}
|
||||
<span class="fas fa-lock" title="Field is locked"></span>
|
||||
{:else}
|
||||
<span class="fas fa-unlock" title="Field is unlocked"></span>
|
||||
@@ -1185,7 +1185,7 @@ function send_staff_notification_email() {
|
||||
placeholder="Email"
|
||||
value={($lq__event_obj?.contact_li_json && $lq__event_obj?.contact_li_json[0] && $lq__event_obj?.contact_li_json[0].email ? $lq__event_obj?.contact_li_json[0].email : '')}
|
||||
autocomplete="email"
|
||||
readonly={!($ae_loc.trusted_access || $idaa_slct.event_obj?.contact_li_json[0].unlock)}
|
||||
readonly={!($ae_loc.trusted_access || ($idaa_slct.event_obj?.contact_li_json?.length && $idaa_slct.event_obj?.contact_li_json[0].unlock))}
|
||||
required={!$ae_loc.trusted_access}
|
||||
>
|
||||
</label>
|
||||
|
||||
@@ -53,11 +53,10 @@ if ($idaa_slct.event_id) {
|
||||
|
||||
<section class="svelte_component ae_section ae_view event_obj view__event_obj space-y-2">
|
||||
|
||||
<h2 class="ae_title event__title text-2xl font-bold">
|
||||
<!-- <span class="ae_icon fas fa-calendar-alt"></span> -->
|
||||
<!-- <h2 class="ae_title event__title text-2xl font-bold">
|
||||
<span class="ae_icon fas fa-calendar-day"></span>
|
||||
{$lq__event_obj?.name ? $lq__event_obj?.name : 'Recovery Meeting'}
|
||||
</h2>
|
||||
</h2> -->
|
||||
|
||||
<div class="p-2 bg-white shadow-md rounded-lg">
|
||||
<div
|
||||
|
||||
@@ -165,9 +165,11 @@ function add_activity_log(
|
||||
>
|
||||
<span class="fas fa-envelope-open m-1"></span>
|
||||
<!-- <span class="fas fa-info-circle"></span> -->
|
||||
Info X
|
||||
Info
|
||||
</a>
|
||||
<button
|
||||
type="button"
|
||||
disabled={true}
|
||||
on:click={() => {
|
||||
$idaa_slct.event_id = idaa_event_obj?.event_id;
|
||||
$idaa_slct.event_obj = idaa_event_obj;
|
||||
@@ -219,6 +221,8 @@ function add_activity_log(
|
||||
<!-- This checks if the currently logged in Novi user has a matching UUID or email address. -->
|
||||
{#if ($ae_loc.trusted_access && $ae_loc.edit_mode) || idaa_event_obj?.external_person_id === $idaa_loc.novi_uuid || idaa_event_obj?.contact_li_json[0].email === $idaa_loc.novi_email}
|
||||
<button
|
||||
type="button"
|
||||
disabled={true}
|
||||
on:click={() => {
|
||||
$idaa_slct.event_id = idaa_event_obj?.event_id;
|
||||
$idaa_slct.event_obj = idaa_event_obj;
|
||||
|
||||
@@ -331,7 +331,10 @@ $effect(() => {
|
||||
|
||||
<section
|
||||
class="
|
||||
module_main_content main_content grow px-1 md:px-2 pb-28
|
||||
module_main_content main_content
|
||||
grow
|
||||
px-1 md:px-2 pb-28
|
||||
flex flex-col gap-2 items-center justify-start
|
||||
"
|
||||
>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user