Changes for page homeopathsSheet

Last modified by Jip-jan Alunkel on March 26, 17:31

From version 1.86
edited by Jip-jan Alunkel
on March 08, 15:06
Change comment: There is no comment for this version
To version 1.93
edited by Jip-jan Alunkel
on March 08, 15:18
Change comment: There is no comment for this version

Summary

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,20 +82,15 @@
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 +$theDocObj.getProperty("certification").value <br />
91 91   #end
92 92  
93 -
94 -$key
95 -$propertyType
96 -#if($propertyOpener && $propertyOpener == 1) is property opener#end
97 -#if($propertyParent) has property parent: $propertyParent#end
98 -<br />
99 99  #*
100 100   #if($theDocObj.getProperty($property))
101 101   <p class="property">
... ... @@ -112,38 +112,6 @@
112 112  
113 113  #end
114 114  
115 - #if($hasRight)
116 - <p class="buttons text-align-right">
117 - <a class="btn btn-secondary" title="Edit" data-toggle="modal" data-target="#detailsModal" role="button" rel="nofollow">
118 - <span class="btn-label">Edit details</span>
119 - </a>
120 - </p>
121 - #end
122 -</div>
123 - #if($hasRight)
124 - #set($form_start = {
125 - "id": "homeopaths_form",
126 - "product": "homeopath details",
127 - "method": "post",
128 - "url": "",
129 - "use_captcha": "false"
130 - })
131 - #set($thisObj = {})
132 - #set($children = {})
133 - #set($nonChildren = {})
134 - #foreach($item in $classProperties.keySet())
135 - #if($classProperties[$item].opener == 1)
136 - #set($parentID = $classProperties[$item].parent)
137 - #if(!$children[$parentID])
138 - #set($discard = $children.put("$parentID", {}))
139 - #end
140 - #set($discard = $children["$parentID"].put($item, $classProperties[$item]))
141 - #elseif($classProperties[$item].parent)## ???? Ws fout
142 - #else
143 - #set($discard = $nonChildren.put($item, $classProperties[$item]))
144 - #end
145 - #end
146 - #createElementObjects($nonChildren)
147 147   #set($submit = {
148 148   "id" : "edit_details",
149 149   "button-text" : "Save changes",