Renamed shopping list item route

This commit is contained in:
Bernd Bestel 2017-04-22 09:27:30 +02:00
parent 96209c852c
commit 50d49219a5
2 changed files with 3 additions and 3 deletions

View File

@ -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')
{

View File

@ -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>&nbsp;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; ?>">