Изменения документа homeopathsSheet

Редактировал(а) Jip-jan Alunkel марта 26, 17:31

От версии 3.3
отредактировано Jip-jan Alunkel
на марта 08, 21:40
Изменить комментарий: Rollback to version 1.38
К версии 3.7
отредактировано Jip-jan Alunkel
на марта 08, 23:21
Изменить комментарий: Rollback to version 1.38

Сводка

Подробности

Свойства страницы
Название
... ... @@ -1,1 +1,0 @@
1 -$xwiki.getDocument("${doc.fullName}").getObject("homeopaths.Code.homeopathsClass").getProperty("practiceName").value
Содержимое
... ... @@ -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", "help-block" : 'The name of your practice is the title of this page. If you want to change it, you should edit the contents of this page.'}},
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>