Autosave: 20260301-204755
This commit is contained in:
parent
41e72d1c86
commit
e1f682ee18
@ -161,6 +161,26 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
$postcode = $_POST['postcode'] ?? '';
|
||||
$next_action = $_POST['next_action'] ?? 'add_another';
|
||||
|
||||
// Check if all primary fields are empty
|
||||
$is_empty = empty($first_name) && empty($last_name) && empty($email) && empty($dob) && empty($address1) && empty($town) && empty($postcode);
|
||||
|
||||
if ($is_empty) {
|
||||
// If empty, check if we have at least one attorney
|
||||
$check = db()->prepare("SELECT count(*) FROM lpa_attorneys WHERE lpa_id = ? AND type = 'primary'");
|
||||
$check->execute([$lpa_id]);
|
||||
$count = (int)$check->fetchColumn();
|
||||
|
||||
if ($count > 0) {
|
||||
// Success, move to next step if requested
|
||||
$next_step = ($next_action === 'next_step') ? 3 : 2;
|
||||
echo json_encode(['success' => true, 'id' => (int)$lpa_id, 'next_step' => $next_step, 'message' => 'Moving to next step.']);
|
||||
exit;
|
||||
} else {
|
||||
echo json_encode(['success' => false, 'error' => 'At least one attorney must be added.']);
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
if (empty($first_name) || empty($last_name) || empty($email) || empty($dob) || empty($address1) || empty($town) || empty($postcode)) {
|
||||
echo json_encode(['success' => false, 'error' => 'All fields are required to save an attorney.']);
|
||||
exit;
|
||||
|
||||
105
apply.php
105
apply.php
@ -164,7 +164,7 @@ foreach ($notified_persons as $np) {
|
||||
|
||||
<div class="container py-5">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-lg-10">
|
||||
<div class="col-lg-12">
|
||||
<div class="mb-5">
|
||||
<div class="d-flex justify-content-between align-items-center mb-2">
|
||||
<span class="small fw-semibold text-muted text-uppercase tracking-wider">Step <?php echo $step; ?> of 14</span>
|
||||
@ -191,7 +191,7 @@ foreach ($notified_persons as $np) {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card p-4 p-md-5">
|
||||
<div class="card p-4 p-md-5 mb-5">
|
||||
<?php if ($step === 1): ?>
|
||||
<h2 class="h4 fw-bold mb-4">Let's get started.</h2>
|
||||
<p class="text-muted mb-5">Please select the type of LPA and provide the donor's details and address. You can save your progress and return later.</p>
|
||||
@ -252,7 +252,7 @@ foreach ($notified_persons as $np) {
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<label for="donor_address_line2" class="form-label fw-semibold">Address Line 2 (Optional)</label>
|
||||
<input type="text" class="form-control" id="donor_address_line2" name="donor_address_line2" placeholder="Apartment, suite, unit, etc." value="<?php echo htmlspecialchars($lpa_data['donor_address_line2'] ?? ''); ?>">
|
||||
<input type="text" class="form-control" id="donor_address_line2" name="donor_address_line2" value="<?php echo htmlspecialchars($lpa_data['donor_address_line2'] ?? ''); ?>">
|
||||
</div>
|
||||
<div class="col-md-8">
|
||||
<label for="donor_town" class="form-label fw-semibold">Town / City</label>
|
||||
@ -264,7 +264,7 @@ foreach ($notified_persons as $np) {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="mt-5 d-flex justify-content-between align-items-center">
|
||||
<div class="mt-5 mb-5 pt-4 border-top d-flex justify-content-between align-items-center">
|
||||
<a href="/dashboard.php" class="btn btn-link text-decoration-none text-muted p-0">Cancel</a>
|
||||
<button type="submit" class="btn btn-primary btn-lg px-5">Continue to Step 2</button>
|
||||
</div>
|
||||
@ -299,25 +299,26 @@ foreach ($notified_persons as $np) {
|
||||
<input type="hidden" name="lpa_id" value="<?php echo $lpa_id; ?>">
|
||||
|
||||
<div class="row g-3">
|
||||
<?php $req = (empty($attorneys)) ? 'required' : ''; ?>
|
||||
<div class="col-md-2">
|
||||
<label for="title" class="form-label fw-semibold">Title</label>
|
||||
<input type="text" class="form-control" id="title" name="title" placeholder="Mr/Ms" required>
|
||||
<input type="text" class="form-control" id="title" name="title" placeholder="Mr/Ms" <?php echo $req; ?>>
|
||||
</div>
|
||||
<div class="col-md-5">
|
||||
<label for="first_name" class="form-label fw-semibold">First Name</label>
|
||||
<input type="text" class="form-control" id="first_name" name="first_name" required>
|
||||
<input type="text" class="form-control" id="first_name" name="first_name" <?php echo $req; ?>>
|
||||
</div>
|
||||
<div class="col-md-5">
|
||||
<label for="last_name" class="form-label fw-semibold">Last Name</label>
|
||||
<input type="text" class="form-control" id="last_name" name="last_name" required>
|
||||
<input type="text" class="form-control" id="last_name" name="last_name" <?php echo $req; ?>>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<label for="email" class="form-label fw-semibold">Email Address</label>
|
||||
<input type="email" class="form-control" id="email" name="email" required>
|
||||
<input type="email" class="form-control" id="email" name="email" <?php echo $req; ?>>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<label for="dob" class="form-label fw-semibold">Date of Birth</label>
|
||||
<input type="date" class="form-control" id="dob" name="dob" required>
|
||||
<input type="date" class="form-control" id="dob" name="dob" <?php echo $req; ?>>
|
||||
</div>
|
||||
|
||||
<div class="col-12 mt-4">
|
||||
@ -326,7 +327,7 @@ foreach ($notified_persons as $np) {
|
||||
|
||||
<div class="col-12">
|
||||
<label for="address_line1" class="form-label fw-semibold">Address Line 1</label>
|
||||
<input type="text" class="form-control" id="address_line1" name="address_line1" required>
|
||||
<input type="text" class="form-control" id="address_line1" name="address_line1" <?php echo $req; ?>>
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<label for="address_line2" class="form-label fw-semibold">Address Line 2 (Optional)</label>
|
||||
@ -338,11 +339,11 @@ foreach ($notified_persons as $np) {
|
||||
</div>
|
||||
<div class="col-md-8">
|
||||
<label for="town" class="form-label fw-semibold">Town / City</label>
|
||||
<input type="text" class="form-control" id="town" name="town" required>
|
||||
<input type="text" class="form-control" id="town" name="town" <?php echo $req; ?>>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<label for="postcode" class="form-label fw-semibold">Postcode</label>
|
||||
<input type="text" class="form-control" id="postcode" name="postcode" required>
|
||||
<input type="text" class="form-control" id="postcode" name="postcode" <?php echo $req; ?>>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -353,7 +354,7 @@ foreach ($notified_persons as $np) {
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="mt-5 d-flex justify-content-between align-items-center">
|
||||
<div class="mt-5 mb-5 pt-4 border-top d-flex justify-content-between align-items-center">
|
||||
<a href="apply.php?step=1&id=<?php echo $lpa_id; ?>" class="btn btn-link text-decoration-none text-muted p-0">Back to Step 1</a>
|
||||
<?php if (!empty($attorneys)): ?>
|
||||
<a href="apply.php?step=3&id=<?php echo $lpa_id; ?>" class="btn btn-primary btn-lg px-5">Continue to Step 3</a>
|
||||
@ -435,7 +436,7 @@ foreach ($notified_persons as $np) {
|
||||
<input type="hidden" name="attorney_decision_type" value="I only appointed one attorney">
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="mt-5 d-flex justify-content-between align-items-center">
|
||||
<div class="mt-5 mb-5 pt-4 border-top d-flex justify-content-between align-items-center">
|
||||
<a href="apply.php?step=2&id=<?php echo $lpa_id; ?>" class="btn btn-link text-decoration-none text-muted p-0">Back to Step 2</a>
|
||||
<button type="submit" class="btn btn-primary btn-lg px-5">Continue to Step 4</button>
|
||||
</div>
|
||||
@ -524,9 +525,9 @@ foreach ($notified_persons as $np) {
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="mt-5 d-flex justify-content-between align-items-center">
|
||||
<div class="mt-5 mb-5 pt-4 border-top d-flex justify-content-between align-items-center">
|
||||
<a href="apply.php?step=3&id=<?php echo $lpa_id; ?>" class="btn btn-link text-decoration-none text-muted p-0">Back to Step 3</a>
|
||||
<a href="apply.php?step=5&id=<?php echo $lpa_id; ?>" class="btn btn-outline-secondary btn-lg px-4">Skip to Step 5</a>
|
||||
<a href="apply.php?step=5&id=<?php echo $lpa_id; ?>" class="btn btn-primary btn-lg px-5">Continue to Step 5</a>
|
||||
</div>
|
||||
<?php elseif ($step === 5): ?>
|
||||
<h2 class="h4 fw-bold mb-4">Life-sustaining treatment</h2>
|
||||
@ -537,10 +538,10 @@ foreach ($notified_persons as $np) {
|
||||
<input type="hidden" name="lpa_id" value="<?php echo $lpa_id; ?>">
|
||||
|
||||
<div class="mb-5">
|
||||
<div class="row g-3">
|
||||
<div class="col-12">
|
||||
<div class="row g-4">
|
||||
<div class="col-md-6">
|
||||
<input type="radio" class="btn-check" name="life_sustaining_treatment" id="lst_a" value="Option A" <?php echo ($lpa_data && $lpa_data['life_sustaining_treatment'] === 'Option A') ? 'checked' : ''; ?> required>
|
||||
<label class="btn btn-outline-secondary w-100 p-4 text-start h-100 mb-3 d-flex align-items-center" for="lst_a">
|
||||
<label class="btn btn-outline-secondary w-100 p-3 text-start h-100 d-flex align-items-center" for="lst_a">
|
||||
<div class="flex-grow-1">
|
||||
<div class="fw-bold text-dark mb-1">Option A</div>
|
||||
<div class="text-muted small">I give my attorneys authority to give or refuse consent to life-sustaining treatment on my behalf.</div>
|
||||
@ -549,9 +550,11 @@ foreach ($notified_persons as $np) {
|
||||
<div class="form-check-input-placeholder"></div>
|
||||
</div>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
<input type="radio" class="btn-check" name="life_sustaining_treatment" id="lst_b" value="Option B" <?php echo ($lpa_data && $lpa_data['life_sustaining_treatment'] === 'Option B') ? 'checked' : ''; ?>>
|
||||
<label class="btn btn-outline-secondary w-100 p-4 text-start h-100 d-flex align-items-center" for="lst_b">
|
||||
<label class="btn btn-outline-secondary w-100 p-3 text-start h-100 d-flex align-items-center" for="lst_b">
|
||||
<div class="flex-grow-1">
|
||||
<div class="fw-bold text-dark mb-1">Option B</div>
|
||||
<div class="text-muted small">I do not give my attorneys authority to give or refuse consent to life-sustaining treatment on my behalf.</div>
|
||||
@ -561,21 +564,22 @@ foreach ($notified_persons as $np) {
|
||||
</div>
|
||||
</label>
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<div class="mt-4 pt-4 border-top d-flex justify-content-between align-items-center">
|
||||
<a href="apply.php?step=4&id=<?php echo $lpa_id; ?>" class="btn btn-link text-decoration-none text-muted p-0">Back to Step 4</a>
|
||||
<button type="submit" class="btn btn-primary btn-lg px-5">Continue to Step 6</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="mt-5 d-flex justify-content-between align-items-center">
|
||||
<a href="apply.php?step=4&id=<?php echo $lpa_id; ?>" class="btn btn-link text-decoration-none text-muted p-0">Back to Step 4</a>
|
||||
<button type="submit" class="btn btn-primary btn-lg px-5">Continue to Step 6</button>
|
||||
</div>
|
||||
</form>
|
||||
<?php elseif ($step === 6): ?>
|
||||
<h2 class="h4 fw-bold mb-4">Witness Information</h2>
|
||||
<p class="text-muted mb-5">Provide the details of the person who will witness the donor's signature.</p>
|
||||
|
||||
<form id="lpaFormStep6" class="lpa-form" method="POST" action="api/save_lpa.php">
|
||||
<input type="hidden" name="step" value="6">
|
||||
<input type="hidden" name="lpa_id" value="<?php echo $lpa_id; ?>">
|
||||
<input type="hidden" name="step" value="6">
|
||||
|
||||
<div class="mb-5">
|
||||
<div class="row g-4">
|
||||
@ -610,7 +614,7 @@ foreach ($notified_persons as $np) {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="mt-5 d-flex justify-content-between align-items-center">
|
||||
<div class="mt-5 mb-5 pt-4 border-top d-flex justify-content-between align-items-center">
|
||||
<a href="apply.php?step=5&id=<?php echo $lpa_id; ?>" class="btn btn-link text-decoration-none text-muted p-0">Back to Step 5</a>
|
||||
<button type="submit" class="btn btn-primary btn-lg px-5">Continue to Step 7</button>
|
||||
</div>
|
||||
@ -689,14 +693,17 @@ foreach ($notified_persons as $np) {
|
||||
</div>
|
||||
|
||||
<div class="mt-4 d-flex gap-3">
|
||||
<button type="submit" name="next_action" value="add_another" class="btn btn-outline-primary w-100">Notify another person</button>
|
||||
<button type="submit" name="next_action" value="next_step" class="btn btn-primary w-100">Step 8</button>
|
||||
<button type="submit" name="next_action" value="add_another" class="btn btn-outline-primary w-100">Add Another Person to Notify</button>
|
||||
<button type="submit" name="next_action" value="next_step" class="btn btn-primary w-100">Save & Continue to Step 8</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="mt-5 d-flex justify-content-between align-items-center">
|
||||
<div class="mt-5 mb-5 pt-4 border-top d-flex justify-content-between align-items-center">
|
||||
<a href="apply.php?step=6&id=<?php echo $lpa_id; ?>" class="btn btn-link text-decoration-none text-muted p-0">Back to Step 6</a>
|
||||
<?php if (!empty($notified_persons)): ?>
|
||||
<a href="apply.php?step=8&id=<?php echo $lpa_id; ?>" class="btn btn-primary btn-lg px-5">Continue to Step 8</a>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php elseif ($step === 8): ?>
|
||||
@ -722,9 +729,9 @@ foreach ($notified_persons as $np) {
|
||||
<textarea class="form-control" name="instructions" rows="6" placeholder="Enter your instructions here..."><?php echo htmlspecialchars($lpa_data['instructions'] ?? ''); ?></textarea>
|
||||
</div>
|
||||
|
||||
<div class="mt-5 d-flex justify-content-between align-items-center">
|
||||
<div class="mt-5 mb-5 pt-4 border-top d-flex justify-content-between align-items-center">
|
||||
<a href="apply.php?step=7&id=<?php echo $lpa_id; ?>" class="btn btn-link text-decoration-none text-muted p-0">Back to Step 7</a>
|
||||
<button type="submit" class="btn btn-primary btn-lg px-5">Step 9</button>
|
||||
<button type="submit" class="btn btn-primary btn-lg px-5">Continue to Step 9</button>
|
||||
</div>
|
||||
</form>
|
||||
<?php elseif ($step === 9): ?>
|
||||
@ -766,9 +773,9 @@ foreach ($notified_persons as $np) {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="mt-5 d-flex justify-content-between align-items-center">
|
||||
<div class="mt-5 mb-5 pt-4 border-top d-flex justify-content-between align-items-center">
|
||||
<a href="apply.php?step=8&id=<?php echo $lpa_id; ?>" class="btn btn-link text-decoration-none text-muted p-0">Back to Step 8</a>
|
||||
<button type="submit" class="btn btn-primary btn-lg px-5">Step 10</button>
|
||||
<button type="submit" class="btn btn-primary btn-lg px-5">Continue to Step 10</button>
|
||||
</div>
|
||||
</form>
|
||||
<?php elseif ($step === 10): ?>
|
||||
@ -838,9 +845,9 @@ foreach ($notified_persons as $np) {
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
|
||||
<div class="mt-5 d-flex justify-content-between align-items-center">
|
||||
<div class="mt-5 mb-5 pt-4 border-top d-flex justify-content-between align-items-center">
|
||||
<a href="apply.php?step=9&id=<?php echo $lpa_id; ?>" class="btn btn-link text-decoration-none text-muted p-0">Back to Step 9</a>
|
||||
<button type="submit" class="btn btn-primary btn-lg px-5">Step 11</button>
|
||||
<button type="submit" class="btn btn-primary btn-lg px-5">Continue to Step 11</button>
|
||||
</div>
|
||||
</form>
|
||||
<?php elseif ($step === 11): ?>
|
||||
@ -855,7 +862,7 @@ foreach ($notified_persons as $np) {
|
||||
<div class="form-check p-0 mb-4">
|
||||
<input type="radio" class="btn-check" name="registration_who" id="reg_donor" value="donor"
|
||||
<?php echo ($lpa_data && $lpa_data['registration_who'] === 'donor') ? 'checked' : 'checked'; ?> required>
|
||||
<label class="btn btn-outline-secondary w-100 p-4 text-start h-100 d-flex align-items-center" for="reg_donor" onclick="document.getElementById('attorney_selection').classList.add('d-none')">
|
||||
<label class="btn btn-outline-secondary w-100 p-3 text-start h-100 d-flex align-items-center" for="reg_donor" onclick="document.getElementById('attorney_selection').classList.add('d-none')">
|
||||
<div class="flex-grow-1">
|
||||
<div class="fw-bold text-dark mb-1">The donor</div>
|
||||
<div class="small text-muted">The person who is making the LPA.</div>
|
||||
@ -869,7 +876,7 @@ foreach ($notified_persons as $np) {
|
||||
<div class="form-check p-0 mb-4">
|
||||
<input type="radio" class="btn-check" name="registration_who" id="reg_attorneys" value="attorneys"
|
||||
<?php echo ($lpa_data && $lpa_data['registration_who'] === 'attorneys') ? 'checked' : ''; ?>>
|
||||
<label class="btn btn-outline-secondary w-100 p-4 text-start h-100 d-flex align-items-center" for="reg_attorneys" onclick="document.getElementById('attorney_selection').classList.remove('d-none')">
|
||||
<label class="btn btn-outline-secondary w-100 p-3 text-start h-100 d-flex align-items-center" for="reg_attorneys" onclick="document.getElementById('attorney_selection').classList.remove('d-none')">
|
||||
<div class="flex-grow-1">
|
||||
<div class="fw-bold text-dark mb-1">The attorney(s)</div>
|
||||
<div class="small text-muted">One or more of the attorneys appointed in this LPA.</div>
|
||||
@ -901,7 +908,7 @@ foreach ($notified_persons as $np) {
|
||||
<p class="small text-muted mt-3">If you appointed attorneys jointly, they must all register the LPA together.</p>
|
||||
</div>
|
||||
|
||||
<div class="mt-5 d-flex justify-content-between align-items-center">
|
||||
<div class="mt-5 mb-5 pt-4 border-top d-flex justify-content-between align-items-center">
|
||||
<a href="apply.php?step=10&id=<?php echo $lpa_id; ?>" class="btn btn-link text-decoration-none text-muted p-0">Back to Step 10</a>
|
||||
<button type="submit" class="btn btn-primary btn-lg px-5">Continue to Step 12</button>
|
||||
</div>
|
||||
@ -918,7 +925,7 @@ foreach ($notified_persons as $np) {
|
||||
<div class="form-check p-0 mb-4">
|
||||
<input type="radio" class="btn-check" name="correspondence_who" id="corr_donor" value="Donor"
|
||||
<?php echo ($lpa_data && $lpa_data['correspondence_who'] === 'Donor') ? 'checked' : 'checked'; ?> required>
|
||||
<label class="btn btn-outline-secondary w-100 p-4 text-start h-100 d-flex align-items-center" for="corr_donor">
|
||||
<label class="btn btn-outline-secondary w-100 p-3 text-start h-100 d-flex align-items-center" for="corr_donor">
|
||||
<div class="flex-grow-1">
|
||||
<div class="fw-bold text-dark mb-1">The donor</div>
|
||||
<div class="small text-muted">Send the registered LPA to the donor's address.</div>
|
||||
@ -932,7 +939,7 @@ foreach ($notified_persons as $np) {
|
||||
<div class="form-check p-0 mb-4">
|
||||
<input type="radio" class="btn-check" name="correspondence_who" id="corr_attorney" value="Attorney"
|
||||
<?php echo ($lpa_data && $lpa_data['correspondence_who'] === 'Attorney') ? 'checked' : ''; ?>>
|
||||
<label class="btn btn-outline-secondary w-100 p-4 text-start h-100 d-flex align-items-center" for="corr_attorney">
|
||||
<label class="btn btn-outline-secondary w-100 p-3 text-start h-100 d-flex align-items-center" for="corr_attorney">
|
||||
<div class="flex-grow-1">
|
||||
<div class="fw-bold text-dark mb-1">An Attorney</div>
|
||||
<div class="small text-muted">Send the registered LPA to one of the attorneys.</div>
|
||||
@ -946,7 +953,7 @@ foreach ($notified_persons as $np) {
|
||||
<div class="form-check p-0 mb-4">
|
||||
<input type="radio" class="btn-check" name="correspondence_who" id="corr_other" value="Other"
|
||||
<?php echo ($lpa_data && $lpa_data['correspondence_who'] === 'Other') ? 'checked' : ''; ?>>
|
||||
<label class="btn btn-outline-secondary w-100 p-4 text-start h-100 d-flex align-items-center" for="corr_other">
|
||||
<label class="btn btn-outline-secondary w-100 p-3 text-start h-100 d-flex align-items-center" for="corr_other">
|
||||
<div class="flex-grow-1">
|
||||
<div class="fw-bold text-dark mb-1">Other</div>
|
||||
<div class="small text-muted">Send the registered LPA to another person or company.</div>
|
||||
@ -1031,9 +1038,9 @@ foreach ($notified_persons as $np) {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="mt-5 d-flex justify-content-between align-items-center">
|
||||
<div class="mt-5 mb-5 pt-4 border-top d-flex justify-content-between align-items-center">
|
||||
<a href="apply.php?step=11&id=<?php echo $lpa_id; ?>" class="btn btn-link text-decoration-none text-muted p-0">Back to Step 11</a>
|
||||
<button type="submit" class="btn btn-primary btn-lg px-5">Continue to Step 12</button>
|
||||
<button type="submit" class="btn btn-primary btn-lg px-5">Continue to Step 13</button>
|
||||
</div>
|
||||
</form>
|
||||
<?php elseif ($step === 13): ?>
|
||||
@ -1049,7 +1056,7 @@ foreach ($notified_persons as $np) {
|
||||
<div class="row g-3">
|
||||
<div class="col-md-6">
|
||||
<input type="radio" class="btn-check" name="payment_method" id="pay_card" value="Card" <?php echo ($lpa_data && $lpa_data['payment_method'] === 'Card') ? 'checked' : 'checked'; ?> required>
|
||||
<label class="btn btn-outline-secondary w-100 p-4 text-start h-100 d-flex align-items-center" for="pay_card" onclick="document.getElementById('payment_phone_box').classList.remove('d-none')">
|
||||
<label class="btn btn-outline-secondary w-100 p-3 text-start h-100 d-flex align-items-center" for="pay_card" onclick="document.getElementById('payment_phone_box').classList.remove('d-none')">
|
||||
<div class="flex-grow-1">
|
||||
<div class="fw-bold text-dark mb-1">Credit or debit card</div>
|
||||
<div class="small text-muted">We will contact you to take payment.</div>
|
||||
@ -1061,7 +1068,7 @@ foreach ($notified_persons as $np) {
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<input type="radio" class="btn-check" name="payment_method" id="pay_cheque" value="Cheque" <?php echo ($lpa_data && $lpa_data['payment_method'] === 'Cheque') ? 'checked' : ''; ?>>
|
||||
<label class="btn btn-outline-secondary w-100 p-4 text-start h-100 d-flex align-items-center" for="pay_cheque" onclick="document.getElementById('payment_phone_box').classList.add('d-none')">
|
||||
<label class="btn btn-outline-secondary w-100 p-3 text-start h-100 d-flex align-items-center" for="pay_cheque" onclick="document.getElementById('payment_phone_box').classList.add('d-none')">
|
||||
<div class="flex-grow-1">
|
||||
<div class="fw-bold text-dark mb-1">Cheque</div>
|
||||
<div class="small text-muted">Send a cheque for £82 made payable to 'Office of the Public Guardian'.</div>
|
||||
@ -1112,7 +1119,7 @@ foreach ($notified_persons as $np) {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="mt-5 d-flex justify-content-between align-items-center">
|
||||
<div class="mt-5 mb-5 pt-4 border-top d-flex justify-content-between align-items-center">
|
||||
<a href="apply.php?step=12&id=<?php echo $lpa_id; ?>" class="btn btn-link text-decoration-none text-muted p-0">Back to Step 12</a>
|
||||
<button type="submit" class="btn btn-primary btn-lg px-5">Continue to Step 14</button>
|
||||
</div>
|
||||
@ -1408,7 +1415,7 @@ foreach ($notified_persons as $np) {
|
||||
<input type="hidden" name="step" value="14">
|
||||
<input type="hidden" name="lpa_id" value="<?php echo $lpa_id; ?>">
|
||||
|
||||
<div class="mt-5 d-flex justify-content-between align-items-center">
|
||||
<div class="mt-5 mb-5 pt-4 border-top d-flex justify-content-between align-items-center">
|
||||
<a href="apply.php?step=13&id=<?php echo $lpa_id; ?>" class="btn btn-link text-decoration-none text-muted p-0">Back to Step 13</a>
|
||||
<div class="d-flex gap-2">
|
||||
<a href="api/generate_pdf.php?id=<?php echo $lpa_id; ?>" target="_blank" class="btn btn-outline-primary btn-lg px-4">Download Summary PDF</a>
|
||||
@ -1425,4 +1432,4 @@ foreach ($notified_persons as $np) {
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
|
||||
<script src="assets/js/main.js?v=<?php echo time(); ?>"></script>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user