Изменения документа homeopathsSheet
Редактировал(а) Jip-jan Alunkel марта 26, 17:31
От версии 3.2
отредактировано Jip-jan Alunkel
на марта 08, 20:14
на марта 08, 20:14
Изменить комментарий:
Rollback to version 1.38
К версии 3.6
отредактировано Jip-jan Alunkel
на марта 08, 22:11
на марта 08, 22:11
Изменить комментарий:
Rollback to version 1.38
Сводка
-
Свойства страницы (1 изменено, 0 добавлено, 0 удалено)
Подробности
- Свойства страницы
-
- Содержимое
-
... ... @@ -34,7 +34,7 @@ 34 34 <h2>Details</h2> 35 35 ## The classProperties Map has to be in the order of how you want the form elements to appear in the form. 36 36 #set($classProperties = { 37 - 'practiceName': {'type': 'text'}, 37 + 'practiceName': {'type': 'text', 'extraAttributes': {"disabled": "disabled"}}, 38 38 'pmAddress': {'type': 'address', 'extraAttributes': {"aria-label": "Input and select the address of your practice", "placeholder": "$services.localization.render('homeopaths.multiword.address.placeholder')", "data-auto-first-capital": "true", "data-query-type": "address", "data-query-reference": "", "data-query-list-type": "suggest-select", "data-query-list-header": "$services.localization.render('pagemaker.line.suggest_select_list')", "data-query-list-contents": "value/key", "data-query-list-editable": "false", "data-create-xobj": "true", "data-xobj-classname": "homeopaths.Code.homeopathsClass", "help-block" : 'Input street and number, then select the address of your practice.'}}, 39 39 'pmStreet': {'type': 'text'}, 40 40 'pmHousenumber': {'type': 'text'}, ... ... @@ -50,9 +50,11 @@ 50 50 #if($theDocObj.getProperty($property)) 51 51 <p class="property"> 52 52 #if($theDocObj.getProperty($property).value != "" && $property != "pmHousenumber") ## Difference with added housenumber because of the streetaddress layout. 53 - #if($property == "pmStreet") ## Difference with added housenumber because of the streetaddress layout.53 + #if($property == "pmStreet") 54 54 <span class="property-name">$services.localization.render("homeopaths.classproperty.address")</span> <span class="property-value">$doc.display($property) $doc.display("pmHousenumber")</span> 55 - #else 55 + #elseif($property == "practiceName") ## Difference, should receive the title from the page. 56 + <span class="property-name">$services.localization.render("homeopaths.classproperty.${property}")</span> <span class="property-value">$doc.getTitle()</span> 57 + #else ## Normal situation. 56 56 <span class="property-name">$services.localization.render("homeopaths.classproperty.${property}")</span> <span class="property-value">$doc.display($property)</span> 57 57 #end 58 58 </p>