Make link to page for create Recipe instead to show the form dynamically by button click
This commit is contained in:
@@ -71,11 +71,8 @@
|
|||||||
<div class="col-md-3 mb-4">
|
<div class="col-md-3 mb-4">
|
||||||
<div class="card h-100 text-center">
|
<div class="card h-100 text-center">
|
||||||
<div class="card-body d-flex flex-column justify-content-center">
|
<div class="card-body d-flex flex-column justify-content-center">
|
||||||
<a href="/Recipe/Create?categoryId=@category.Category.Id"
|
<a href="/Create/@category.Category.Id"
|
||||||
class="btn btn-outline-primary"
|
class="btn btn-outline-primary">Rezept hinzufügen</a>
|
||||||
hx-get="/Recipe/Create?categoryId=@category.Category.Id"
|
|
||||||
hx-target="#category-@category.Category.Id"
|
|
||||||
hx-swap="beforeend">Rezept hinzufügen</a>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user