Changes for page Homeopaths

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

From version 10.5
edited by Jip-jan Alunkel
on March 07, 14:18
Change comment: Renamed from xwiki:practices.WebHome
To version 8.156
edited by Jip-jan Alunkel
on January 25, 17:53
Change comment: Renamed from xwiki:practices.WebHome

Summary

Details

Page properties
Content
... ... @@ -6,9 +6,21 @@
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.blbadafblabla//self")
10 +#set($index = $bladibla.indexOf("//self"))
11 +#if($index > -1)
12 + self
13 + #set($value = $bladibla.substring(0, $index))
14 +#else
15 + not self
16 + #set($value = $bladibla)
17 +#end
18 +
19 +$value
20 +
9 9  {{html wiki="false" clean="false"}}
10 10  <p>
11 -All about the page "homeopaths". Where is it for?
23 +All about homeopaths.
12 12  </p>
13 13  <div id="homeopaths_map"></div>
14 14  #if(!$isGuest)
... ... @@ -18,7 +18,7 @@
18 18   #set($r = $q.bindValue('usr', $xcontext.getUserReference().getName()).execute())
19 19   #set($practiceExists = $r.size() > 0)
20 20   #if(!$practiceExists)
21 -<h2 id="add_practice">Add your practice to the map</h2>
33 +<h2>Add your practice to the map</h2>
22 22  #set($form_start = {
23 23   "id": "homeoworld_form",
24 24   "product": "practice",
... ... @@ -56,7 +56,7 @@
56 56   "aria-label" : "Choose the country",
57 57   "placeholder" : "$services.localization.render('homeopaths.word.country.placeholder')",
58 58   "data-set-space": "true",
59 - "data-space-xobj-classname": "homeopaths.Code.homeopathsCountryClass",
71 + "data-space-xobj-classname": "",
60 60   "data-parent-space": "homeopaths",
61 61   "data-error-response-type" : "use_label_definite_1",
62 62   "data-auto-first-capital" : "true",
... ... @@ -86,21 +86,10 @@
86 86   "data-query-list-editable" : "false",
87 87   "data-create-xobj" : "true",
88 88   "data-xobj-classname" : "homeopaths.Code.homeopathsClass",
101 + "data-xobj-fieldname" : "address",
89 89   "help-block" : 'Input street and number, then select the address of your practice.'
90 90  })
91 -#*
92 - "data-xobj-fieldname" : "address",
93 -*#
94 94  #createFormElement($address)
95 -#set($friend = {
96 - "id" : "friend",
97 - "type" : "hidden",
98 - "value": "$context.getUser()",
99 - "data-create-xobj" : "true",
100 - "data-xobj-classname" : "homeopaths.Code.homeopathsClass",
101 - "data-xobj-fieldname" : "doc_owner"
102 -})
103 -#createFormElement($friend)
104 104  #set($submit = {
105 105   "id" : "create_practice",
106 106   "button-text" : "Add practice",