Changes for page Public Web Site
Last modified by Alex Cotiugă on 2026/03/02 20:58
From version 3.86
edited by Alex Cotiugă
on 2025/11/27 10:42
on 2025/11/27 10:42
Change comment:
There is no comment for this version
To version 3.60
edited by Alex Cotiugă
on 2025/11/24 12:32
on 2025/11/24 12:32
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -8,11 +8,10 @@ 8 8 <h1 id="hero-title">Professional XWiki solutions, from setup to long-term stability</h1> 9 9 <p class="lead">Need your XWiki upgraded, secured, or improved? Let’s make it happen.</p> 10 10 <div class="hero-cta"> 11 - Need help with your XWiki? <a href="mailto:alex@agnease.com">Contact Agnease</a> 12 - #*<a class="btn btn-primary" href="#contact" aria-label="Request a consultation" data-toggle="modal" data-target="#requestConsultation"> 11 + <a class="btn btn-primary" href="#contact" aria-label="Request a consultation" data-toggle="modal" data-target="#requestConsultation"> 13 13 Request a consultation 14 14 </a> 15 - #requestConsultationModal() *#14 + #requestConsultationModal() 16 16 ##data-toggle="modal" data-target="#requestConsultationModal" 17 17 </div> 18 18 <ul class="benefits"> ... ... @@ -160,7 +160,7 @@ 160 160 </div> 161 161 <div class="modal-body"> 162 162 <div> 163 - ##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> 164 164 #displayFormFromSheetCode() 165 165 </div> 166 166 </div> ... ... @@ -173,16 +173,13 @@ 173 173 </div> 174 174 #end 175 175 176 -#macro (stripHTMLMacro $displayOutput) 177 - $stringtool.removeEnd($stringtool.removeStart($displayOutput, '{{html clean="false" wiki="false"}}'), '{{/html}}').replace('Agnease.Code.Lead.LeadClass_0_', 'acl-') 178 -#end 179 - 180 180 #macro (displayFormFromSheetCode) 181 - #set ($editing = t rue)176 + #set ($editing = $xcontext.action == 'edit') 182 182 ## The object to display. 183 - #set ($xobject = $doc. newObject('Agnease.Code.Lead.LeadClass'))178 + #set ($xobject = $doc.getObject('Agnease.Code.Lead.LeadClass')) 184 184 ## The class that describes the object properties. 185 185 #set ($xclass = $xwiki.getClass('Agnease.Code.Lead.LeadClass')) 181 + $xclass 186 186 ## Make sure the following display* method calls use the right object. 187 187 #set ($discard = $doc.use($xobject)) 188 188 ## Using the xform vertical form layout. ... ... @@ -189,23 +189,20 @@ 189 189 <div class="xform"> 190 190 <dl> 191 191 #foreach ($property in $xclass.properties) 192 - #if ($property.name != 'status') 193 - <dt #if (!$editing) 194 - class="editableProperty" 195 - #set ($xobjectPropertyReference = $xobject.getPropertyReference($property.name)) 196 - data-property="$escapetool.xml($services.model.serialize($xobjectPropertyReference))" 197 - data-property-type="object"#end> 198 - ## This must match the id generated by the $doc.display() method below. 199 - #set ($propertyId = "acl-$property.name") 200 - <label#if ($editing) for="$escapetool.xml($propertyId)"#end> 201 - $escapetool.xml($property.translatedPrettyName) 202 - </label> 203 - ## Support for specifying a translation key as hint in the property definition. 204 - <span class="xHint">$!escapetool.xml($services.localization.render($property.hint))</span> 205 - </dt> 206 - #set ($displayOutput = $doc.display($property.name, 'edit')) 207 - <dd>#stripHTMLMacro($displayOutput)</dd> 208 - #end 188 + <dt #if (!$editing && $hasEdit) 189 + class="editableProperty" 190 + #set ($xobjectPropertyReference = $xobject.getPropertyReference($property.name)) 191 + data-property="$escapetool.xml($services.model.serialize($xobjectPropertyReference))" 192 + data-property-type="object"#end> 193 + ## This must match the id generated by the $doc.display() method below. 194 + #set ($propertyId = "${xclass.name}_${xobject.number}_$property.name") 195 + <label#if ($editing) for="$escapetool.xml($propertyId)"#end> 196 + $escapetool.xml($property.translatedPrettyName) 197 + </label> 198 + ## Support for specifying a translation key as hint in the property definition. 199 + <span class="xHint">$!escapetool.xml($services.localization.render($property.hint))</span> 200 + </dt> 201 + <dd>$doc.display($property.name)</dd> 209 209 #end 210 210 #if (!$xclass.properties || $xclass.properties.size() == 0) 211 211 ## Keep the empty definition term in order to have valid HTML.