Browse Source

Shop, the same product with another attributes button

Vova Tkach 5 years ago
parent
commit
e52f3e7819
3 changed files with 13 additions and 4 deletions
  1. 12 4
      assets/cp.styles.css
  2. 0 0
      assets/cp.styles.css.go
  3. 1 0
      modules/module_shop.go

+ 12 - 4
assets/cp.styles.css

@@ -960,11 +960,13 @@ ul.pagination {
 }
 
 /* Duplicate product */
-.product-copy {
+.product-copy,
+.product-another {
 	position: relative;
 }
 
-.product-copy a {
+.product-copy a,
+.product-another a {
 	position: absolute;
 	right: 0px;
 	padding: 12px 18px;
@@ -973,11 +975,17 @@ ul.pagination {
 	border-radius: 0 .25rem .25rem 0;
 }
 
-.product-copy a svg {
+.product-another a {
+	right: 52px;
+}
+
+.product-copy a svg,
+.product-another a svg {
 	fill: currentColor;
 }
 
-.product-copy a:hover {
+.product-copy a:hover,
+.product-another a:hover {
 	color: #417cb9;
 }
 

File diff suppressed because it is too large
+ 0 - 0
assets/cp.styles.css.go


+ 1 - 0
modules/module_shop.go

@@ -763,6 +763,7 @@ func (this *Modules) RegisterModule_Shop() *Module {
 			} else {
 				if len(wrap.UrlArgs) >= 3 && utils.IsNumeric(wrap.UrlArgs[2]) {
 					content += `<div class="product-copy"><a title="Duplicate product" href="javascript:fave.ShopProductsDuplicate(this, ` + wrap.UrlArgs[2] + `);">` + assets.SysSvgIconCopy + `</a></div>`
+					content += `<div class="product-another"><a title="The same with another attributes" href="javascript:fave.ShopProductsAnother(this, ` + wrap.UrlArgs[2] + `);">` + assets.SysSvgIconPlus + `</a></div>`
 				}
 				content += this.getBreadCrumbs(wrap, &[]consts.BreadCrumb{
 					{Name: "Modify product"},

Some files were not shown because too many files changed in this diff