Fixes to icon display
parent
a325dc4532
commit
fdbbceb114
18
app.js
18
app.js
|
@ -320,6 +320,21 @@ handlebars = handlebars.create({
|
||||||
return text.substring(0, 155) + '...';
|
return text.substring(0, 155) + '...';
|
||||||
}
|
}
|
||||||
return text;
|
return text;
|
||||||
|
},
|
||||||
|
feather: (icon) => {
|
||||||
|
// eslint-disable-next-line keyword-spacing
|
||||||
|
return `<svg
|
||||||
|
width="16"
|
||||||
|
height="16"
|
||||||
|
fill="none"
|
||||||
|
stroke="currentColor"
|
||||||
|
stroke-width="2"
|
||||||
|
stroke-linecap="round"
|
||||||
|
stroke-linejoin="round"
|
||||||
|
class="feather feather-${icon}"
|
||||||
|
>
|
||||||
|
<use xlink:href="/dist/feather-sprite.svg#${icon}"/>
|
||||||
|
</svg>`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -375,6 +390,9 @@ app.use(i18n.init);
|
||||||
// serving static content
|
// serving static content
|
||||||
app.use(express.static(path.join(__dirname, 'public')));
|
app.use(express.static(path.join(__dirname, 'public')));
|
||||||
app.use(express.static(path.join(__dirname, 'views', 'themes')));
|
app.use(express.static(path.join(__dirname, 'views', 'themes')));
|
||||||
|
app.use(express.static(path.join(__dirname, 'node_modules', 'feather-icons')));
|
||||||
|
|
||||||
|
console.log('test', path.join(__dirname, 'node_modules', 'feather-icons', 'dist'));
|
||||||
|
|
||||||
// Make stuff accessible to our router
|
// Make stuff accessible to our router
|
||||||
app.use((req, res, next) => {
|
app.use((req, res, next) => {
|
||||||
|
|
|
@ -1975,6 +1975,11 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"classnames": {
|
||||||
|
"version": "2.2.6",
|
||||||
|
"resolved": "https://registry.npmjs.org/classnames/-/classnames-2.2.6.tgz",
|
||||||
|
"integrity": "sha512-JR/iSQOSt+LQIWwrwEzJ9uk0xfN3mTVYMwt1Ir5mUcSN6pU+V4zQFFaJsclJbPuAUQH+yfWef6tm7l1quW3C8Q=="
|
||||||
|
},
|
||||||
"clean-css": {
|
"clean-css": {
|
||||||
"version": "4.2.1",
|
"version": "4.2.1",
|
||||||
"resolved": "https://registry.npmjs.org/clean-css/-/clean-css-4.2.1.tgz",
|
"resolved": "https://registry.npmjs.org/clean-css/-/clean-css-4.2.1.tgz",
|
||||||
|
@ -4108,6 +4113,22 @@
|
||||||
"reusify": "1.0.4"
|
"reusify": "1.0.4"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"feather-icons": {
|
||||||
|
"version": "4.25.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/feather-icons/-/feather-icons-4.25.0.tgz",
|
||||||
|
"integrity": "sha512-gIJbA4Kmzqub+eTwqA3LRJhC+G267t7QlvFxx+nnHYEEaCpXh5HwRY9pW39b51/Y8c7D9mjLplNdzGCWPz39Sg==",
|
||||||
|
"requires": {
|
||||||
|
"classnames": "2.2.6",
|
||||||
|
"core-js": "3.6.4"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"core-js": {
|
||||||
|
"version": "3.6.4",
|
||||||
|
"resolved": "https://registry.npmjs.org/core-js/-/core-js-3.6.4.tgz",
|
||||||
|
"integrity": "sha512-4paDGScNgZP2IXXilaffL9X7968RuvwlkK3xWtZRVqgd8SYNiVKRJvkFd1aqqEuPfN7E68ZHEp9hDj6lHj4Hyw=="
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"feature-policy": {
|
"feature-policy": {
|
||||||
"version": "0.3.0",
|
"version": "0.3.0",
|
||||||
"resolved": "https://registry.npmjs.org/feature-policy/-/feature-policy-0.3.0.tgz",
|
"resolved": "https://registry.npmjs.org/feature-policy/-/feature-policy-0.3.0.tgz",
|
||||||
|
|
|
@ -42,6 +42,7 @@
|
||||||
"express-handlebars": "^3.1.0",
|
"express-handlebars": "^3.1.0",
|
||||||
"express-rate-limit": "^5.0.0",
|
"express-rate-limit": "^5.0.0",
|
||||||
"express-session": "^1.17.0",
|
"express-session": "^1.17.0",
|
||||||
|
"feather-icons": "^4.25.0",
|
||||||
"glob": "^7.1.5",
|
"glob": "^7.1.5",
|
||||||
"gulp-less": "^4.0.1",
|
"gulp-less": "^4.0.1",
|
||||||
"helmet": "^3.21.2",
|
"helmet": "^3.21.2",
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
<input type="text" name="customer_filter" id="customer_filter" class="form-control" placeholder="Filter customers">
|
<input type="text" name="customer_filter" id="customer_filter" class="form-control" placeholder="Filter customers">
|
||||||
<div class="input-group-append">
|
<div class="input-group-append">
|
||||||
<button type="button" class="btn btn-outline-success" id="btn_customer_filter">Filter</button>
|
<button type="button" class="btn btn-outline-success" id="btn_customer_filter">Filter</button>
|
||||||
<a href="/admin/customers" class="hidden-xs btn btn-outline-warning"><i class="feather" data-feather="x-octagon"></i></a>
|
<a href="/admin/customers" class="hidden-xs btn btn-outline-warning">{{{feather 'x-octagon'}}}</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<p class="text-warning top-pad-10">{{ @root.__ "Customers can be filtered by: email, name or phone number" }}</p>
|
<p class="text-warning top-pad-10">{{ @root.__ "Customers can be filtered by: email, name or phone number" }}</p>
|
||||||
|
|
|
@ -162,14 +162,14 @@
|
||||||
<nav class="navbar navbar-expand-lg justify-content-between mainNavBar">
|
<nav class="navbar navbar-expand-lg justify-content-between mainNavBar">
|
||||||
<a class="navbar-brand" href="/">{{@root.config.cartTitle}}</a>
|
<a class="navbar-brand" href="/">{{@root.config.cartTitle}}</a>
|
||||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarMenu" aria-controls="navbarMenu" aria-expanded="false" aria-label="Toggle navigation">
|
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarMenu" aria-controls="navbarMenu" aria-expanded="false" aria-label="Toggle navigation">
|
||||||
<i class="feather" data-feather="menu"></i>
|
{{{feather 'menu'}}}
|
||||||
</button>
|
</button>
|
||||||
<div id="navbarText">
|
<div id="navbarText">
|
||||||
<ul class="navbar-nav ml-auto">
|
<ul class="navbar-nav ml-auto">
|
||||||
{{#ifCond @root.config.enableLanguages "!=" false}}
|
{{#ifCond @root.config.enableLanguages "!=" false}}
|
||||||
<div class="dropdown d-none d-sm-block">
|
<div class="dropdown d-none d-sm-block">
|
||||||
<button class="btn btn-primary dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
<button class="btn btn-primary dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||||
<i class="feather" data-feather="globe"></i>
|
{{{feather 'globe'}}}
|
||||||
</button>
|
</button>
|
||||||
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
|
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
|
||||||
{{#availableLanguages}}
|
{{#availableLanguages}}
|
||||||
|
@ -179,9 +179,9 @@
|
||||||
</div>
|
</div>
|
||||||
{{/ifCond}}
|
{{/ifCond}}
|
||||||
{{#if @root.session.cart}}
|
{{#if @root.session.cart}}
|
||||||
<li class="nav-item"><a href="/checkout/cart" class="btn menu-btn"><i class="feather" data-feather="shopping-cart"></i> {{ @root.__ "Cart" }} <span class="badge badge-danger" id="cart-count">{{@root.session.totalCartItems}}</span></a></li>
|
<li class="nav-item"><a href="/checkout/cart" class="btn menu-btn">{{{feather 'shopping-cart'}}} {{ @root.__ "Cart" }} <span class="badge badge-danger" id="cart-count">{{@root.session.totalCartItems}}</span></a></li>
|
||||||
{{else}}
|
{{else}}
|
||||||
<li class="nav-item"><a href="/checkout/cart" class="btn menu-btn"><i class="feather" data-feather="shopping-cart"></i></i> {{ @root.__ "Cart" }} <span class="badge badge-danger" id="cart-count">0</span></a></li>
|
<li class="nav-item"><a href="/checkout/cart" class="btn menu-btn">{{{feather 'shopping-cart'}}}</i> {{ @root.__ "Cart" }} <span class="badge badge-danger" id="cart-count">0</span></a></li>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
@ -194,7 +194,7 @@
|
||||||
<div id="cart" class="col-md-12 pad-left-12 top-pad-10 pushy pushy-right">
|
<div id="cart" class="col-md-12 pad-left-12 top-pad-10 pushy pushy-right">
|
||||||
<div class="row {{checkout}}">
|
<div class="row {{checkout}}">
|
||||||
<div class="col-sm-12 text-right">
|
<div class="col-sm-12 text-right">
|
||||||
<button class="pushy-link btn btn-primary" type="button"><i class="feather" data-feather="x"></i></button>
|
<button class="pushy-link btn btn-primary" type="button">{{{feather 'x'}}}</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
@ -249,7 +249,7 @@
|
||||||
<div class="form-group global-search-form">
|
<div class="form-group global-search-form">
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<div class="input-group-prepend">
|
<div class="input-group-prepend">
|
||||||
<label class="input-group-text search-input-addon" for="global-search-value"><i class="feather" data-feather="search"></i></label>
|
<label class="input-group-text search-input-addon" for="global-search-value">{{{feather 'search'}}}</label>
|
||||||
</div>
|
</div>
|
||||||
<input type="text" class="form-control form-control-lg" id="global-search-value">
|
<input type="text" class="form-control form-control-lg" id="global-search-value">
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
<div class="input-group-append">
|
<div class="input-group-append">
|
||||||
<button class="btn btn-outline-success" id="btn_order_filter">{{ @root.__ "Filter" }}</button>
|
<button class="btn btn-outline-success" id="btn_order_filter">{{ @root.__ "Filter" }}</button>
|
||||||
<a href="/admin/orders/bystatus/" class="hidden-xs btn btn-outline-info orderFilterByStatus">{{ @root.__ "By status" }}</a>
|
<a href="/admin/orders/bystatus/" class="hidden-xs btn btn-outline-info orderFilterByStatus">{{ @root.__ "By status" }}</a>
|
||||||
<a href="/admin/orders" class="hidden-xs btn btn-outline-warning"><i class="feather" data-feather="x-octagon"></i></a>
|
<a href="/admin/orders" class="hidden-xs btn btn-outline-warning">{{{feather 'x-octagon'}}}</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="orderFilter">
|
<div class="orderFilter">
|
||||||
|
@ -46,7 +46,7 @@
|
||||||
<li class="list-group-item">
|
<li class="list-group-item">
|
||||||
<div class="float-right top-pad-5">
|
<div class="float-right top-pad-5">
|
||||||
{{ @root.__ "Status" }}: <span class="text-{{getStatusColor this.orderStatus}}">{{this.orderStatus}}</span>
|
{{ @root.__ "Status" }}: <span class="text-{{getStatusColor this.orderStatus}}">{{this.orderStatus}}</span>
|
||||||
<a class="text-danger" href="/admin/order/delete/{{this._id}}" onclick="return confirm('Are you sure you want to delete this order?');"> <i class="feather" data-feather="trash-2"></i></a>
|
<a class="text-danger" href="/admin/order/delete/{{this._id}}" onclick="return confirm('Are you sure you want to delete this order?');"> {{{feather 'trash-2'}}}</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="top-pad-5">
|
<div class="top-pad-5">
|
||||||
<a href="/admin/order/view/{{this._id}}" class="text-success">View order</a> - <span class="text-info">Date: </span>{{formatDate this.orderDate "DD/MM/YYYY hh:mm"}} | <span class="text-info">Email:</span> {{this.orderEmail}} | <span class="text-info">{{ @root.__ "Last name" }}:</span> {{this.orderLastname}}
|
<a href="/admin/order/view/{{this._id}}" class="text-success">View order</a> - <span class="text-info">Date: </span>{{formatDate this.orderDate "DD/MM/YYYY hh:mm"}} | <span class="text-info">Email:</span> {{this.orderEmail}} | <span class="text-info">{{ @root.__ "Last name" }}:</span> {{this.orderLastname}}
|
||||||
|
|
|
@ -3,11 +3,11 @@
|
||||||
<ul class="nav flex-column">
|
<ul class="nav flex-column">
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a href="/admin"><img class="sidebar-brand" src="/images/logo-admin.png"></a>
|
<a href="/admin"><img class="sidebar-brand" src="/images/logo-admin.png"></a>
|
||||||
<a href="#" data-toggle="modal" data-target="#globalSearchModal" class="sidebar-search text-muted"><i class="feather" data-feather="search"></i></a>
|
<a href="#" data-toggle="modal" data-target="#globalSearchModal" class="sidebar-search text-muted">{{{feather 'search'}}}</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link" href="/admin/dashboard">
|
<a class="nav-link" href="/admin/dashboard">
|
||||||
<i class="feather" data-feather="bar-chart"></i>
|
{{{feather 'bar-chart'}}}
|
||||||
{{ @root.__ "Dashboard" }}
|
{{ @root.__ "Dashboard" }}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
@ -17,43 +17,43 @@
|
||||||
{{#ifCond session.isAdmin '===' true}}
|
{{#ifCond session.isAdmin '===' true}}
|
||||||
<li class="nav-item sidebar-addon">
|
<li class="nav-item sidebar-addon">
|
||||||
<a class="nav-link sidebar-link" href="/admin/products">
|
<a class="nav-link sidebar-link" href="/admin/products">
|
||||||
<i class="feather" data-feather="tag"></i>
|
{{{feather 'tag'}}}
|
||||||
Products
|
Products
|
||||||
</a>
|
</a>
|
||||||
<a class="sidebar-link-addon text-muted" href="/admin/product/new">
|
<a class="sidebar-link-addon text-muted" href="/admin/product/new">
|
||||||
<i class="feather" data-feather="plus"></i>
|
{{{feather 'plus'}}}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{{else}}
|
{{else}}
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link" href="/admin/products">
|
<a class="nav-link" href="/admin/products">
|
||||||
<i class="feather" data-feather="tag"></i>
|
{{{feather 'tag'}}}
|
||||||
Products
|
Products
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{{/ifCond}}
|
{{/ifCond}}
|
||||||
<li class="nav-item sidebar-addon">
|
<li class="nav-item sidebar-addon">
|
||||||
<a class="nav-link sidebar-link" href="/admin/orders">
|
<a class="nav-link sidebar-link" href="/admin/orders">
|
||||||
<i class="feather" data-feather="package"></i>
|
{{{feather 'package'}}}
|
||||||
Orders
|
Orders
|
||||||
</a>
|
</a>
|
||||||
<a class="sidebar-link-addon text-muted" href="/admin/order/create">
|
<a class="sidebar-link-addon text-muted" href="/admin/order/create">
|
||||||
<i class="feather" data-feather="plus"></i>
|
{{{feather 'plus'}}}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link" href="/admin/customers">
|
<a class="nav-link" href="/admin/customers">
|
||||||
<i class="feather" data-feather="users"></i>
|
{{{feather 'users'}}}
|
||||||
Customers
|
Customers
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item sidebar-addon">
|
<li class="nav-item sidebar-addon">
|
||||||
<a class="nav-link sidebar-link" href="/admin/users">
|
<a class="nav-link sidebar-link" href="/admin/users">
|
||||||
<i class="feather" data-feather="user"></i>
|
{{{feather 'user'}}}
|
||||||
Users
|
Users
|
||||||
</a>
|
</a>
|
||||||
<a class="sidebar-link-addon text-muted" href="/admin/user/new">
|
<a class="sidebar-link-addon text-muted" href="/admin/user/new">
|
||||||
<i class="feather" data-feather="plus"></i>
|
{{{feather 'plus'}}}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -64,26 +64,26 @@
|
||||||
<ul class="nav flex-column mb-2">
|
<ul class="nav flex-column mb-2">
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link" href="/admin/settings">
|
<a class="nav-link" href="/admin/settings">
|
||||||
<i class="feather" data-feather="sliders"></i>
|
{{{feather 'sliders'}}}
|
||||||
{{ @root.__ "General settings" }}
|
{{ @root.__ "General settings" }}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link" href="/admin/settings/menu">
|
<a class="nav-link" href="/admin/settings/menu">
|
||||||
<i class="feather" data-feather="menu"></i>
|
{{{feather 'menu'}}}
|
||||||
{{ @root.__ "Menu" }}
|
{{ @root.__ "Menu" }}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link" href="/admin/settings/pages">
|
<a class="nav-link" href="/admin/settings/pages">
|
||||||
<i class="feather" data-feather="file-text"></i>
|
{{{feather 'file-text'}}}
|
||||||
{{ @root.__ "Static pages" }}
|
{{ @root.__ "Static pages" }}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{{#ifCond session.isAdmin '===' true}}
|
{{#ifCond session.isAdmin '===' true}}
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link" href="/admin/settings/discounts">
|
<a class="nav-link" href="/admin/settings/discounts">
|
||||||
<i class="feather" data-feather="code"></i>
|
{{{feather 'code'}}}
|
||||||
{{ @root.__ "Discount codes" }}
|
{{ @root.__ "Discount codes" }}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
<input type="text" name="product_filter" id="product_filter" class="form-control" placeholder="Filter products">
|
<input type="text" name="product_filter" id="product_filter" class="form-control" placeholder="Filter products">
|
||||||
<div class="input-group-append">
|
<div class="input-group-append">
|
||||||
<button class="btn btn-outline-success" id="btn_product_filter">Filter</button>
|
<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="feather" data-feather="x-octagon"></i></a>
|
<a href="/admin/products" class="hidden-xs btn btn-outline-warning">{{{feather 'x-octagon'}}}</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<p class="text-warning top-pad-10">{{ @root.__ "Products can be filtered by: product title or product description keywords" }}</p>
|
<p class="text-warning top-pad-10">{{ @root.__ "Products can be filtered by: product title or product description keywords" }}</p>
|
||||||
|
@ -25,7 +25,7 @@
|
||||||
</li>
|
</li>
|
||||||
{{#each results}}
|
{{#each results}}
|
||||||
<li class="list-group-item">
|
<li class="list-group-item">
|
||||||
<button class="float-right btn text-danger btn-delete-product" data-id="{{this._id}}"> <i class="feather" data-feather="trash-2"></i></button>
|
<button class="float-right btn text-danger btn-delete-product" data-id="{{this._id}}"> {{{feather 'trash-2'}}}</button>
|
||||||
<h4 class="float-right"><input id="{{this._id}}" class="publishedState" type="checkbox" {{checkedState this.productPublished}}></h4>
|
<h4 class="float-right"><input id="{{this._id}}" class="publishedState" type="checkbox" {{checkedState this.productPublished}}></h4>
|
||||||
<div class="top-pad-8"><a href="/admin/product/edit/{{this._id}}">{{this.productTitle}}</a></div>
|
<div class="top-pad-8"><a href="/admin/product/edit/{{this._id}}">{{this.productTitle}}</a></div>
|
||||||
</li>
|
</li>
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
{{#each menu.items}}
|
{{#each menu.items}}
|
||||||
<div class="row drag-row" id="menuId-{{@key}}">
|
<div class="row drag-row" id="menuId-{{@key}}">
|
||||||
<input type="hidden" class="navId" value="{{title}}">
|
<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-1 dragable_item">{{{feather 'move'}}}</div>
|
||||||
<div class="col-sm-2 dragable_item">
|
<div class="col-sm-2 dragable_item">
|
||||||
<input type="text" class="form-control navMenu navItem" value="{{title}}">
|
<input type="text" class="form-control navMenu navItem" value="{{title}}">
|
||||||
</div>
|
</div>
|
||||||
|
@ -20,10 +20,10 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="col-sm-3 dragable_item">
|
<div class="col-sm-3 dragable_item">
|
||||||
<a class="btn btn-outline-danger settings-menu-delete" data-id="{{@key}}">
|
<a class="btn btn-outline-danger settings-menu-delete" data-id="{{@key}}">
|
||||||
<i class="feather" data-feather="trash-2"></i>
|
{{{feather 'trash-2'}}}
|
||||||
</a>
|
</a>
|
||||||
<button type="submit" class="btn btn-outline-success" id="settings-menu-update" data-id="{{@key}}">
|
<button type="submit" class="btn btn-outline-success" id="settings-menu-update" data-id="{{@key}}">
|
||||||
<i class="feather" data-feather="save"></i>
|
{{{feather 'save'}}}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -38,7 +38,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="col-sm-3">
|
<div class="col-sm-3">
|
||||||
<button type="submit" id="settings-menu-new" class="btn btn-outline-success">
|
<button type="submit" id="settings-menu-new" class="btn btn-outline-success">
|
||||||
<i class="feather" data-feather="plus"></i>
|
{{{feather 'plus'}}}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -38,7 +38,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-4 col-md-2 no-pad-left">
|
<div class="col-4 col-md-2 no-pad-left">
|
||||||
<button class="btn btn-danger btn-delete-from-cart" data-id="{{../this.productId}}" data-cartid="{{../this.productId}}" type="button"><i class="feather" data-feather="trash-2"></i></button>
|
<button class="btn btn-danger btn-delete-from-cart" data-id="{{../this.productId}}" data-cartid="{{../this.productId}}" type="button">{{{feather 'trash-2'}}}</button>
|
||||||
</div>
|
</div>
|
||||||
{{else}}
|
{{else}}
|
||||||
<div class="col-12 col-md-8 no-pad-left mb-2"></div>
|
<div class="col-12 col-md-8 no-pad-left mb-2"></div>
|
||||||
|
|
|
@ -46,7 +46,7 @@
|
||||||
<button class="btn btn-outline-success" id="addDiscountCode">{{ @root.__ "Apply" }}</button>
|
<button class="btn btn-outline-success" id="addDiscountCode">{{ @root.__ "Apply" }}</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="input-group-append">
|
<div class="input-group-append">
|
||||||
<button class="btn btn-outline-danger" id="removeDiscountCode"><i class="feather" data-feather="x"></i></button>
|
<button class="btn btn-outline-danger" id="removeDiscountCode">{{{feather 'x'}}}</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
|
@ -4,9 +4,9 @@
|
||||||
<div class="col-sm-12 col-md-6 mr-auto">
|
<div class="col-sm-12 col-md-6 mr-auto">
|
||||||
{{#if result.productImage}}
|
{{#if result.productImage}}
|
||||||
<div class="title-image-container">
|
<div class="title-image-container">
|
||||||
<div class="image-prev image-button"> <i class="feather" data-feather="chevron-right"></i></div>
|
<div class="image-prev image-button"> {{{feather 'chevron-left'}}}</div>
|
||||||
<img src="{{result.productImage}}" id="product-title-image" class="product-title-image img-fluid" alt="...">
|
<img src="{{result.productImage}}" id="product-title-image" class="product-title-image img-fluid" alt="...">
|
||||||
<div class="image-next image-button"> <i class="feather" data-feather="chevron-left"></i></div>
|
<div class="image-next image-button"> {{{feather 'chevron-right'}}}</div>
|
||||||
</div>
|
</div>
|
||||||
{{else}}
|
{{else}}
|
||||||
<div class="title-image-container">
|
<div class="title-image-container">
|
||||||
|
|
|
@ -19,8 +19,8 @@
|
||||||
<span>{{ @root.__ "User" }}</span>
|
<span>{{ @root.__ "User" }}</span>
|
||||||
{{/isAnAdmin}}
|
{{/isAnAdmin}}
|
||||||
{{#isAnAdmin @root.session.isAdmin}}
|
{{#isAnAdmin @root.session.isAdmin}}
|
||||||
<a href="/admin/user/edit/{{../this._id}}"><i class="feather" data-feather="edit"></i></a>
|
<a href="/admin/user/edit/{{../this._id}}">{{{feather 'edit'}}}</a>
|
||||||
<a href="#" class="userDelete text-danger" data-id="{{../this._id}}"><i class="feather" data-feather="trash-2"></i></a>
|
<a href="#" class="userDelete text-danger" data-id="{{../this._id}}">{{{feather 'trash-2'}}}</a>
|
||||||
{{/isAnAdmin}}
|
{{/isAnAdmin}}
|
||||||
</span>
|
</span>
|
||||||
</li>
|
</li>
|
||||||
|
|
Loading…
Reference in New Issue