Changes for page homeopathsSheet
Last modified by Jip-jan Alunkel on March 26, 17:31
From version 1.87
edited by Jip-jan Alunkel
on March 08, 15:07
on March 08, 15:07
Change comment:
There is no comment for this version
To version 1.92
edited by Jip-jan Alunkel
on March 08, 15:16
on March 08, 15:16
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -45,6 +45,40 @@ 45 45 {'certification': {'type': 'checkbox', 'opener': 1}}, 46 46 {'certificationFrom': {'type': 'text', 'parent': 'certification'}} 47 47 ]) 48 + 49 + #if($hasRight) 50 + <p class="buttons text-align-right"> 51 + <a class="btn btn-secondary" title="Edit" data-toggle="modal" data-target="#detailsModal" role="button" rel="nofollow"> 52 + <span class="btn-label">Edit details</span> 53 + </a> 54 + </p> 55 + #end 56 +</div> 57 + #if($hasRight) 58 + #set($form_start = { 59 + "id": "homeopaths_form", 60 + "product": "homeopath details", 61 + "method": "post", 62 + "url": "", 63 + "use_captcha": "false" 64 + }) 65 +#* #set($thisObj = {}) 66 + #set($children = {}) 67 + #set($nonChildren = {}) 68 + #foreach($item in $classProperties.keySet()) 69 + #if($classProperties[$item].opener == 1) 70 + #set($parentID = $classProperties[$item].parent) 71 + #if(!$children[$parentID]) 72 + #set($discard = $children.put("$parentID", {})) 73 + #end 74 + #set($discard = $children["$parentID"].put($item, $classProperties[$item])) 75 + #elseif($classProperties[$item].parent)## ???? Ws fout 76 + #else 77 + #set($discard = $nonChildren.put($item, $classProperties[$item])) 78 + #end 79 + #end 80 +## #createElementObjects($nonChildren) 81 +*# 48 48 #set($lastChild = "") 49 49 #foreach($property in $classProperties) 50 50 #foreach($item in $property.keySet()) ... ... @@ -82,12 +82,13 @@ 82 82 #if($propertyParent) 83 83 #set($lastChild = $key) 84 84 #elseif($lastChild != "") 85 - #createExpandEnd() 119 +## #createExpandEnd() 86 86 #end 87 - #createFormElement($newElem) 121 +## #createFormElement($newElem) 88 88 #if($propertyOpener) 89 - #createExpandStart($newElem $newElem .value)123 +## #createExpandStart($newElem $newElem["value"]) 90 90 #end 125 +$newElem <br /> 91 91 #end 92 92 93 93 #* ... ... @@ -106,38 +106,6 @@ 106 106 107 107 #end 108 108 109 - #if($hasRight) 110 - <p class="buttons text-align-right"> 111 - <a class="btn btn-secondary" title="Edit" data-toggle="modal" data-target="#detailsModal" role="button" rel="nofollow"> 112 - <span class="btn-label">Edit details</span> 113 - </a> 114 - </p> 115 - #end 116 -</div> 117 - #if($hasRight) 118 - #set($form_start = { 119 - "id": "homeopaths_form", 120 - "product": "homeopath details", 121 - "method": "post", 122 - "url": "", 123 - "use_captcha": "false" 124 - }) 125 - #set($thisObj = {}) 126 - #set($children = {}) 127 - #set($nonChildren = {}) 128 - #foreach($item in $classProperties.keySet()) 129 - #if($classProperties[$item].opener == 1) 130 - #set($parentID = $classProperties[$item].parent) 131 - #if(!$children[$parentID]) 132 - #set($discard = $children.put("$parentID", {})) 133 - #end 134 - #set($discard = $children["$parentID"].put($item, $classProperties[$item])) 135 - #elseif($classProperties[$item].parent)## ???? Ws fout 136 - #else 137 - #set($discard = $nonChildren.put($item, $classProperties[$item])) 138 - #end 139 - #end 140 - #createElementObjects($nonChildren) 141 141 #set($submit = { 142 142 "id" : "edit_details", 143 143 "button-text" : "Save changes",