31 lines
1.5 KiB
PHP
31 lines
1.5 KiB
PHP
<div class="modal-dialog modal-sm">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<h6 class="modal-title" id="myModalLabel2">Decline Reason</h6>
|
|
</div>
|
|
</br>
|
|
<center>
|
|
<form class="delete_url" method="post" action="" id="declineForm">
|
|
<input list="browsers" onfocus id="decline_reason" required name="declinedata" autocomplete="off" style="width:90%; height: 45px;" />
|
|
<datalist id="browsers">
|
|
<?php foreach ($dropdown as $key => $value) { ?>
|
|
<option value="<?php echo $value->enum_value; ?>"><?php echo $value->enum_value; ?></option>
|
|
<?php } ?>
|
|
</datalist><br><br>
|
|
<input type="hidden" class="delete_id" name="id" value="">
|
|
<input type="hidden" name="<?php echo $this->security->get_csrf_token_name(); ?>" value="<?php echo $this->security->get_csrf_hash(); ?>" >
|
|
<button type="submit" class="btn btn-sm btn-primary" id="submitBtn">Yes</button>
|
|
<button type="button" class="btn btn-sm btn-secondary" id="close-form" data-dismiss="modal" aria-label="Close">No</button>
|
|
</form>
|
|
</center>
|
|
</br>
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
document.getElementById('declineForm').addEventListener('submit', function() {
|
|
document.getElementById('submitBtn').disabled = true;
|
|
// Optionally, you can display a loading spinner or other indication here
|
|
});
|
|
</script>
|