Changes for page Homeopaths

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

From version 8.136
edited by Jip-jan Alunkel
on December 22, 14:36
Change comment: Renamed from xwiki:practices.WebHome
To version 8.131
edited by Jip-jan Alunkel
on December 09, 20:23
Change comment: Renamed from xwiki:practices.WebHome

Summary

Details

Page properties
Content
... ... @@ -9,13 +9,19 @@
9 9  {{html wiki="false" clean="false"}}
10 10  <p>
11 11  All about homeopaths.
12 -</p>
13 -<div id="homeopaths_map"></div>
12 +
14 14  #set($q = $services.query.xwql("where doc.space like 'homeopaths.%' and doc.name like :usr"))
15 15  #set($r = $q.bindValue('usr', $xcontext.getUserReference().getName()).execute())
16 -#set($practice_exists = $r.size() > 0)
17 -#if($practice_exists != false)
18 18  
16 +#if($r.size() > 0)
17 +Practice page exists.
18 +#else
19 +No practice page.
20 +#end
21 +</p>
22 +<div id="homeopaths_map"></div>
23 +
24 +
19 19  <h2>Add your practice to the map</h2>
20 20  #set($form_start = {
21 21   "id": "homeoworld_form",
... ... @@ -68,6 +68,12 @@
68 68  })
69 69  #createFormElement($country)
70 70  
77 +#*
78 + "data-create-xobj" : "true",
79 + "data-xobj-classname" : "homeopaths.Code.homeopathsClass",
80 + "data-xobj-fieldname" : "country",
81 +*#
82 +
71 71  #set($address = {
72 72   "id" : "address",
73 73   "type" : "address",
... ... @@ -99,6 +99,4 @@
99 99   "use_captcha": "false"
100 100  })
101 101  #createFormEnd($form_end)
102 -#end
103 -{{/html}}
104 -{{/velocity}}
114 +