Changes for page homeopathsSheet

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

From version 1.108
edited by Jip-jan Alunkel
on March 08, 15:36
Change comment: There is no comment for this version
To version 1.114
edited by Jip-jan Alunkel
on March 08, 15:41
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -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,9 +95,9 @@
95 95   #if($theDocObj.getProperty($key))
96 96   #set($value = $theDocObj.getProperty($key).value)
97 97   #if(!$value)
98 - #set($value = "1")
119 + #set($value = "")
99 99   #end
100 - $key : $value<br />
121 +## $key : $value<br />
101 101   #set($newElem = {
102 102   "id" : "$key",
103 103   "type" : $propertyType,
... ... @@ -118,15 +118,16 @@
118 118   #set($discard = $newElem.put("data-opener", "true"))
119 119   #end
120 120   #if($propertyParent)
121 - #set($lastChild = $key)
142 + #set($lastChild = "$key")
122 122   #elseif($lastChild != "")
144 + #set($lastChild = "")
123 123  ## #createExpandEnd()
124 124   #end
125 -## #createFormElement($newElem)
147 + #createFormElement($newElem)
148 + $lastChild
126 126   #if($propertyOpener)
127 127  ## #createExpandStart($newElem $newElem["value"])
128 128   #end
129 -##$theDocObj.getProperty("certification").value <br />
130 130   #end
131 131  
132 132  #*
... ... @@ -144,31 +144,7 @@
144 144  *#
145 145  
146 146  #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">&times;</span>
165 - </button>
166 166   </div>
167 - <div class="modal-body">
168 - #foreach($obj in $thisObj)
169 - #createFormElement($obj)
170 - #end
171 - </div>
172 172   <div class="modal-footer">
173 173   <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
174 174   #createSubmit($submit)