Starting to finalize the recovery meetings for going live in Novi.

This commit is contained in:
Scott Idem
2024-11-19 17:31:29 -05:00
parent fea392eff7
commit 9a681455ca
2 changed files with 22 additions and 8 deletions

View File

@@ -570,7 +570,17 @@ async function handle_delete_event_obj(
<section class="ae_section event__general_information border border-gray-200 rounded p-2 space-y-2"> <!-- BEGIN: section event__general_information -->
<label for="name">Name of Recovery Meeting
<input type="text" id="name" name="name" required max="200" value={$lq__event_obj?.name} placeholder="Name of Recovery Meeting" autocomplete="off" class="input w-96" />
<input
type="text"
id="name"
name="name"
required
max="200"
value={$lq__event_obj?.name ?? ''}
placeholder="Name of Recovery Meeting"
autocomplete="off"
class="input w-96"
/>
</label>
<label for="description" class="ae_label event__description">Short description
@@ -901,6 +911,7 @@ async function handle_delete_event_obj(
<label>Timezone
{#if $ae_loc?.lu_time_zone_list && $ae_loc?.lu_time_zone_list.length > 0}
<select name="timezone" required class="select w-56">
<option value="">-- None --</option>
{#each $ae_loc?.lu_time_zone_list as lu_timezone}
<option value="{lu_timezone.name}" selected={((($lq__event_obj?.timezone && lu_timezone.name == $lq__event_obj?.timezone) || lu_timezone.name == $ae_loc?.current_timezone) ? 'selected' : '')}>{lu_timezone.name}</option>
{/each}

View File

@@ -492,20 +492,23 @@ async function handle_qry__event(
if (!confirm('Create new meeting?')) {
return false;
}
$slct.event_id = null;
$slct.event_obj = {};
$idaa_slct.event_id = null;
$idaa_slct.event_obj = {};
const url = new URL(location);
url.searchParams.delete('event_id');
history.pushState({}, '', url);
$idaa_loc.recovery_meetings.show_main__options = false;
$idaa_loc.recovery_meetings.show_list__event_obj_li = false;
$idaa_loc.recovery_meetings.show_view__event_obj = false;
$idaa_loc.recovery_meetings.show_edit__event_obj = true;
// $idaa_loc.recovery_meetings.show_main__options = false;
// $idaa_loc.recovery_meetings.show_list__event_obj_li = false;
// $idaa_loc.recovery_meetings.show_view__event_obj = false;
// $idaa_loc.recovery_meetings.show_edit__event_obj = true;
$idaa_sess.recovery_meetings.show__modal_view = false;
$idaa_sess.recovery_meetings.show__modal_edit = true;
}}
class="btn_new_recovery_meeting btn btn-sm variant-ghost-warning hover:variant-filled-warning transition text-xs"
disabled={true}
disabled={!$ae_loc.administrator_access}
>
<span class="fas fa-plus m-1"></span> Create New Meeting
</button>