get_my/client/MenuItems/addProdToListModal.html
Brian McGonagill 88fa7c1d22 Updated menus to work better with list item linking
Lots of changes made (almost a refactor <--- four letter word to me...
- Menu Items collection is now the "permanent" storage location for menu item for any day.  So, if i set Green Chile Chicken Enchiladas, Beans, and Rice as an item for a day, it will be stored as a Menu Item for later use.
- Linking menu items to items that can be added to a shopping list - This has been updated to be more reusable. So as you re-choose a menu item that's already got list items linked, it just shows up for you to use to build a shopping list as needed.
- Deleting menu items from a menu - changed to delete them only from the menu, and not from the database.
- Dashboard updated to pull today's menu item from the menu, and not the menu item list.
2024-08-14 11:38:13 -05:00

49 lines
2.1 KiB
HTML

<template name="addProdToListModal">
<div class="modal tall-modal" id="addProdToList">
<div class="modal-content tall-content">
<h2>Add Items to List</h2>
<form class="row" style="gap: 1em;">
<div class="col s12 input-field outlined" id="chooseListDiv">
<select name="chooseList" id="chooseList">
{{#each setOfLists}}
<option value="{{_id}}">{{listName}}</option>
{{/each}}
</select>
</div>
<div class="col s12">
<ul class="collection with-header">
<li class="collection-header">
<h4>Products to Add</h4>
</li>
{{#each productToChoose}}
{{#each products}}
<li class="collection-item">
<div>
<p>
<label>
<input type="checkbox" class="productListing" id="{{prodId}}" />
<span class="my-text">{{prodName}}</span>
</label>
</p>
</div>
</li>
{{/each}}
{{/each}}
</ul>
</div>
</form>
</div>
<div class="modal-footer">
<div class="row">
<div class="col s6 m6 l6">
<a class="left btn waves-effect waves-light orange white-text modal-close">Cancel</a>
</div>
<div class="col s6 m6 l6">
<a class="right btn waves-effect waves-light green white-text saveProdsToList" id="saveProdsToList">Save to List</a>
</div>
</div>
</div>
</div>
{{> snackbar}}
</template>