Changes for page Homeopaths

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

From version 8.150
edited by Jip-jan Alunkel
on January 25, 17:47
Change comment: Renamed from xwiki:practices.WebHome
To version 8.138
edited by Jip-jan Alunkel
on December 22, 14:53
Change comment: Renamed from xwiki:practices.WebHome

Summary

Details

Page properties
Content
... ... @@ -6,30 +6,16 @@
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  
9 -#set($bladibla = "blbballbla.blbadafblabas//self")
10 -#set($index = $bladibla.indexOf("//self"))
11 -#if($index == -1)
12 - not self
13 - #set($value = $bladibla)
14 -#else
15 - self
16 - #set($value = $bladibla.substring(0, $index))
17 -#end
18 -
19 -$value
20 -
21 21  {{html wiki="false" clean="false"}}
22 22  <p>
23 23  All about homeopaths.
24 24  </p>
25 25  <div id="homeopaths_map"></div>
26 -#if(!$isGuest)
27 - #set($hasPractice = $xwiki.getDocument($xcontext.getUserReference()).getObject('XWiki.XWikiUsers').getProperty('practice').value)
28 - #if($hasPractice)
29 - #set($q = $services.query.xwql("where doc.space like 'homeopaths.%' and doc.name like :usr"))
30 - #set($r = $q.bindValue('usr', $xcontext.getUserReference().getName()).execute())
31 - #set($practiceExists = $r.size() > 0)
32 - #if(!$practiceExists)
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 +
33 33  <h2>Add your practice to the map</h2>
34 34  #set($form_start = {
35 35   "id": "homeoworld_form",
... ... @@ -60,6 +60,7 @@
60 60   "help-block" : 'This will be used as the title of your practice page. The first character must be a letter.'
61 61  })
62 62  #createFormElement($practice_name)
49 +
63 63  #set($country = {
64 64   "id" : "country",
65 65   "type" : "text",
... ... @@ -68,7 +68,6 @@
68 68   "aria-label" : "Choose the country",
69 69   "placeholder" : "$services.localization.render('homeopaths.word.country.placeholder')",
70 70   "data-set-space": "true",
71 - "data-space-xobj-classname": ""
72 72   "data-parent-space": "homeopaths",
73 73   "data-error-response-type" : "use_label_definite_1",
74 74   "data-auto-first-capital" : "true",
... ... @@ -81,11 +81,12 @@
81 81   "help-block" : 'Input and select the country where your practice resides.'
82 82  })
83 83  #createFormElement($country)
70 +
84 84  #set($address = {
85 85   "id" : "address",
86 86   "type" : "address",
87 87   "required" : "true",
88 - "label" : "Address",
75 + "label" : "Address of your practice",
89 89   "aria-label" : "Input and select the address of your practice",
90 90   "placeholder" : "$services.localization.render('homeopaths.multiword.address.placeholder')",
91 91   "data-error-response-type" : "use_label_definite_1",
... ... @@ -112,8 +112,6 @@
112 112   "use_captcha": "false"
113 113  })
114 114  #createFormEnd($form_end)
115 - #end
116 - #end
117 117  #end
118 118  {{/html}}
119 119  {{/velocity}}