Changes for page Public Web Site
Last modified by Alex Cotiugă on 2025/11/27 10:42
From version 3.42
edited by Alex Cotiugă
on 2025/11/24 10:24
on 2025/11/24 10:24
Change comment:
There is no comment for this version
To version 3.55
edited by Alex Cotiugă
on 2025/11/24 12:30
on 2025/11/24 12:30
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,52 @@ 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 (displayFormFromSheetCode) 176 + #set ($editing = $xcontext.action == 'edit') 177 + ## The object to display. 178 + #set ($xobject = $doc.getObject('Agnease.Code.Lead.LeadClass')) 179 + ## The class that describes the object properties. 180 + #set ($xclass = $xobject.xWikiClass) 181 + ## Make sure the following display* method calls use the right object. 182 + #set ($discard = $doc.use($xobject)) 183 + ## Using the xform vertical form layout. 184 + <div class="xform"> 185 + <dl> 186 + #foreach ($property in $xclass.properties) 187 + <dt #if (!$editing && $hasEdit) 188 + class="editableProperty" 189 + #set ($xobjectPropertyReference = $xobject.getPropertyReference($property.name)) 190 + data-property="$escapetool.xml($services.model.serialize($xobjectPropertyReference))" 191 + data-property-type="object"#end> 192 + ## This must match the id generated by the $doc.display() method below. 193 + #set ($propertyId = "${xclass.name}_${xobject.number}_$property.name") 194 + <label#if ($editing) for="$escapetool.xml($propertyId)"#end> 195 + $escapetool.xml($property.translatedPrettyName) 196 + </label> 197 + ## Support for specifying a translation key as hint in the property definition. 198 + <span class="xHint">$!escapetool.xml($services.localization.render($property.hint))</span> 199 + </dt> 200 + <dd>$doc.display($property.name)</dd> 201 + #end 202 + #if (!$xclass.properties || $xclass.properties.size() == 0) 203 + ## Keep the empty definition term in order to have valid HTML. 204 + <dt></dt> 205 + <dd>$escapetool.xml($services.localization.render('xclass.defaultObjectSheet.noProperties'))</dd> 206 + #end 207 + </dl> 208 + </div> 209 +#end 175 175 {{/velocity}}
- XWiki.StyleSheetExtension[0]
-
- Code
-
... ... @@ -34,25 +34,6 @@ 34 34 } 35 35 } 36 36 37 -/* Buttons */ 38 -.btn { 39 - display: inline-flex; 40 - align-items: center; 41 - justify-content: center; 42 - padding: .85rem 1.1rem; 43 - border-radius: 12px; 44 - border: 2px solid transparent; 45 - font-weight: 650; 46 - letter-spacing: .2px; 47 - cursor: pointer; 48 - box-shadow: @shadow-sm; 49 - 50 - /*&:focus-visible { 51 - outline: 3px solid @brand; 52 - outline-offset: 2px; 53 - }*/ 54 -} 55 - 56 56 /* ===== HERO ===== */ 57 57 .hero { 58 58 overflow: hidden;