Changes for page homeopathsSheet
Last modified by Jip-jan Alunkel on March 26, 17:31
From version 1.94
edited by Jip-jan Alunkel
on March 08, 15:19
on March 08, 15:19
Change comment:
There is no comment for this version
To version 1.89
edited by Jip-jan Alunkel
on March 08, 15:12
on March 08, 15:12
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -45,40 +45,6 @@ 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 -*# 82 82 #set($lastChild = "") 83 83 #foreach($property in $classProperties) 84 84 #foreach($item in $property.keySet()) ... ... @@ -94,9 +94,6 @@ 94 94 95 95 #if($theDocObj.getProperty($key)) 96 96 #set($value = $theDocObj.getProperty($key).value) 97 - #if(!$value) 98 - #set($value = "1") 99 - #end 100 100 #set($newElem = { 101 101 "id" : "$key", 102 102 "type" : $propertyType, ... ... @@ -119,13 +119,12 @@ 119 119 #if($propertyParent) 120 120 #set($lastChild = $key) 121 121 #elseif($lastChild != "") 122 - ###createExpandEnd()85 + #createExpandEnd() 123 123 #end 124 - ###createFormElement($newElem)87 + #createFormElement($newElem) 125 125 #if($propertyOpener) 126 - ###createExpandStart($newElem $newElem["value"])89 + #createExpandStart($newElem $newElem["value"]) 127 127 #end 128 -$theDocObj.getProperty("certification").value <br /> 129 129 #end 130 130 131 131 #* ... ... @@ -144,6 +144,38 @@ 144 144 145 145 #end 146 146 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) 147 147 #set($submit = { 148 148 "id" : "edit_details", 149 149 "button-text" : "Save changes",