Browse Source

Reorder admin with active

Vova Tkach 6 years ago
parent
commit
a3324b6ce6
1 changed files with 10 additions and 10 deletions
  1. 10 10
      modules/module_users.go

+ 10 - 10
modules/module_users.go

@@ -56,15 +56,15 @@ func (this *Modules) RegisterModule_Users() *Module {
 					DBField: "last_name",
 				},
 				{
-					DBField:     "admin",
-					NameInTable: "Admin",
+					DBField:     "active",
+					NameInTable: "Active",
 					CallBack: func(values *[]string) string {
 						return builder.CheckBox(utils.StrToInt((*values)[4]))
 					},
 				},
 				{
-					DBField:     "active",
-					NameInTable: "Active",
+					DBField:     "admin",
+					NameInTable: "Admin",
 					CallBack: func(values *[]string) string {
 						return builder.CheckBox(utils.StrToInt((*values)[5]))
 					},
@@ -172,18 +172,18 @@ func (this *Modules) RegisterModule_Users() *Module {
 					Required: pass_req,
 					Hint:     pass_hint,
 				},
-				{
-					Kind:    builder.DFKCheckBox,
-					Caption: "Admin",
-					Name:    "admin",
-					Value:   utils.IntToStr(data.A_admin),
-				},
 				{
 					Kind:    builder.DFKCheckBox,
 					Caption: "Active",
 					Name:    "active",
 					Value:   utils.IntToStr(data.A_active),
 				},
+				{
+					Kind:    builder.DFKCheckBox,
+					Caption: "Admin",
+					Name:    "admin",
+					Value:   utils.IntToStr(data.A_admin),
+				},
 				{
 					Kind: builder.DFKMessage,
 				},