Merge branch 'uat' of bitbucket.org:venbainformationtechnology/vb_book into uat

This commit is contained in:
VE10-Sanjeev 2023-10-11 11:40:13 +05:30
commit 031108dbb8
2 changed files with 18 additions and 16 deletions

View File

@ -11,6 +11,7 @@
role="tab" aria-controls="customerDetails" aria-selected="true">Customer Details</a>
</li>
<?php if ($page_name === 'Edit Customer'): ?>
<li class="nav-item">
<a class="nav-link active" id="subscriptionDetails-tab" data-toggle="tab"
href="#subscriptionDetails" role="tab" aria-controls="subscriptionDetails"
@ -54,8 +55,8 @@
class="text-danger">*</span></label>
<input type="text" class="form-control" name="cmail"
value="<?= isset($customer['email']) ? $customer['email'] : '' ?>"
placeholder="Email" required />
<div class="invalid-feedback"> Please provide. </div>
placeholder="Email" />
</div>
</div>
<div class="form-row">
@ -78,8 +79,8 @@
class="text-danger">*</span></label>
<input type="date" class="form-control" name="dob"
value="<?= isset($customer['date_of_birth']) ? $customer['date_of_birth'] : '' ?>"
placeholder="Date Of Birth" required />
<div class="invalid-feedback"> Please provide. </div>
placeholder="Date Of Birth" />
</div>
<div class="form-group col-md-4">
<label for="gen" class="col-form-label">Gender<span class="text-danger">*</span></label>
@ -97,15 +98,16 @@
<label for="ctype" class="col-form-label">Type<span class="text-danger">*</span></label>
<select class="form-control" name="ctype" required>
<option value="customer" <?= isset($customer['type']) && $customer['type'] == 'customer' ? 'selected' : '' ?>>Customer</option>
<option value="subscriber" <?= isset($customer['type']) && $customer['type'] == 'subscriber' ? 'selected' : '' ?>>Subscriber</option>
<option value="subscriber" <?= isset($customer['type']) && $customer['type'] == 'subscriber' ? 'selected' : '' ?>>Member</option>
</select>
<div class="invalid-feedback"> Please provide. </div>
</div>
<div class="form-group col-md-6">
<label for="cmode" class="col-form-label">Mode<span class="text-danger">*</span></label>
<select class="form-control" name="cmode" required>
<option value="offline" <?= isset($customer['mode']) && $customer['mode'] == 'offline' ? 'selected' : '' ?>>Offline</option>
<option value="online" <?= isset($customer['mode']) && $customer['mode'] == 'online' ? 'selected' : '' ?>>Online</option>
<option value="offline" <?= isset($customer['mode']) && $customer['mode'] == 'offline' ? 'selected' : '' ?>>Offline</option>
</select>
<div class="invalid-feedback"> Please provide. </div>
</div>
@ -315,7 +317,7 @@
</form>
</div> <!-- end card-body-->
<div class="tab-pane fade show active" id="subscriptionDetails" role="tabpanel" aria-labelledby="subscriptionDetails-tab">
<div class="tab-pane fade show " id="subscriptionDetails" role="tabpanel" aria-labelledby="subscriptionDetails-tab">
<?php if (!empty($subscriptionData)): ?>
<table class="table table-bordered">
<thead>
@ -484,14 +486,14 @@
});
</script>
<script>
$(document).ready(function() {
// Show the Subscription Details tab by default
$('#subscriptionDetails-tab').tab('show');
$(document).ready(function() {
// Show the Customer Details tab by default
$('#customerDetails-tab').tab('show');
// Handle tab switching
$('#customerTabs a').on('click', function (e) {
e.preventDefault();
$(this).tab('show');
});
// Handle tab switching
$('#customerTabs a').on('click', function (e) {
e.preventDefault();
$(this).tab('show');
});
});
</script>

View File

@ -262,7 +262,7 @@
<div class="form-group text-left col-md-12 ">
<label for="notes">Notes</label>
<textarea class="form-control" id="terms" name="notes" >
<?php echo ($invoice_details['notes']);?>
<?= isset($invoice_details['notes']) ? $invoice_details['notes'] : '' ?>
</textarea>
</div>
</div>