Browse Source

CP shop orders layout, mobile fixes

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

+ 13 - 0
assets/cp.styles.css

@@ -881,6 +881,19 @@ ul.pagination {
 	width: 5rem;
 }
 
+/* Admin table: table_shop_orders */
+.data-table.table_shop_orders .col_id {
+	width: 7rem;
+}
+
+.data-table.table_shop_orders .col_create_datetime {
+	width: 8rem;
+}
+
+.data-table.table_shop_orders .col_client_email {
+	width: 8rem;
+}
+
 /* Admin data form */
 .data-form label {
 	font-weight: bold;

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


+ 4 - 1
modules/module_shop.go

@@ -944,6 +944,7 @@ func (this *Modules) RegisterModule_Shop() *Module {
 					{
 						DBField:     "id",
 						NameInTable: "Order #",
+						Classes:     "d-none d-lg-table-cell",
 					},
 					{
 						DBField: "client_phone",
@@ -979,6 +980,8 @@ func (this *Modules) RegisterModule_Shop() *Module {
 							phone := html.EscapeString((*values)[1])
 							email := html.EscapeString((*values)[12])
 
+							order_id := `<span class="d-inline d-sm-none">#` + (*values)[0] + `. </span>`
+
 							name := ""
 							if last_name != "" {
 								name += " " + last_name
@@ -989,7 +992,7 @@ func (this *Modules) RegisterModule_Shop() *Module {
 							if second_name != "" {
 								name += " " + second_name
 							}
-							name = `<a href="` + link + `">` + strings.TrimSpace(name) + `</a>`
+							name = `<a href="` + link + `">` + order_id + strings.TrimSpace(name) + `</a>`
 
 							contact := ""
 							if email != "" {

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