Changes for page Homeopaths

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

From version 8.132
edited by Jip-jan Alunkel
on December 22, 14:27
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
... ... @@ -2,7 +2,9 @@
2 2  
3 3  {{velocity}}
4 4  #set($discard = $services.localization.use('document', 'homeopaths.Code.translations'))
5 -
5 +#set($discard = $services.localization.use('document', 'assets.pagemaker.translations'))
6 +#set($discard = $xwiki.ssx.use('assets.pagemaker.WebHome', {'minify': false}))
7 +#set($discard = $xwiki.jsx.use('assets.pagemaker.WebHome', {'minify': false}))
6 6  {{html wiki="false" clean="false"}}
7 7  <p>
8 8  All about homeopaths.
... ... @@ -11,18 +11,8 @@
11 11  #set($q = $services.query.xwql("where doc.space like 'homeopaths.%' and doc.name like :usr"))
12 12  #set($r = $q.bindValue('usr', $xcontext.getUserReference().getName()).execute())
13 13  #set($practice_exists = $r.size() > 0)
14 -#if($practice_exists != false)
15 -{{/html}}
16 -{{/velocity}}
16 +#if(!$practice_exists && !$isGuest)
17 17  
18 -{{include reference="assets.pagemaker.macros"/}}
19 -
20 -{{velocity}}
21 -#set($discard = $services.localization.use('document', 'assets.pagemaker.translations'))
22 -#set($discard = $xwiki.ssx.use('assets.pagemaker.WebHome', {'minify': false}))
23 -#set($discard = $xwiki.jsx.use('assets.pagemaker.WebHome', {'minify': false}))
24 -
25 -{{html wiki="false" clean="false"}}
26 26  <h2>Add your practice to the map</h2>
27 27  #set($form_start = {
28 28   "id": "homeoworld_form",
... ... @@ -53,7 +53,6 @@
53 53   "help-block" : 'This will be used as the title of your practice page. The first character must be a letter.'
54 54  })
55 55  #createFormElement($practice_name)
56 -
57 57  #set($country = {
58 58   "id" : "country",
59 59   "type" : "text",
... ... @@ -74,7 +74,6 @@
74 74   "help-block" : 'Input and select the country where your practice resides.'
75 75  })
76 76  #createFormElement($country)
77 -
78 78  #set($address = {
79 79   "id" : "address",
80 80   "type" : "address",
... ... @@ -107,3 +107,5 @@
107 107  })
108 108  #createFormEnd($form_end)
109 109  #end
100 +{{/html}}
101 +{{/velocity}}