Changes for page homeopathsSheet

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

From version 1.107
edited by Jip-jan Alunkel
on March 08, 15:35
Change comment: There is no comment for this version
To version 1.115
edited by Jip-jan Alunkel
on March 08, 15:42
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -36,10 +36,10 @@
36 36  #set($classProperties = [
37 37   {'practiceName': {'type': 'text'}},
38 38   {'pmStreet': {'type': 'text'}},
39 - {'pmHousenumber': {'type': 'text', 'parent': 'certification'}},
39 + {'pmHousenumber': {'type': 'text'}},
40 40   {'pmPostcode': {'type': 'text'}},
41 41   {'pmCity': {'type': 'text'}},
42 - {'pmCounty': {'type': 'text', 'parent': 'certification'}},
42 + {'pmCounty': {'type': 'text'}},
43 43   {'pmState': {'type': 'text'}},
44 44   {'pmCountry': {'type': 'text'}},
45 45   {'certification': {'type': 'checkbox', 'opener': 1}},
... ... @@ -79,6 +79,27 @@
79 79   #end
80 80  ## #createElementObjects($nonChildren)
81 81  *#
82 +
83 + #set($submit = {
84 + "id" : "edit_details",
85 + "button-text" : "Save changes",
86 + "clean": "true",
87 + "help-block" : ""
88 + })
89 + #set($form_end = {
90 + "use_captcha": "false"
91 + })
92 +<div class="modal fade" id="detailsModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
93 + <div class="modal-dialog modal-dialog-centered" role="document">
94 + <div class="modal-content">
95 + #createFormStart($form_start)
96 + <div class="modal-header">
97 + <h3 class="modal-title">Details</h3>
98 + <button type="button" class="close" data-dismiss="modal" aria-label="Close">
99 + <span aria-hidden="true">&times;</span>
100 + </button>
101 + </div>
102 + <div class="modal-body">
82 82  #set($lastChild = "")
83 83  #foreach($property in $classProperties)
84 84   #foreach($item in $property.keySet())
... ... @@ -95,11 +95,9 @@
95 95   #if($theDocObj.getProperty($key))
96 96   #set($value = $theDocObj.getProperty($key).value)
97 97   #if(!$value)
98 - #set($value = "1")
99 -
100 - #else
119 + #set($value = "")
101 101   #end
102 - $key : $value<br />
121 +## $key : $value<br />
103 103   #set($newElem = {
104 104   "id" : "$key",
105 105   "type" : $propertyType,
... ... @@ -120,15 +120,16 @@
120 120   #set($discard = $newElem.put("data-opener", "true"))
121 121   #end
122 122   #if($propertyParent)
123 - #set($lastChild = $key)
142 + #set($lastChild = "$key")
124 124   #elseif($lastChild != "")
144 + #set($lastChild = "")
125 125  ## #createExpandEnd()
126 126   #end
127 -## #createFormElement($newElem)
147 + #createFormElement($newElem)
148 + $lastChild
128 128   #if($propertyOpener)
129 129  ## #createExpandStart($newElem $newElem["value"])
130 130   #end
131 -##$theDocObj.getProperty("certification").value <br />
132 132   #end
133 133  
134 134  #*
... ... @@ -146,31 +146,7 @@
146 146  *#
147 147  
148 148  #end
149 -
150 - #set($submit = {
151 - "id" : "edit_details",
152 - "button-text" : "Save changes",
153 - "clean": "true",
154 - "help-block" : ""
155 - })
156 - #set($form_end = {
157 - "use_captcha": "false"
158 - })
159 -<div class="modal fade" id="detailsModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
160 - <div class="modal-dialog modal-dialog-centered" role="document">
161 - <div class="modal-content">
162 - #createFormStart($form_start)
163 - <div class="modal-header">
164 - <h3 class="modal-title">Details</h3>
165 - <button type="button" class="close" data-dismiss="modal" aria-label="Close">
166 - <span aria-hidden="true">&times;</span>
167 - </button>
168 168   </div>
169 - <div class="modal-body">
170 - #foreach($obj in $thisObj)
171 - #createFormElement($obj)
172 - #end
173 - </div>
174 174   <div class="modal-footer">
175 175   <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
176 176   #createSubmit($submit)