mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 01:32:38 +00:00
Renamed shopping list item route
This commit is contained in:
parent
96209c852c
commit
50d49219a5
@ -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')
|
||||
{
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
<h1 class="page-header">
|
||||
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
|
||||
</a>
|
||||
<a id="add-products-below-min-stock-amount" class="btn btn-info" href="#" role="button">
|
||||
@ -23,7 +23,7 @@
|
||||
<?php foreach ($listItems as $listItem) : ?>
|
||||
<tr>
|
||||
<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>
|
||||
</a>
|
||||
<a class="btn btn-danger shoppinglist-delete-button" href="#" role="button" data-shoppinglist-id="<?php echo $listItem->id; ?>">
|
||||
|
Loading…
x
Reference in New Issue
Block a user