mirror of
https://gitlab.com/bmcgonag/get_my.git
synced 2026-03-27 00:08:49 +00:00
Add list items from linked menu items
This commit is contained in:
parent
91150f03b2
commit
00a99e0393
11 changed files with 203 additions and 5 deletions
47
client/MenuItems/addProdToListModal.html
Normal file
47
client/MenuItems/addProdToListModal.html
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
<template name="addProdToListModal">
|
||||
<div class="modal" id="addProdToList">
|
||||
<div class="modal-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}}
|
||||
<li class="collection-item" id="{{prodId}}">
|
||||
<div>
|
||||
<p>
|
||||
<label>
|
||||
<input type="checkbox" class="productListing" id="{{prodId}}" />
|
||||
<span class="my-text">{{prodName}}</span>
|
||||
</label>
|
||||
</p>
|
||||
</div>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<div class="row">
|
||||
<div class="col s12 m6 l6">
|
||||
<a class="left btn waves-effect waves-light orange white-text modal-close">Cancel</a>
|
||||
</div>
|
||||
<div class="col s12 m6 l6">
|
||||
<a class="btn waves-effect waves-light green white-text saveProdsToList" id="saveProdsToList">Save to List</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
{{> snackbar}}
|
||||
</template>
|
||||
Loading…
Add table
Add a link
Reference in a new issue