fix
This commit is contained in:
@@ -51,250 +51,32 @@ $email_preff = array (
|
||||
<div id="kt_account_settings_email_preferences" class="collapse show">
|
||||
<!--begin::Form-->
|
||||
<form class="form">
|
||||
<?php
|
||||
foreach ($email_preff as $rw){
|
||||
?>
|
||||
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
<!--begin::Card body-->
|
||||
<div class="card-body border-top px-9 py-9">
|
||||
|
||||
|
||||
<!--begin::Option-->
|
||||
<label class="form-check form-check-custom form-check-solid align-items-start">
|
||||
<!--begin::Input-->
|
||||
<input class="form-check-input me-3" type="checkbox" name="email-preferences[]" value="1" />
|
||||
<!--end::Input-->
|
||||
<!--begin::Label-->
|
||||
<span class="form-check-label d-flex flex-column align-items-start">
|
||||
<span class="fw-bolder fs-5 mb-0">Successful Payments</span>
|
||||
<span class="text-muted fs-6">Receive a notification for every successful payment.</span>
|
||||
</span>
|
||||
<!--end::Label-->
|
||||
</label>
|
||||
<!--end::Option-->
|
||||
|
||||
|
||||
<!--begin::Option-->
|
||||
<div class="separator separator-dashed my-6"></div>
|
||||
<!--end::Option-->
|
||||
<!--begin::Option-->
|
||||
<label class="form-check form-check-custom form-check-solid align-items-start">
|
||||
<!--begin::Input-->
|
||||
<input class="form-check-input me-3" type="checkbox" name="email-preferences[]" checked="checked" value="1" />
|
||||
<!--end::Input-->
|
||||
<!--begin::Label-->
|
||||
<span class="form-check-label d-flex flex-column align-items-start">
|
||||
<span class="fw-bolder fs-5 mb-0">Payouts</span>
|
||||
<span class="text-muted fs-6">Receive a notification for every initiated payout.</span>
|
||||
</span>
|
||||
<!--end::Label-->
|
||||
</label>
|
||||
<!--end::Option-->
|
||||
<!--begin::Option-->
|
||||
<div class="separator separator-dashed my-6"></div>
|
||||
<!--end::Option-->
|
||||
<!--begin::Option-->
|
||||
<label class="form-check form-check-custom form-check-solid align-items-start">
|
||||
<!--begin::Input-->
|
||||
<input class="form-check-input me-3" type="checkbox" name="email-preferences[]" value="1" />
|
||||
<!--end::Input-->
|
||||
<!--begin::Label-->
|
||||
<span class="form-check-label d-flex flex-column align-items-start">
|
||||
<span class="fw-bolder fs-5 mb-0">Fee Collection</span>
|
||||
<span class="text-muted fs-6">Receive a notification each time you collect a fee from sales</span>
|
||||
</span>
|
||||
<!--end::Label-->
|
||||
</label>
|
||||
<!--end::Option-->
|
||||
<!--begin::Option-->
|
||||
<div class="separator separator-dashed my-6"></div>
|
||||
<!--end::Option-->
|
||||
<!--begin::Option-->
|
||||
<label class="form-check form-check-custom form-check-solid align-items-start">
|
||||
<!--begin::Input-->
|
||||
<input class="form-check-input me-3" type="checkbox" name="email-preferences[]" checked="checked" value="1" />
|
||||
<!--end::Input-->
|
||||
<!--begin::Label-->
|
||||
<span class="form-check-label d-flex flex-column align-items-start">
|
||||
<span class="fw-bolder fs-5 mb-0">Customer Payment Dispute</span>
|
||||
<span class="text-muted fs-6">Receive a notification if a payment is disputed by a customer and for dispute purposes.</span>
|
||||
</span>
|
||||
<!--end::Label-->
|
||||
</label>
|
||||
<!--end::Option-->
|
||||
<!--begin::Option-->
|
||||
<div class="separator separator-dashed my-6"></div>
|
||||
<!--end::Option-->
|
||||
<!--begin::Option-->
|
||||
<label class="form-check form-check-custom form-check-solid align-items-start">
|
||||
<!--begin::Input-->
|
||||
<input class="form-check-input me-3" type="checkbox" name="email-preferences[]" value="1" />
|
||||
<!--end::Input-->
|
||||
<!--begin::Label-->
|
||||
<span class="form-check-label d-flex flex-column align-items-start">
|
||||
<span class="fw-bolder fs-5 mb-0">Refund Alerts</span>
|
||||
<span class="text-muted fs-6">Receive a notification if a payment is stated as risk by the Finance Department.</span>
|
||||
</span>
|
||||
<!--end::Label-->
|
||||
</label>
|
||||
<!--end::Option-->
|
||||
<!--begin::Option-->
|
||||
<div class="separator separator-dashed my-6"></div>
|
||||
<!--end::Option-->
|
||||
<!--begin::Option-->
|
||||
<label class="form-check form-check-custom form-check-solid align-items-start">
|
||||
<!--begin::Input-->
|
||||
<input class="form-check-input me-3" type="checkbox" name="email-preferences[]" checked="checked" value="1" />
|
||||
<!--end::Input-->
|
||||
<!--begin::Label-->
|
||||
<span class="form-check-label d-flex flex-column align-items-start">
|
||||
<span class="fw-bolder fs-5 mb-0">Invoice Payments</span>
|
||||
<span class="text-muted fs-6">Receive a notification if a customer sends an incorrect amount to pay their invoice.</span>
|
||||
</span>
|
||||
<!--end::Label-->
|
||||
</label>
|
||||
<!--end::Option-->
|
||||
<!--begin::Option-->
|
||||
<div class="separator separator-dashed my-6"></div>
|
||||
<!--end::Option-->
|
||||
<!--begin::Option-->
|
||||
<label class="form-check form-check-custom form-check-solid align-items-start">
|
||||
<!--begin::Input-->
|
||||
<input class="form-check-input me-3" type="checkbox" name="email-preferences[]" value="1" />
|
||||
<!--end::Input-->
|
||||
<!--begin::Label-->
|
||||
<span class="form-check-label d-flex flex-column align-items-start">
|
||||
<span class="fw-bolder fs-5 mb-0">Webhook API Endpoints</span>
|
||||
<span class="text-muted fs-6">Receive notifications for consistently failing webhook API endpoints.</span>
|
||||
</span>
|
||||
<!--end::Label-->
|
||||
</label>
|
||||
<!--end::Option-->
|
||||
</div>
|
||||
<!--end::Card body-->
|
||||
<!--begin::Card footer-->
|
||||
<div class="card-footer d-flex justify-content-end py-6 px-9">
|
||||
<button class="btn btn-primary px-6">Save Changes</button>
|
||||
</div>
|
||||
<!--end::Card footer-->
|
||||
</form>
|
||||
<!--end::Form-->
|
||||
</div>
|
||||
<!--end::Content-->
|
||||
</div>
|
||||
<!--end::Notifications-->
|
||||
<!--begin::Notifications-->
|
||||
<div class="card mb-5 mb-xl-10">
|
||||
<!--begin::Card header-->
|
||||
<div class="card-header border-0 cursor-pointer" role="button" data-bs-toggle="collapse" data-bs-target="#kt_account_notifications" aria-expanded="true" aria-controls="kt_account_notifications">
|
||||
<div class="card-title m-0">
|
||||
<h3 class="fw-bolder m-0">Notifications</h3>
|
||||
</div>
|
||||
</div>
|
||||
<!--begin::Card header-->
|
||||
<!--begin::Content-->
|
||||
<div id="kt_account_settings_notifications" class="collapse show">
|
||||
<!--begin::Form-->
|
||||
<form class="form">
|
||||
<!--begin::Card body-->
|
||||
<div class="card-body border-top px-9 pt-3 pb-4">
|
||||
<!--begin::Table-->
|
||||
<div class="table-responsive">
|
||||
<table class="table table-row-dashed border-gray-300 align-middle gy-6">
|
||||
<tbody class="fs-6 fw-bold">
|
||||
<!--begin::Table row-->
|
||||
<tr>
|
||||
<td class="min-w-250px fs-4 fw-bolder">Notifications</td>
|
||||
<td class="w-125px">
|
||||
<div class="form-check form-check-solid">
|
||||
<input class="form-check-input" type="checkbox" value="" id="kt_settings_notification_email" checked="checked" data-kt-check="true" data-kt-check-target="[data-kt-settings-notification=email]" />
|
||||
<label class="form-check-label ps-2" for="kt_settings_notification_email">Email</label>
|
||||
</div>
|
||||
</td>
|
||||
<td class="w-125px">
|
||||
<div class="form-check form-check-solid">
|
||||
<input class="form-check-input" type="checkbox" value="" id="kt_settings_notification_phone" checked="checked" data-kt-check="true" data-kt-check-target="[data-kt-settings-notification=phone]" />
|
||||
<label class="form-check-label ps-2" for="kt_settings_notification_phone">Text</label>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<!--begin::Table row-->
|
||||
<!--begin::Table row-->
|
||||
<tr>
|
||||
<td>Billing Updates</td>
|
||||
<td>
|
||||
<div class="form-check form-check-solid">
|
||||
<input class="form-check-input" type="checkbox" value="1" id="billing1" checked="checked" data-kt-settings-notification="email" />
|
||||
<label class="form-check-label ps-2" for="billing1"></label>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form-check form-check-solid">
|
||||
<input class="form-check-input" type="checkbox" value="" id="billing2" checked="checked" data-kt-settings-notification="phone" />
|
||||
<label class="form-check-label ps-2" for="billing2"></label>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<!--begin::Table row-->
|
||||
<!--begin::Table row-->
|
||||
<tr>
|
||||
<td>New Team Members</td>
|
||||
<td>
|
||||
<div class="form-check form-check-solid">
|
||||
<input class="form-check-input" type="checkbox" value="" id="team1" checked="checked" data-kt-settings-notification="email" />
|
||||
<label class="form-check-label ps-2" for="team1"></label>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form-check form-check-solid">
|
||||
<input class="form-check-input" type="checkbox" value="" id="team2" data-kt-settings-notification="phone" />
|
||||
<label class="form-check-label ps-2" for="team2"></label>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<!--begin::Table row-->
|
||||
<!--begin::Table row-->
|
||||
<tr>
|
||||
<td>Completed Projects</td>
|
||||
<td>
|
||||
<div class="form-check form-check-solid">
|
||||
<input class="form-check-input" type="checkbox" value="" id="project1" data-kt-settings-notification="email" />
|
||||
<label class="form-check-label ps-2" for="project1"></label>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form-check form-check-solid">
|
||||
<input class="form-check-input" type="checkbox" value="" id="project2" checked="checked" data-kt-settings-notification="phone" />
|
||||
<label class="form-check-label ps-2" for="project2"></label>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<!--begin::Table row-->
|
||||
<!--begin::Table row-->
|
||||
<tr>
|
||||
<td class="border-bottom-0">Newsletters</td>
|
||||
<td class="border-bottom-0">
|
||||
<div class="form-check form-check-solid">
|
||||
<input class="form-check-input" type="checkbox" value="" id="newsletter1" data-kt-settings-notification="email" />
|
||||
<label class="form-check-label ps-2" for="newsletter1"></label>
|
||||
</div>
|
||||
</td>
|
||||
<td class="border-bottom-0">
|
||||
<div class="form-check form-check-solid">
|
||||
<input class="form-check-input" type="checkbox" value="" id="newsletter2" data-kt-settings-notification="phone" />
|
||||
<label class="form-check-label ps-2" for="newsletter2"></label>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<!--begin::Table row-->
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!--end::Table-->
|
||||
<?php
|
||||
foreach ($email_preff as $rw){
|
||||
?>
|
||||
<!--begin::Option-->
|
||||
<label class="form-check form-check-custom form-check-solid align-items-start">
|
||||
<!--begin::Input-->
|
||||
<input class="form-check-input me-3" type="checkbox" name="email-preferences[]" value="1" />
|
||||
<!--end::Input-->
|
||||
<!--begin::Label-->
|
||||
<span class="form-check-label d-flex flex-column align-items-start">
|
||||
<span class="fw-bolder fs-5 mb-0"><?=$rw['title']?></span>
|
||||
<span class="text-muted fs-6"><?=$rw['desc']?></span>
|
||||
</span>
|
||||
<!--end::Label-->
|
||||
</label>
|
||||
<!--end::Option-->
|
||||
<!--begin::Option-->
|
||||
<div class="separator separator-dashed my-6"></div>
|
||||
<!--end::Option-->
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<!--end::Card body-->
|
||||
<!--begin::Card footer-->
|
||||
@@ -308,6 +90,7 @@ $email_preff = array (
|
||||
<!--end::Content-->
|
||||
</div>
|
||||
<!--end::Notifications-->
|
||||
|
||||
<!--begin::Deactivate Account-->
|
||||
<div class="card">
|
||||
<!--begin::Card header-->
|
||||
@@ -373,14 +156,14 @@ $email_preff = array (
|
||||
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
|
||||
function deactivateMyAccount() {
|
||||
var deactivate = document.dact_individual.deactivate.value;
|
||||
if (deactivate == '') {
|
||||
// var deactivate = document.dact_individual.deactivate.value;
|
||||
var deactivate = document.getElementById("deactivate").checked;
|
||||
// alert("deactivate --- " + deactivate);
|
||||
if (deactivate != true) {
|
||||
alert('You must confirm my account deactivation');
|
||||
//return false;
|
||||
return false;
|
||||
}
|
||||
|
||||
var dialog = confirm("Please confirm account deletion. We will not be able to reverse this action. ?");
|
||||
if (dialog) {
|
||||
//console.log('Continue')
|
||||
@@ -388,14 +171,11 @@ $email_preff = array (
|
||||
else {
|
||||
return true;
|
||||
}
|
||||
|
||||
$.ajax({
|
||||
url: "/member/deleteacc?contact_id=DELETE"
|
||||
}).done(function (data) {
|
||||
|
||||
$('#del-sec').html(data);
|
||||
});
|
||||
|
||||
return false;
|
||||
}
|
||||
// -->
|
||||
|
||||
Reference in New Issue
Block a user