21 lines
942 B
Plaintext
21 lines
942 B
Plaintext
@using Groceries.Data
|
|
|
|
@model (Transaction Transaction, TransactionItem TransactionItem)
|
|
@{
|
|
Layout = "_Modal";
|
|
ViewBag.Title = "Edit Transaction Item";
|
|
}
|
|
|
|
<form class="card__content" id="editTransactionItem" method="post" asp-action="EditTransactionItem" data-action="turbo:submit-end->modal#close">
|
|
<partial name="_TransactionItemForm" model="Model.TransactionItem" />
|
|
</form>
|
|
|
|
<form id="deleteTransactionItem" method="post" asp-action="DeleteTransactionItem" asp-route-id="@Model.TransactionItem.ItemId" data-action="turbo:submit-end->modal#close"></form>
|
|
|
|
<footer class="card__footer card__footer--shaded row">
|
|
<button class="button button--primary" type="submit" form="editTransactionItem">Update</button>
|
|
<button class="button" data-action="modal#close">Cancel</button>
|
|
<span class="row__fill"></span>
|
|
<button class="button button--danger" type="submit" form="deleteTransactionItem">Remove</button>
|
|
</footer>
|