Changes for page Homeopaths

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

From version 8.137
edited by Jip-jan Alunkel
on December 22, 14:37
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,23 +4,25 @@
1 -
2 -{{velocity}}
3 -
4 4  {{include reference="assets.pagemaker.macros"/}}
5 5  
3 +{{velocity}}
6 6  #set($discard = $services.localization.use('document', 'homeopaths.Code.translations'))
7 7  #set($discard = $services.localization.use('document', 'assets.pagemaker.translations'))
8 8  #set($discard = $xwiki.ssx.use('assets.pagemaker.WebHome', {'minify': false}))
9 9  #set($discard = $xwiki.jsx.use('assets.pagemaker.WebHome', {'minify': false}))
10 -
11 11  {{html wiki="false" clean="false"}}
12 12  <p>
13 13  All about homeopaths.
14 14  </p>
15 15  <div id="homeopaths_map"></div>
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($practice_exists = $r.size() > 0)
19 -#if($practice_exists != false)
20 -
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
21 21  <h2>Add your practice to the map</h2>
22 22  #set($form_start = {
23 23   "id": "homeoworld_form",
... ... @@ -48,7 +48,6 @@
48 48   "help-block" : 'This will be used as the title of your practice page. The first character must be a letter.'
49 49  })
50 50  #createFormElement($practice_name)
51 -
52 52  #set($country = {
53 53   "id" : "country",
54 54   "type" : "text",
... ... @@ -69,7 +69,6 @@
69 69   "help-block" : 'Input and select the country where your practice resides.'
70 70  })
71 71  #createFormElement($country)
72 -
73 73  #set($address = {
74 74   "id" : "address",
75 75   "type" : "address",
... ... @@ -101,6 +101,7 @@
101 101   "use_captcha": "false"
102 102  })
103 103  #createFormEnd($form_end)
104 + #end
104 104  #end
105 105  {{/html}}
106 106  {{/velocity}}