Modifications pour le document homeopathsSheet
Modifié par Jip-jan Alunkel le mars 26, 17:31
Depuis la version 3.7
modifié par Jip-jan Alunkel
sur mars 08, 23:21
sur mars 08, 23:21
Commentaire de modification :
Rollback to version 1.38
À la version 3.3
modifié par Jip-jan Alunkel
sur mars 08, 21:40
sur mars 08, 21:40
Commentaire de modification :
Rollback to version 1.38
Résumé
-
Propriétés de la Page (2 modifications, 0 ajouts, 0 suppressions)
Détails
- Propriétés de la Page
-
- Titre
-
... ... @@ -1,0 +1,1 @@ 1 +$xwiki.getDocument("${doc.fullName}").getObject("homeopaths.Code.homeopathsClass").getProperty("practiceName").value - Contenu
-
... ... @@ -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' , '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.'}},37 + 'practiceName': {'type': 'text'}, 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,11 +50,9 @@ 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") 53 + #if($property == "pmStreet") ## Difference with added housenumber because of the streetaddress layout. 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 - #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. 55 + #else 58 58 <span class="property-name">$services.localization.render("homeopaths.classproperty.${property}")</span> <span class="property-value">$doc.display($property)</span> 59 59 #end 60 60 </p>