Changes for page Homeopaths

Last modified by Jip-jan Alunkel on March 14, 20:13

From version 8.87
edited by Jip-jan Alunkel
on December 08, 16:45
Change comment: Renamed from xwiki:practices.WebHome
To version 8.98
edited by Jip-jan Alunkel
on December 08, 18:39
Change comment: Renamed from xwiki:practices.WebHome

Summary

Details

Page properties
Content
... ... @@ -59,7 +59,7 @@
59 59   "data-query-list-header" : "$services.localization.render('pagemaker.line.suggest_select_list')",
60 60   "data-query-list-contents" : "key",
61 61   "data-query-list-editable" : "false",
62 - "help-block" : 'Type and select the country where your practice resides.'
62 + "help-block" : 'Input and select the country where your practice resides.'
63 63  })
64 64  #createFormElement($country)
65 65  
... ... @@ -87,7 +87,7 @@
87 87   "data-create-xobj" : "true",
88 88   "data-xobj-classname" : "homeopaths.Code.homeopathsClass",
89 89   "data-xobj-fieldname" : "address",
90 - "help-block" : 'Input and select the address of your practice.'
90 + "help-block" : 'Input street and number, then select the address of your practice.'
91 91  })
92 92  #createFormElement($address)
93 93  #set($submit = {
XWiki.JavaScriptExtension[0]
Code
... ... @@ -21,7 +21,7 @@
21 21   #end
22 22   #set($address = "${address}${address_item.trim()}${linebreak}")
23 23   #end
24 - #set($info = "<h4>${stringtool.capitalize($result_doc.documentReference.getName())}</h4><address>${address}</address>")
24 + #set($info = "<h4><a href='$xwiki.getURL($result_doc.documentReference)'>${stringtool.capitalize($result_doc.documentReference.getName())}</a></h4><address>${address}</address>")
25 25   #set($discard = $map.put($info, $result_obj.getProperty("latlong").value))
26 26   #end
27 27   #if($objecttool.allNull($map))
XWiki.StyleSheetExtension[0]
Code
... ... @@ -4,6 +4,9 @@
4 4   height: 400px;
5 5   margin: 0 2rem;
6 6  }
7 +#homeopaths_map .leaflet-popup {
8 + min-width: 26rem;
9 +}
7 7  #homeopaths_map .leaflet-popup-content {
8 8   margin: 0;
9 9   line-height: unset;
... ... @@ -14,6 +14,9 @@
14 14   margin-top: 2rem;
15 15  }
16 16  .leaflet-popup-content address {
17 - font-size: inherit;
18 - margin: 0 2rem 1.5rem 0;
20 + font-size: 1.2rem;
21 + margin: 0 2rem 1.5rem 2rem;
19 19  }
23 +body.preference-underlining-only-inline-links #homeopaths_map a {
24 + text-decoration: none;
25 +}