Started adding delete buttons to edit windows and removing the action column on some tables this will allow for more room to display data

This commit is contained in:
johnny@pittpc.com
2020-03-02 12:31:07 -05:00
parent 47d7515220
commit ed8950a577
26 changed files with 366 additions and 121 deletions

View File

@@ -71,7 +71,6 @@
<th><a class="text-dark" href="?<?php echo $url_query_strings_sb; ?>&sb=category_name&o=<?php echo $disp; ?>">Category</a></th>
<th>Description</th>
<th class="text-right"><a class="text-dark" href="?<?php echo $url_query_strings_sb; ?>&sb=product_cost&o=<?php echo $disp; ?>">Cost</a></th>
<th class="text-center">Action</th>
</tr>
</thead>
<tbody>
@@ -90,21 +89,11 @@
<td><a class="text-dark" href="#" data-toggle="modal" data-target="#editProductModal<?php echo $product_id; ?>"><?php echo $product_name; ?></a></td>
<td><?php echo $category_name; ?></td>
<td><?php echo $product_description; ?></td>
<td class="text-right">$<?php echo number_format($product_cost,2); ?></td>
<td>
<div class="dropdown dropleft text-center">
<button class="btn btn-secondary btn-sm" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<i class="fas fa-ellipsis-h"></i>
</button>
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
<a class="dropdown-item" href="#" data-toggle="modal" data-target="#editProductModal<?php echo $product_id; ?>">Edit</a>
<a class="dropdown-item" href="post.php?delete_product=<?php echo $product_id; ?>">Delete</a>
</div>
</div>
<?php include("edit_product_modal.php"); ?>
</td>
<td class="text-right">$<?php echo number_format($product_cost,2); ?></td>
</tr>
<?php include("edit_product_modal.php"); ?>
<?php
}