expressCart/views/settings-menu.hbs

50 lines
2.3 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" id="menuId-{{@key}}">
<input type="hidden" class="navId" value="{{title}}">
<div class="col-sm-1 dragable_item"><i class="feather" data-feather="move"></i></div>
<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}}">
<i class="feather" data-feather="trash-2"></i>
</a>
<button type="submit" class="btn btn-outline-success" id="settings-menu-update" data-id="{{@key}}">
<i class="feather" data-feather="save"></i>
</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">
<i class="feather" data-feather="plus"></i>
</button>
</div>
2020-02-01 16:59:30 +10:00
</div>
<p class="text-muted">
{{ @root.__ "Setting_menu_explain" }}
</p>
</div>
</main>