Cambios para el documento Macros

Última modificación por Jip-jan Alunkel el abril 15, 18:09

Desde la versión 2.384
editado por Jip-jan Alunkel
el febrero 19, 19:54
Cambiar el comentario: Update document after refactoring.
Hasta la versión 2.392
editado por Jip-jan Alunkel
el febrero 20, 00:35
Cambiar el comentario: Update document after refactoring.

Resumen

Detalles

Propiedades de página
Contenido
... ... @@ -50,7 +50,11 @@
50 50   #if($elementType == 'captcha')
51 51   #set($paragraphCSSClass = ' class="required slideCaptcha-box"')
52 52   #else
53 - #set($paragraphCSSClass = ' class="required"')
53 + #if($elementDataObj.data-required-spoof != "true")
54 + #set($paragraphCSSClass = ' class="required"')
55 + #else
56 + #set($paragraphCSSClass = ' class="required-spoof"')
57 + #end
54 54   #end
55 55   #elseif($elementDataObj.type == 'captcha')
56 56   #set($paragraphCSSClass = ' class="slideCaptcha-box"')
... ... @@ -180,11 +180,11 @@
180 180  
181 181  #macro(createSelectElement $O_elementData $O_tagName)
182 182   #set($currentSpaceName = $services.model.resolveDocument('', 'default', $doc.documentReference.lastSpaceReference).parent.getName())
183 - <select name="${O_elementData.id}" id="${O_elementData.id}" data-value="$O_elementData.value" class="form-select form-control"#if($O_elementData.aria-label) aria-label="${O_elementData.aria-label}"#end#if($O_elementData.data-opener) data-opener="${O_elementData.data-opener}"#end aria-describedby="${O_elementData.id}_helpBlock"#if($O_elementData.required == "true") aria-required="true" required="required" data-error-response-type="${O_elementData.data-error-response-type}"#else aria-required="false"#end#if(${O_elementData.data-set-space}) data-set-space="${O_elementData.data-set-space}" data-parent-space="${currentSpaceName}"#end#if($O_elementData.data-space-xobj-classname) data-space-xobj-classname="${O_elementData.data-space-xobj-classname}"#end>
187 + <select name="${O_elementData.id}" id="${O_elementData.id}" class="form-select form-control empty"#if($O_elementData.aria-label) aria-label="${O_elementData.aria-label}"#end#if($O_elementData.data-opener) data-opener="${O_elementData.data-opener}"#end aria-describedby="${O_elementData.id}_helpBlock"#if($O_elementData.required == "true") aria-required="true" required="required" data-error-response-type="${O_elementData.data-error-response-type}"#else aria-required="false"#end#if(${O_elementData.data-set-space}) data-set-space="${O_elementData.data-set-space}" data-parent-space="${currentSpaceName}"#end#if($O_elementData.data-space-xobj-classname) data-space-xobj-classname="${O_elementData.data-space-xobj-classname}"#end>
184 184   #if($O_elementData.placeholder)
185 - #if($O_elementData.select-json && !$O_elementData.select-json.keySet().contains($O_elementData.value))
189 +## #if($O_elementData.select-json && !$O_elementData.select-json.keySet().contains($O_elementData.value))
186 186   <option value="" disabled="" hidden="hidden"#if($O_elementData.value == "") selected="selected"#end>${O_elementData.placeholder}</option>
187 - #end
191 +## #end
188 188   #end
189 189  
190 190   ## Get the JSON data.