Change items to be optional when adding promotion
This commit is contained in:
parent
c28f67b4ae
commit
0ad9682bc5
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user