Changes for page homeopathsSheet
Last modified by Jip-jan Alunkel on March 26, 17:31
From version 1.117
edited by Jip-jan Alunkel
on March 08, 15:44
on March 08, 15:44
Change comment:
There is no comment for this version
To version 1.108
edited by Jip-jan Alunkel
on March 08, 15:36
on March 08, 15:36
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
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'}}, 39 + {'pmHousenumber': {'type': 'text', 'parent': 'certification'}}, 40 40 {'pmPostcode': {'type': 'text'}}, 41 41 {'pmCity': {'type': 'text'}}, 42 - {'pmCounty': {'type': 'text'}}, 42 + {'pmCounty': {'type': 'text', 'parent': 'certification'}}, 43 43 {'pmState': {'type': 'text'}}, 44 44 {'pmCountry': {'type': 'text'}}, 45 45 {'certification': {'type': 'checkbox', 'opener': 1}}, ... ... @@ -79,27 +79,6 @@ 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">×</span> 100 - </button> 101 - </div> 102 - <div class="modal-body"> 103 103 #set($lastChild = "") 104 104 #foreach($property in $classProperties) 105 105 #foreach($item in $property.keySet()) ... ... @@ -116,9 +116,9 @@ 116 116 #if($theDocObj.getProperty($key)) 117 117 #set($value = $theDocObj.getProperty($key).value) 118 118 #if(!$value) 119 - #set($value = "") 98 + #set($value = "1") 120 120 #end 121 - ##$key : $value<br />100 + $key : $value<br /> 122 122 #set($newElem = { 123 123 "id" : "$key", 124 124 "type" : $propertyType, ... ... @@ -139,17 +139,15 @@ 139 139 #set($discard = $newElem.put("data-opener", "true")) 140 140 #end 141 141 #if($propertyParent) 142 - #set($lastChild = "$key")121 + #set($lastChild = $key) 143 143 #elseif($lastChild != "") 144 - #set($lastChild = "") 145 - #createExpandEnd() 123 +## #createExpandEnd() 146 146 #end 147 - #createFormElement($newElem) 148 - $lastChild 125 +## #createFormElement($newElem) 149 149 #if($propertyOpener) 150 - $newElem["value"] 151 - #createExpandStart($newElem $newElem["value"]) 127 +## #createExpandStart($newElem $newElem["value"]) 152 152 #end 129 +##$theDocObj.getProperty("certification").value <br /> 153 153 #end 154 154 155 155 #* ... ... @@ -167,7 +167,31 @@ 167 167 *# 168 168 169 169 #end 147 + 148 + #set($submit = { 149 + "id" : "edit_details", 150 + "button-text" : "Save changes", 151 + "clean": "true", 152 + "help-block" : "" 153 + }) 154 + #set($form_end = { 155 + "use_captcha": "false" 156 + }) 157 +<div class="modal fade" id="detailsModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true"> 158 + <div class="modal-dialog modal-dialog-centered" role="document"> 159 + <div class="modal-content"> 160 + #createFormStart($form_start) 161 + <div class="modal-header"> 162 + <h3 class="modal-title">Details</h3> 163 + <button type="button" class="close" data-dismiss="modal" aria-label="Close"> 164 + <span aria-hidden="true">×</span> 165 + </button> 170 170 </div> 167 + <div class="modal-body"> 168 + #foreach($obj in $thisObj) 169 + #createFormElement($obj) 170 + #end 171 + </div> 171 171 <div class="modal-footer"> 172 172 <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button> 173 173 #createSubmit($submit)