Changes for page Public Web Site
Last modified by Alex Cotiugă on 2026/03/02 20:58
From version 3.32
edited by Alex Cotiugă
on 2025/11/24 10:22
on 2025/11/24 10:22
Change comment:
There is no comment for this version
To version 3.66
edited by Alex Cotiugă
on 2025/11/24 15:54
on 2025/11/24 15:54
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Objects (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -159,17 +159,57 @@ 159 159 </div> 160 160 <div class="modal-body"> 161 161 <div> 162 - $services.localization.render('blog.modal.checkCategorySelection.body') 162 + Need help with your XWiki? <a href="mailto:alex@agnease.com">Contact Agnease</a> 163 + #displayFormFromSheetCode() 163 163 </div> 164 164 </div> 165 165 <div class="modal-footer"> 166 - <input id="continueCategorySelection" type="button" class="btn btn-default" data-dismiss="modal" 167 - value="$escapetool.xml($services.localization.render('yesno_1'))"> 168 - <input type="button" class="btn btn-danger" data-dismiss="modal" 169 - value="$escapetool.xml($services.localization.render('blog.modal.checkCategorySelection.footer.no'))"> 167 + ##<input id="continueCategorySelection" type="button" class="btn btn-default" data-dismiss="modal" 168 + ## value="$escapetool.xml($services.localization.render('yesno_1'))"> 170 170 </div> 171 171 </div> 172 172 </div> 173 173 </div> 174 174 #end 174 + 175 +#macro (stripHTMLMacro $displayOutput) 176 + $stringtool.removeEnd($stringtool.removeStart($displayOutput, '{{html clean="false" wiki="false"}}'), '{{/html}}') 177 +#end 178 + 179 +#macro (displayFormFromSheetCode) 180 + #set ($editing = true) 181 + ## The object to display. 182 + #set ($xobject = $doc.newObject('Agnease.Code.Lead.LeadClass')) 183 + ## The class that describes the object properties. 184 + #set ($xclass = $xwiki.getClass('Agnease.Code.Lead.LeadClass')) 185 + ## Make sure the following display* method calls use the right object. 186 + #set ($discard = $doc.use($xobject)) 187 + ## Using the xform vertical form layout. 188 + <div class="xform"> 189 + <dl> 190 + #foreach ($property in $xclass.properties) 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> 206 + #end 207 + #if (!$xclass.properties || $xclass.properties.size() == 0) 208 + ## Keep the empty definition term in order to have valid HTML. 209 + <dt></dt> 210 + <dd>$escapetool.xml($services.localization.render('xclass.defaultObjectSheet.noProperties'))</dd> 211 + #end 212 + </dl> 213 + </div> 214 +#end 175 175 {{/velocity}}
- XWiki.StyleSheetExtension[0]
-
- Code
-
... ... @@ -13,17 +13,6 @@ 13 13 padding: 0; 14 14 } 15 15 16 -a { 17 - color: @brand; 18 - text-decoration: none; 19 -} 20 - 21 -img { 22 - max-width: 100%; 23 - height: auto; 24 - display: block; 25 -} 26 - 27 27 .container { 28 28 max-width: @maxw; 29 29 } ... ... @@ -45,35 +45,6 @@ 45 45 } 46 46 } 47 47 48 -/* Buttons */ 49 -.btn { 50 - display: inline-flex; 51 - align-items: center; 52 - justify-content: center; 53 - padding: .85rem 1.1rem; 54 - border-radius: 12px; 55 - border: 2px solid transparent; 56 - font-weight: 650; 57 - letter-spacing: .2px; 58 - cursor: pointer; 59 - box-shadow: @shadow-sm; 60 - 61 - &:focus-visible { 62 - outline: 3px solid @brand; 63 - outline-offset: 2px; 64 - } 65 - 66 - &-primary { 67 - background: @brand; 68 - color: #fff; 69 - &:hover, 70 - &:focus { 71 - background: @brand-strong; 72 - color: #fff; 73 - } 74 - } 75 -} 76 - 77 77 /* ===== HERO ===== */ 78 78 .hero { 79 79 overflow: hidden;