get_my/client/MenuItems/menuItemsTbl.html

43 lines
2 KiB
HTML
Raw Normal View History

<template name="menuItemsTbl">
<div class="row">
<div class="col s12">
<table>
2024-07-28 19:42:23 -05:00
<thead>
<tr>
<th>Menu Item</th>
<th>Date to Serve</th>
2024-07-29 16:58:08 -05:00
<th>Has Product Links</th>
2024-07-28 19:42:23 -05:00
<th>Actions</th>
</tr>
</thead>
{{#each thisMenuItems}}
{{#each menuItems}}
<tr>
<td>
<span>
{{menuItemName}}
</span>
</td>
<td>
{{serveDate}}
</td>
<td>
{{#if $eq isLinked true}}<a class="waves-effect waves-light blue darken-3 white-text btn addProdsToList modal-trigger" href="#addProdToList">+ Shopping List</a>{{/if}}
</td>
<td>
<i class="material-icons tooltipped modal-trigger deleteMenuItem clickable" href="#modalDelete" data-position="top" data-tooltip-id="deleteMenuTip">delete</i>
<i class="material-icons tooltipped modal-trigger linkToProducts clickable" href="#modalLinkProducts" data-position="top" data-tooltip-id="linkMenuTip">link</i>
</td>
</tr>
{{/each}}
{{/each}}
</table>
2024-07-28 19:42:23 -05:00
<div class="tooltip-content" style="display: none;" id="deleteMenuTip">Delete this menu item</div>
<div class="tooltip-content" style="display: none;" id="linkMenuTip">Link Products that make up this menu item</div>
</div>
</div>
{{> deleteConfirmationModal}}
2024-07-28 19:42:23 -05:00
{{> modalLinkProducts}}
2024-07-29 16:58:08 -05:00
{{> addProdToListModal}}
</template>