Browse Source

Active field value to icon

Vova Tkach 6 years ago
parent
commit
e58402cd4b
1 changed files with 3 additions and 0 deletions
  1. 3 0
      modules/module_index.go

+ 3 - 0
modules/module_index.go

@@ -72,6 +72,9 @@ func (this *Modules) RegisterModule_Index() *Module {
 				{
 				{
 					DBField:     "active",
 					DBField:     "active",
 					NameInTable: "Active",
 					NameInTable: "Active",
+					CallBack: func(values *[]string) string {
+						return builder.CheckBox(utils.StrToInt((*values)[4]))
+					},
 				},
 				},
 			}, func(values *[]string) string {
 			}, func(values *[]string) string {
 				return `<a class="ico" href="/cp/` + wrap.CurrModule + `/modify/` + (*values)[0] + `/">` +
 				return `<a class="ico" href="/cp/` + wrap.CurrModule + `/modify/` + (*values)[0] + `/">` +