Changes for page Homeopaths

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

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

Summary

Details

Page properties
Content
... ... @@ -5,7 +5,6 @@
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 -
9 9  {{html wiki="false" clean="false"}}
10 10  <p>
11 11  All about homeopaths.
... ... @@ -14,12 +14,8 @@
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 16  #set($practice_exists = $r.size() > 0)
17 -#if($practice_exists != false)
18 -{{/html}}
19 -{{/velocity}}
16 +#if(!$practice_exists && !$isGuest)
20 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,7 +50,6 @@
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 -
54 54  #set($country = {
55 55   "id" : "country",
56 56   "type" : "text",
... ... @@ -71,7 +71,6 @@
71 71   "help-block" : 'Input and select the country where your practice resides.'
72 72  })
73 73  #createFormElement($country)
74 -
75 75  #set($address = {
76 76   "id" : "address",
77 77   "type" : "address",
... ... @@ -104,3 +104,5 @@
104 104  })
105 105  #createFormEnd($form_end)
106 106  #end
100 +{{/html}}
101 +{{/velocity}}