2018-02-12 05:47:26 +10:00
|
|
|
{{> partials/menu}}
|
2019-12-26 13:23:21 +10:00
|
|
|
<div class="col-sm-9">
|
|
|
|
<div class="col-sm-12">
|
2018-01-07 04:55:48 +10:00
|
|
|
<h2>Products</h2>
|
|
|
|
</div>
|
2019-12-26 13:23:21 +10:00
|
|
|
<div class="col-sm-12 search_bar">
|
2018-01-07 04:55:48 +10:00
|
|
|
<div class="input-group">
|
2019-12-26 13:23:21 +10:00
|
|
|
<input type="text" name="product_filter" id="product_filter" class="form-control" placeholder="Filter products">
|
|
|
|
<div class="input-group-append">
|
|
|
|
<button class="btn btn-outline-success" id="btn_product_filter">Filter</button>
|
|
|
|
<a href="/admin/products" class="hidden-xs btn btn-outline-warning"><i class="fa fa-times" aria-hidden="true"></i></a>
|
|
|
|
</div>
|
2018-01-07 04:55:48 +10:00
|
|
|
</div>
|
2019-11-06 18:31:25 +10:00
|
|
|
<p class="text-warning top-pad-10">{{ @root.__ "Products can be filtered by: product title or product description keywords" }}</p>
|
2018-01-07 04:55:48 +10:00
|
|
|
</div>
|
2019-12-26 13:23:21 +10:00
|
|
|
<div class="col-sm-12">
|
2019-12-13 21:06:25 +10:00
|
|
|
<ul class="list-group">
|
|
|
|
<li class="list-group-item">
|
|
|
|
<span class="pull-right"><strong>{{ @root.__ "Published" }}</strong></span>
|
|
|
|
{{#ifCond resultType '==' 'filtered'}}
|
|
|
|
<strong>{{ @root.__ "Products" }} - <span class="text-danger">{{ @root.__ "Filtered term" }}: {{searchTerm}} </span></strong>
|
|
|
|
{{else}}
|
|
|
|
<strong>{{ @root.__ "Recent products" }}</strong>
|
|
|
|
{{/ifCond}}
|
|
|
|
</li>
|
|
|
|
{{#each results}}
|
2018-01-07 04:55:48 +10:00
|
|
|
<li class="list-group-item">
|
2019-12-13 21:06:25 +10:00
|
|
|
<button class="pull-right btn text-danger btn-delete-product" data-id="{{this._id}}"> <i class="fa fa-trash-o"></i></button>
|
|
|
|
<h4 class="pull-right"><input id="{{this._id}}" class="published_state" type="checkbox" {{checkedState this.productPublished}}></h4>
|
2019-12-26 20:32:28 +10:00
|
|
|
<div class="top-pad-8"><a href="/admin/product/edit/{{this._id}}">{{this.productTitle}}</a></div>
|
2018-01-07 04:55:48 +10:00
|
|
|
</li>
|
2019-12-13 21:06:25 +10:00
|
|
|
{{/each}}
|
|
|
|
</ul>
|
|
|
|
</div>
|
2018-01-07 04:55:48 +10:00
|
|
|
</div>
|