Changes for page Homeopaths

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

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

Summary

Details

Page properties
Content
... ... @@ -5,21 +5,21 @@
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 10  All about homeopaths.
11 11  </p>
12 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
14 +#set($q = $services.query.xwql("where doc.space like 'homeopaths.%' and doc.name like :usr"))
15 +#set($r = $q.bindValue('usr', $xcontext.getUserReference().getName()).execute())
16 +#set($practice_exists = $r.size() > 0)
17 +#if($practice_exists != false)
18 +{{/html}}
19 +{{/velocity}}
20 +
21 +{{velocity}}
22 +{{html wiki="false" clean="false"}}
23 23  <h2>Add your practice to the map</h2>
24 24  #set($form_start = {
25 25   "id": "homeoworld_form",
... ... @@ -50,6 +50,7 @@
50 50   "help-block" : 'This will be used as the title of your practice page. The first character must be a letter.'
51 51  })
52 52  #createFormElement($practice_name)
53 +
53 53  #set($country = {
54 54   "id" : "country",
55 55   "type" : "text",
... ... @@ -70,6 +70,7 @@
70 70   "help-block" : 'Input and select the country where your practice resides.'
71 71  })
72 72  #createFormElement($country)
74 +
73 73  #set($address = {
74 74   "id" : "address",
75 75   "type" : "address",
... ... @@ -101,8 +101,4 @@
101 101   "use_captcha": "false"
102 102  })
103 103  #createFormEnd($form_end)
104 - #end
105 - #end
106 106  #end
107 -{{/html}}
108 -{{/velocity}}