Changes for page Homeopaths

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

From version 8.133
edited by Jip-jan Alunkel
on December 22, 14:28
Change comment: Renamed from xwiki:practices.WebHome
To version 8.146
edited by Jip-jan Alunkel
on December 24, 13:44
Change comment: Renamed from xwiki:practices.WebHome

Summary

Details

Page properties
Content
... ... @@ -1,26 +16,25 @@
1 -{{velocity}}
2 -#set($discard = $services.localization.use('document', 'homeopaths.Code.translations'))
3 -
4 -{{html wiki="false" clean="false"}}
5 -<p>
6 -All about homeopaths.
7 -</p>
8 -<div id="homeopaths_map"></div>
9 -#set($q = $services.query.xwql("where doc.space like 'homeopaths.%' and doc.name like :usr"))
10 -#set($r = $q.bindValue('usr', $xcontext.getUserReference().getName()).execute())
11 -#set($practice_exists = $r.size() > 0)
12 -#if($practice_exists != false)
13 -{{/html}}
14 -{{/velocity}}
15 -
16 16  {{include reference="assets.pagemaker.macros"/}}
17 17  
18 18  {{velocity}}
4 +#set($discard = $services.localization.use('document', 'homeopaths.Code.translations'))
19 19  #set($discard = $services.localization.use('document', 'assets.pagemaker.translations'))
20 20  #set($discard = $xwiki.ssx.use('assets.pagemaker.WebHome', {'minify': false}))
21 21  #set($discard = $xwiki.jsx.use('assets.pagemaker.WebHome', {'minify': false}))
22 -
23 23  {{html wiki="false" clean="false"}}
9 +<p>
10 +All about homeopaths.
11 +</p>
12 +<div id="homeopaths_map"></div>
13 +#if(!$isGuest)
14 +geen gast
15 + #set($hasPractice = $xwiki.getDocument($xcontext.getUserReference()).getObject('XWiki.XWikiUsers').getProperty('practice').value)
16 + #if($hasPractice)
17 +heeft praktijk
18 + #set($q = $services.query.xwql("where doc.space like 'homeopaths.%' and doc.name like :usr"))
19 + #set($r = $q.bindValue('usr', $xcontext.getUserReference().getName()).execute())
20 + #set($practiceExists = $r.size() > 0)
21 + #if(!$practiceExists)
22 +praktijk pagina op homeoworld.org bestaat nog niet
24 24  <h2>Add your practice to the map</h2>
25 25  #set($form_start = {
26 26   "id": "homeoworld_form",
... ... @@ -51,7 +51,6 @@
51 51   "help-block" : 'This will be used as the title of your practice page. The first character must be a letter.'
52 52  })
53 53  #createFormElement($practice_name)
54 -
55 55  #set($country = {
56 56   "id" : "country",
57 57   "type" : "text",
... ... @@ -72,7 +72,6 @@
72 72   "help-block" : 'Input and select the country where your practice resides.'
73 73  })
74 74  #createFormElement($country)
75 -
76 76  #set($address = {
77 77   "id" : "address",
78 78   "type" : "address",
... ... @@ -104,4 +104,7 @@
104 104   "use_captcha": "false"
105 105  })
106 106  #createFormEnd($form_end)
104 + #end
107 107  #end
106 +{{/html}}
107 +{{/velocity}}