Changes for page Homeopaths

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

From version 8.88
edited by Jip-jan Alunkel
on December 08, 16:45
Change comment: Renamed from xwiki:practices.WebHome
To version 8.101
edited by Jip-jan Alunkel
on December 08, 19:07
Change comment: Renamed from xwiki:practices.WebHome

Summary

Details

Page properties
Content
... ... @@ -9,6 +9,7 @@
9 9  {{html wiki="false" clean="false"}}
10 10  <p>
11 11  All about homeopaths.
12 +$xcontext.user.name
12 12  </p>
13 13  <div id="homeopaths_map"></div>
14 14  
... ... @@ -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.'
63 + "help-block" : 'Input and select the country where your practice resides.'
63 63  })
64 64  #createFormElement($country)
65 65  
... ... @@ -80,6 +80,7 @@
80 80   "data-auto-first-capital" : "true",
81 81   "data-query-type" : "address",
82 82   "data-query-reference" : "",
84 + "data-page-name": "$xcontext.user",
83 83   "data-query-list-type" : "suggest-select",
84 84   "data-query-list-header" : "$services.localization.render('pagemaker.line.suggest_select_list')",
85 85   "data-query-list-contents" : "value/key",
... ... @@ -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.'
92 + "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 +}