Change items to be optional when adding promotion

This commit is contained in:
James Chapman 2023-08-11 16:24:00 +01:00
parent c28f67b4ae
commit 0ad9682bc5
Signed by: jamsch0
GPG Key ID: 765FE58130277547

View File

@ -28,8 +28,11 @@
</div>
<div class="form-field">
<label class="form-field__label" for="transactionPromotionItemIds">Items</label>
<select class="form-field__control select" id="transactionPromotionItemIds" name="itemIds" multiple required>
<label class="form-field__label" for="transactionPromotionItemIds">
Items
<span class="form-field__corner-hint">Optional</span>
</label>
<select class="form-field__control select" id="transactionPromotionItemIds" name="itemIds" multiple>
@foreach (var item in Model.Transaction.Items)
{
<option value="@item.ItemId" selected="@selectedItemIds.Contains(item.ItemId)">@itemNames[item.ItemId]</option>