Browse Source

CP SHop order, mobile layout

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

+ 8 - 0
assets/cp.styles.css

@@ -839,6 +839,14 @@ ul.pagination {
 	text-align: right;
 }
 
+.data-table.table_shop_products .col_quantity {
+	width: 8rem;
+}
+
+.data-table.table_shop_products .col_total {
+	width: 8rem;
+}
+
 /* Admin table: table_shop_cats */
 .data-table.table_shop_cats .col_action {
 	width: 6rem;

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


+ 4 - 4
modules/module_shop.go

@@ -2005,9 +2005,9 @@ func (this *Modules) RegisterModule_Shop() *Module {
 				<thead>
 					<tr>
 						<th scope="col" class="col_name">Product</th>
-						<th scope="col" class="col_price">Price</th>
+						<th scope="col" class="col_price d-none d-md-table-cell">Price</th>
 						<th scope="col" class="col_quantity">Quantity</th>
-						<th scope="col" class="col_total">Total</th>
+						<th scope="col" class="col_total d-none d-md-table-cell">Total</th>
 					</tr>
 				</thead>
 				<tbody>
@@ -2052,14 +2052,14 @@ func (this *Modules) RegisterModule_Shop() *Module {
 								<div><a href="/cp/shop/modify/` + utils.IntToStr(curr_product_id) + `/">` + html.EscapeString(curr_product_name) + ` ` + utils.IntToStr(curr_product_id) + `</a></div>
 								<div><small><a href="/shop/` + html.EscapeString(curr_product_alias) + `/" target="_blank">/shop/` + html.EscapeString(curr_product_alias) + `/</a></small></div>
 							</td>
-							<td class="col_price">
+							<td class="col_price d-none d-md-table-cell">
 								<div>` + utils.Float64ToStr(curr_product_price) + `</div>
 								<div><small>` + html.EscapeString(curr_order_currency_code) + `</small></div>
 							</td>
 							<td class="col_quantity">
 								` + utils.IntToStr(curr_product_quantity) + `
 							</td>
-							<td class="col_total">
+							<td class="col_total d-none d-md-table-cell">
 								<div>` + utils.Float64ToStr(curr_product_total) + `</div>
 								<div><small>` + html.EscapeString(curr_order_currency_code) + `</small></div>
 							</td>

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