Changes for page Homeopaths

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

From version 8.142
edited by Jip-jan Alunkel
on December 22, 14:56
Change comment: Renamed from xwiki:practices.WebHome
To version 8.149
edited by Jip-jan Alunkel
on January 03, 18:58
Change comment: Renamed from xwiki:practices.WebHome

Summary

Details

Page properties
Content
... ... @@ -10,11 +10,13 @@
10 10  All about homeopaths.
11 11  </p>
12 12  <div id="homeopaths_map"></div>
13 -#set($q = $services.query.xwql("where doc.space like 'homeopaths.%' and doc.name like :usr"))
14 -#set($r = $q.bindValue('usr', $xcontext.getUserReference().getName()).execute())
15 -#set($practice_exists = $r.size() > 0)
16 -#if(!$practice_exists && !$isGuest)
17 -
13 +#if(!$isGuest)
14 + #set($hasPractice = $xwiki.getDocument($xcontext.getUserReference()).getObject('XWiki.XWikiUsers').getProperty('practice').value)
15 + #if($hasPractice)
16 + #set($q = $services.query.xwql("where doc.space like 'homeopaths.%' and doc.name like :usr"))
17 + #set($r = $q.bindValue('usr', $xcontext.getUserReference().getName()).execute())
18 + #set($practiceExists = $r.size() > 0)
19 + #if(!$practiceExists)
18 18  <h2>Add your practice to the map</h2>
19 19  #set($form_start = {
20 20   "id": "homeoworld_form",
... ... @@ -69,7 +69,7 @@
69 69   "id" : "address",
70 70   "type" : "address",
71 71   "required" : "true",
72 - "label" : "Address of your practice",
74 + "label" : "Address",
73 73   "aria-label" : "Input and select the address of your practice",
74 74   "placeholder" : "$services.localization.render('homeopaths.multiword.address.placeholder')",
75 75   "data-error-response-type" : "use_label_definite_1",
... ... @@ -96,6 +96,8 @@
96 96   "use_captcha": "false"
97 97  })
98 98  #createFormEnd($form_end)
101 + #end
102 + #end
99 99  #end
100 100  {{/html}}
101 101  {{/velocity}}