Changes for page homeopathsSheet

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

From version 1.90
edited by Jip-jan Alunkel
on March 08, 15:14
Change comment: There is no comment for this version
To version 1.88
edited by Jip-jan Alunkel
on March 08, 15:09
Change comment: There is no comment for this version

Summary

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())
... ... @@ -140,6 +140,38 @@
140 140  
141 141  #end
142 142  
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)
143 143   #set($submit = {
144 144   "id" : "edit_details",
145 145   "button-text" : "Save changes",