Browse Source

Add/Edit page

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

+ 10 - 3
engine/backend/modules/module_users.go

@@ -72,9 +72,16 @@ func (this *Module) Module_users_content() string {
 				`<a class="ico" href="#">` + others.File_assets_sys_svg_remove + `</a>`
 				`<a class="ico" href="#">` + others.File_assets_sys_svg_remove + `</a>`
 		}, "/cp/users/default/")
 		}, "/cp/users/default/")
 		return breadcrumb + data_table
 		return breadcrumb + data_table
-	} else if this.smod == "modify" {
-		// Add/Edit
-		return "Edit!"
+	} else if this.smod == "modify" && this.imod == 0 {
+		breadcrumb := this.breadcrumb([]dataBreadcrumb{
+			{"Add new user", ""},
+		})
+		return breadcrumb
+	} else if this.smod == "modify" && this.imod != 0 {
+		breadcrumb := this.breadcrumb([]dataBreadcrumb{
+			{"Edit user", ""},
+		})
+		return breadcrumb
 	}
 	}
 	return ""
 	return ""
 }
 }