0 Votes

Changes for page Public Web Site

Last modified by Alex Cotiugă on 2025/11/27 10:42

From version 3.84
edited by Alex Cotiugă
on 2025/11/24 16:16
Change comment: There is no comment for this version
To version 3.69
edited by Alex Cotiugă
on 2025/11/24 15:54
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -159,7 +159,7 @@
159 159   </div>
160 160   <div class="modal-body">
161 161   <div>
162 - ##Need help with your XWiki? <a href="mailto:alex@agnease.com">Contact Agnease</a>
162 + Need help with your XWiki? <a href="mailto:alex@agnease.com">Contact Agnease</a>
163 163   #displayFormFromSheetCode()
164 164   </div>
165 165   </div>
... ... @@ -173,7 +173,7 @@
173 173  #end
174 174  
175 175  #macro (stripHTMLMacro $displayOutput)
176 - $stringtool.removeEnd($stringtool.removeStart($displayOutput, '{{html clean="false" wiki="false"}}'), '{{/html}}').replace('Agnease.Code.Lead.LeadClass_0_', 'acl-')
176 + $stringtool.removeEnd($stringtool.removeStart($displayOutput, '{{html clean="false" wiki="false"}}'), '{{/html}}')
177 177  #end
178 178  
179 179  #macro (displayFormFromSheetCode)
... ... @@ -185,26 +185,24 @@
185 185   ## Make sure the following display* method calls use the right object.
186 186   #set ($discard = $doc.use($xobject))
187 187   ## Using the xform vertical form layout.
188 - <div class="xform">
188 + <div class="xform half">
189 189   <dl>
190 190   #foreach ($property in $xclass.properties)
191 - #if ($property.name != 'status')
192 - <dt #if (!$editing)
193 - class="editableProperty"
194 - #set ($xobjectPropertyReference = $xobject.getPropertyReference($property.name))
195 - data-property="$escapetool.xml($services.model.serialize($xobjectPropertyReference))"
196 - data-property-type="object"#end>
197 - ## This must match the id generated by the $doc.display() method below.
198 - #set ($propertyId = "acl-$property.name")
199 - <label#if ($editing) for="$escapetool.xml($propertyId)"#end>
200 - $escapetool.xml($property.translatedPrettyName)
201 - </label>
202 - ## Support for specifying a translation key as hint in the property definition.
203 - <span class="xHint">$!escapetool.xml($services.localization.render($property.hint))</span>
204 - </dt>
205 - #set ($displayOutput = $doc.display($property.name, 'edit'))
206 - <dd>#stripHTMLMacro($displayOutput)</dd>
207 - #end
191 + <dt #if (!$editing)
192 + class="editableProperty"
193 + #set ($xobjectPropertyReference = $xobject.getPropertyReference($property.name))
194 + data-property="$escapetool.xml($services.model.serialize($xobjectPropertyReference))"
195 + data-property-type="object"#end>
196 + ## This must match the id generated by the $doc.display() method below.
197 + #set ($propertyId = "${xclass.name}_${xobject.number}_$property.name")
198 + <label#if ($editing) for="$escapetool.xml($propertyId)"#end>
199 + $escapetool.xml($property.translatedPrettyName)
200 + </label>
201 + ## Support for specifying a translation key as hint in the property definition.
202 + <span class="xHint">$!escapetool.xml($services.localization.render($property.hint))</span>
203 + </dt>
204 + #set ($displayOutput = $doc.display($property.name, 'edit'))
205 + <dd>#stripHTMLMacro($displayOutput)</dd>
208 208   #end
209 209   #if (!$xclass.properties || $xclass.properties.size() == 0)
210 210   ## Keep the empty definition term in order to have valid HTML.