Исходный код вики form-elements
Версия 1.2 от Jip-jan Alunkel на марта 24, 13:51
Последние авторы
author | version | line-number | content |
---|---|---|---|
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}} |