mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 20:26:42 +00:00
Renamed shopping list item route
This commit is contained in:
@@ -182,7 +182,7 @@ $app->get('/quantityunit/{quantityunitId}', function(Request $request, Response
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$app->get('/shoppinglist/{itemId}', function(Request $request, Response $response, $args) use($db)
|
$app->get('/shoppinglistitem/{itemId}', function(Request $request, Response $response, $args) use($db)
|
||||||
{
|
{
|
||||||
if ($args['itemId'] == 'new')
|
if ($args['itemId'] == 'new')
|
||||||
{
|
{
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
<h1 class="page-header">
|
<h1 class="page-header">
|
||||||
Shopping List
|
Shopping List
|
||||||
<a class="btn btn-default" href="/shoppinglist/new" role="button">
|
<a class="btn btn-default" href="/shoppinglistitem/new" role="button">
|
||||||
<i class="fa fa-plus"></i> Add
|
<i class="fa fa-plus"></i> Add
|
||||||
</a>
|
</a>
|
||||||
<a id="add-products-below-min-stock-amount" class="btn btn-info" href="#" role="button">
|
<a id="add-products-below-min-stock-amount" class="btn btn-info" href="#" role="button">
|
||||||
@@ -23,7 +23,7 @@
|
|||||||
<?php foreach ($listItems as $listItem) : ?>
|
<?php foreach ($listItems as $listItem) : ?>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="fit-content">
|
<td class="fit-content">
|
||||||
<a class="btn btn-info" href="/shoppinglist/<?php echo $listItem->id; ?>" role="button">
|
<a class="btn btn-info" href="/shoppinglistitem/<?php echo $listItem->id; ?>" role="button">
|
||||||
<i class="fa fa-pencil"></i>
|
<i class="fa fa-pencil"></i>
|
||||||
</a>
|
</a>
|
||||||
<a class="btn btn-danger shoppinglist-delete-button" href="#" role="button" data-shoppinglist-id="<?php echo $listItem->id; ?>">
|
<a class="btn btn-danger shoppinglist-delete-button" href="#" role="button" data-shoppinglist-id="<?php echo $listItem->id; ?>">
|
||||||
|
Reference in New Issue
Block a user