diff --git a/xcpq/buildtime/xcpq_editor/cmd/tmp/build-errors.log b/xcpq/buildtime/xcpq_editor/cmd/tmp/build-errors.log new file mode 100644 index 000000000..05e59854e --- /dev/null +++ b/xcpq/buildtime/xcpq_editor/cmd/tmp/build-errors.log @@ -0,0 +1 @@ +exit status 1 \ No newline at end of file diff --git a/xcpq/buildtime/xcpq_editor/cmd/tmp/main b/xcpq/buildtime/xcpq_editor/cmd/tmp/main index 4182a7347..2691b6031 100755 Binary files a/xcpq/buildtime/xcpq_editor/cmd/tmp/main and b/xcpq/buildtime/xcpq_editor/cmd/tmp/main differ diff --git a/xcpq/buildtime/xcpq_editor/internal/handlers/property_types_handler.go b/xcpq/buildtime/xcpq_editor/internal/handlers/property_types_handler.go index 777ae3aa3..12f3fe014 100644 --- a/xcpq/buildtime/xcpq_editor/internal/handlers/property_types_handler.go +++ b/xcpq/buildtime/xcpq_editor/internal/handlers/property_types_handler.go @@ -41,6 +41,7 @@ func (h *PropertyTypesHandler) GetRootPropertyTypesGroups(ctx *gin.Context) { ) if err != nil { + log.Printf("Error parsing template: %v", err) ctx.JSON(http.StatusInternalServerError, gin.H{"error": err.Error()}) return } @@ -51,6 +52,7 @@ func (h *PropertyTypesHandler) GetRootPropertyTypesGroups(ctx *gin.Context) { log.Printf("Executing template with root property types groups") err = tmpl.Execute(ctx.Writer, rootGroups) if err != nil { + log.Printf("Error executing template: %v", err) ctx.JSON(http.StatusInternalServerError, gin.H{"error": err.Error()}) return } diff --git a/xcpq/buildtime/xcpq_editor/internal/models/property.go b/xcpq/buildtime/xcpq_editor/internal/models/property.go index d2a814ddd..d1e688b89 100644 --- a/xcpq/buildtime/xcpq_editor/internal/models/property.go +++ b/xcpq/buildtime/xcpq_editor/internal/models/property.go @@ -1,11 +1,11 @@ package models type Property struct { - Id int `json:"id,omitempty"` - Name string `json:"name"` - Description string `json:"description,omitempty"` - Image_Url string `json:"image_url,omitempty"` - Property_Type *Property_Type `json:"property_type,omitempty"` + Id int `json:"id,omitempty"` + Name string `json:"name"` + Description string `json:"description,omitempty"` + Image_Url string `json:"image_url,omitempty"` + //Property_Type *Property_Type `json:"property_type,omitempty"` Parent_Property *Property `json:"parent_property,omitempty"` Products_Group *Product_Group `json:"products_group,omitempty"` Product *Product `json:"products,omitempty"` diff --git a/xcpq/buildtime/xcpq_editor/templates/partials/pt_treeNode.html b/xcpq/buildtime/xcpq_editor/templates/partials/pt_treeNode.html new file mode 100644 index 000000000..fab1efc9d --- /dev/null +++ b/xcpq/buildtime/xcpq_editor/templates/partials/pt_treeNode.html @@ -0,0 +1,14 @@ +{{template "pt_treeNode" .}} +{{range .}} +