expressCart/views/settings-menu.hbs

50 lines
2.2 KiB
Handlebars
Raw Normal View History

2018-02-12 05:47:26 +10:00
{{> partials/menu}}
2018-01-07 04:55:48 +10:00
<script src="https://code.jquery.com/ui/1.11.3/jquery-ui.min.js"></script>
2020-02-01 16:59:30 +10:00
<main role="main" class="col-md-9 ml-sm-auto col-lg-10 px-4">
<div class="col-sm-12">
<h2>Menu</h2>
<div class="row">
<div class="col-sm-2 offset-sm-1">Menu</div>
<div class="col-sm-9">link</div>
</div>
<div id="draggable_list">
{{#each menu.items}}
<div class="row drag-row mb-2" id="menuId-{{@key}}">
2020-02-01 16:59:30 +10:00
<input type="hidden" class="navId" value="{{title}}">
2020-02-01 18:54:11 +10:00
<div class="col-sm-1 dragable_item">{{{feather 'move'}}}</div>
2020-02-01 16:59:30 +10:00
<div class="col-sm-2 dragable_item">
<input type="text" class="form-control navMenu navItem" value="{{title}}">
</div>
2020-02-01 16:59:30 +10:00
<div class="col-sm-6 dragable_item">
<input type="text" class="form-control navLink navItem" value="{{link}}">
</div>
2020-02-01 16:59:30 +10:00
<div class="col-sm-3 dragable_item">
<a class="btn btn-outline-danger settings-menu-delete" data-id="{{@key}}">
2020-02-01 18:54:11 +10:00
{{{feather 'trash-2'}}}
2020-02-01 16:59:30 +10:00
</a>
<button type="submit" class="btn btn-outline-success" id="settings-menu-update" data-id="{{@key}}">
2020-02-01 18:54:11 +10:00
{{{feather 'save'}}}
</button>
</div>
</div>
2020-02-01 16:59:30 +10:00
{{/each}}
</div>
<div class="row">
<div class="col-sm-2 offset-sm-1">
<input type="text" class="form-control" id="newNavMenu" placeholder="Contact Us">
</div>
<div class="col-sm-6">
<input type="text" class="form-control" id="newNavLink" placeholder="/contact">
</div>
<div class="col-sm-3">
<button type="submit" id="settings-menu-new" class="btn btn-outline-success">
2020-02-01 18:54:11 +10:00
{{{feather 'plus'}}}
2020-02-01 16:59:30 +10:00
</button>
</div>
2020-02-01 16:59:30 +10:00
</div>
<p class="text-muted mt-4">
2020-02-01 16:59:30 +10:00
{{ @root.__ "Setting_menu_explain" }}
</p>
</div>
</main>