mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 19:04:52 +00:00
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:
17
products.php
17
products.php
@@ -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
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user