Migrated Tax, custom link edit over to the new AJAX model function

This commit is contained in:
johnnyq
2025-02-18 18:47:28 -05:00
parent a9e3e4744d
commit 88ee9b60e7
7 changed files with 166 additions and 133 deletions

View File

@@ -56,7 +56,15 @@ $num_rows = mysqli_num_rows($sql);
?>
<tr>
<td><a class="text-dark text-bold" href="#" data-toggle="modal" data-target="#editTaxModal<?php echo $tax_id; ?>"><?php echo $tax_name; ?></a></td>
<td>
<a class="text-dark text-bold" href="#"
data-toggle="ajax-modal"
data-ajax-url="ajax/ajax_tax_edit.php"
data-ajax-id="<?php echo $tax_id; ?>"
>
<?php echo $tax_name; ?>
</a>
</td>
<td><?php echo "$tax_percent%"; ?></td>
<td>
<div class="dropdown dropleft text-center">
@@ -64,7 +72,11 @@ $num_rows = mysqli_num_rows($sql);
<i class="fas fa-ellipsis-h"></i>
</button>
<div class="dropdown-menu">
<a class="dropdown-item" href="#" data-toggle="modal" data-target="#editTaxModal<?php echo $tax_id; ?>">
<a class="dropdown-item" href="#"
data-toggle="ajax-modal"
data-ajax-url="ajax/ajax_tax_edit.php"
data-ajax-id="<?php echo $tax_id; ?>"
>
<i class="fas fa-fw fa-edit mr-2"></i>Edit
</a>
<div class="dropdown-divider"></div>
@@ -78,8 +90,6 @@ $num_rows = mysqli_num_rows($sql);
<?php
require "modals/admin_tax_edit_modal.php";
}
if ($num_rows == 0) {