Changes for page Macros
Last modified by Jip-jan Alunkel on April 15, 18:09
From version 1.1
edited by Jip-jan Alunkel
on March 08, 17:19
on March 08, 17:19
Change comment:
There is no comment for this version
To version 1.2
edited by Jip-jan Alunkel
on March 24, 13:51
on March 24, 13:51
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,0 +1,32 @@ 1 + 2 +{{velocity}} 3 +type: select 4 +id: locality 5 +label: Locality of the main complaint 6 +aria-label: Select the locality 7 +data-error-response-type: use_label_defined_1 8 +data-set-space: true 9 +placeholder translation key: cases.word.locality_select.placeholder 10 +#macro(displayNotificationEventSkeleton $mainIcon $smallIcon $content $details) 11 + <p class="required"> 12 + <label for="locality_select"> 13 + Locality of the main complaint 14 + <span class="input-wrap select-wrap"> 15 + <select class="form-select form-control" aria-label="Select the locality" aria-describedby="locality_helpBlock" aria-required="true" required="required" data-error-response-type="use_label_defined_1" data-set-space="true" name="locality_select" id="locality_select"> 16 + <option value="" disabled="" selected="" hidden="hidden">$services.localization.render('cases.word.locality_select.placeholder')</option> 17 + #set($xwql = "from doc.object(AppWithinMinutes.MetadataClass) met where doc.space like 'cases.%' and doc.space <> 'cases.Code' order by met.dataSpaceName asc") 18 + #set($results = $services.query.xwql($xwql).addFilter('unique').execute()) 19 + #foreach ($item in $results) 20 + #set ($document = $xwiki.getDocument($item)) 21 + <option value="$document.space">$document.getTitle()</option> 22 + #end 23 + </select> 24 + <span id="locality_helpBlock" class="help-block">In which physiological or psychological epicenter can the main complaint be placed? Select the best fitting option from this list.</span> 25 + <span class="required-input-field" title="Required input"></span> 26 + <span role="alert" class="form-not-valid-tip"></span> 27 + </span> 28 + </label> 29 + </p> 30 +#end 31 +{{/velocity}} 32 +