Changes for page Homeopaths

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

From version 8.143
edited by Jip-jan Alunkel
on December 24, 13:33
Change comment: Renamed from xwiki:practices.WebHome
To version 8.159
edited by Jip-jan Alunkel
on January 31, 16:43
Change comment: Renamed from xwiki:practices.WebHome

Summary

Details

Page properties
Content
... ... @@ -5,20 +5,19 @@
5 5  #set($discard = $services.localization.use('document', 'assets.pagemaker.translations'))
6 6  #set($discard = $xwiki.ssx.use('assets.pagemaker.WebHome', {'minify': false}))
7 7  #set($discard = $xwiki.jsx.use('assets.pagemaker.WebHome', {'minify': false}))
8 +
8 8  {{html wiki="false" clean="false"}}
9 9  <p>
10 -All about homeopaths.
11 +All about the page "homeopaths". Where is it for?
11 11  </p>
12 12  <div id="homeopaths_map"></div>
13 13  #if(!$isGuest)
14 -
15 -$xcontext.getUserReference()
16 -
17 - #set($q = $services.query.xwql("where doc.space like 'homeopaths.%' and doc.name like :usr"))
18 - #set($r = $q.bindValue('usr', $xcontext.getUserReference().getName()).execute())
19 - #set($practice_exists = $r.size() > 0)
20 - #if(!$practice_exists)
21 -
15 + #set($hasPractice = $xwiki.getDocument($xcontext.getUserReference()).getObject('XWiki.XWikiUsers').getProperty('practice').value)
16 + #if($hasPractice)
17 + #set($q = $services.query.xwql("where doc.space like 'homeopaths.%' and doc.name like :usr"))
18 + #set($r = $q.bindValue('usr', $xcontext.getUserReference().getName()).execute())
19 + #set($practiceExists = $r.size() > 0)
20 + #if(!$practiceExists)
22 22  <h2>Add your practice to the map</h2>
23 23  #set($form_start = {
24 24   "id": "homeoworld_form",
... ... @@ -57,6 +57,7 @@
57 57   "aria-label" : "Choose the country",
58 58   "placeholder" : "$services.localization.render('homeopaths.word.country.placeholder')",
59 59   "data-set-space": "true",
59 + "data-space-xobj-classname": "homeopaths.Code.homeopathsCountryClass",
60 60   "data-parent-space": "homeopaths",
61 61   "data-error-response-type" : "use_label_definite_1",
62 62   "data-auto-first-capital" : "true",
... ... @@ -73,7 +73,7 @@
73 73   "id" : "address",
74 74   "type" : "address",
75 75   "required" : "true",
76 - "label" : "Address of your practice",
76 + "label" : "Address",
77 77   "aria-label" : "Input and select the address of your practice",
78 78   "placeholder" : "$services.localization.render('homeopaths.multiword.address.placeholder')",
79 79   "data-error-response-type" : "use_label_definite_1",
... ... @@ -100,6 +100,7 @@
100 100   "use_captcha": "false"
101 101  })
102 102  #createFormEnd($form_end)
103 + #end
103 103   #end
104 104  #end
105 105  {{/html}}