groceries/Groceries/Transactions/NewTransactionItemModal.razor
James Chapman 47d13ba922
All checks were successful
Docker Image CI / build (push) Successful in 3m45s
Add support for adding 'loose' items to transactions
2024-10-12 02:36:38 +01:00

21 lines
665 B
Plaintext

@using Groceries.Data
@layout Modal
<SectionContent SectionName="modalTitle">New Transaction Item</SectionContent>
<TransactionItemForm TransactionItem="TransactionItem" class="card__content" id="newTransactionItem" data-action="turbo:submit-end->modal#close" />
<footer class="card__footer card__footer--shaded row">
<button class="button button--primary" type="submit" form="newTransactionItem">Add</button>
<button class="button" data-action="modal#close">Cancel</button>
</footer>
@code {
[Parameter]
public required Transaction Transaction { get; set; }
[Parameter]
public required TransactionItem TransactionItem { get; set; }
}