GWM:Toster

This commit is contained in:
bitbucket 2024-04-06 11:45:09 +05:30
parent 1d5a02d688
commit 60a01f1a7c
3 changed files with 4 additions and 3 deletions

2
.env
View File

@ -14,7 +14,7 @@
# ENVIRONMENT # ENVIRONMENT
#-------------------------------------------------------------------- #--------------------------------------------------------------------
# CI_ENVIRONMENT = development CI_ENVIRONMENT = development
#-------------------------------------------------------------------- #--------------------------------------------------------------------
# APP # APP

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
/writable /writable
/vendor /vendor
.env

View File

@ -25,8 +25,8 @@
<div class="form-row"> <div class="form-row">
<div class="form-group col-md-6"> <div class="form-group col-md-6">
<label for="inputEmail4" class="col-form-label">Client Name</label> <label for="inputEmail4" class="col-form-label">Client Name</label>
<select class="form-control cleint-select SelExample" name="client_id" id="SelExample" <?= $sales['client_id'] == 0 ? 'required' : '' ?>> <select class="form-control cleint-select SelExample" name="client_id" id="SelExample" <?= isset($sales['client_id']) ? '' : 'required' ?>>
<?= $sales['client_id'] == 0 ? '<option value="">Select a Client</option>' : '' ?> <?= isset($sales['client_id']) ? '' : '<option value="">Select a Client</option>' ?>
<?php foreach ($client as $value) : ?> <?php foreach ($client as $value) : ?>
<?php if ((int)$value["isactive"] === 1) : ?> <?php if ((int)$value["isactive"] === 1) : ?>
<option value="<?= $value["client_id"] ?>" <?= isset($sales['client_id']) && $sales['client_id'] == $value["client_id"] ? 'selected' : '' ?>> <option value="<?= $value["client_id"] ?>" <?= isset($sales['client_id']) && $sales['client_id'] == $value["client_id"] ? 'selected' : '' ?>>