Changes for page Homeopaths
Last modified by Jip-jan Alunkel on March 14, 20:13
From version 8.152
edited by Jip-jan Alunkel
on January 25, 17:49
on January 25, 17:49
Change comment:
Renamed from xwiki:practices.WebHome
To version 10.3
edited by Jip-jan Alunkel
on March 06, 22:49
on March 06, 22:49
Change comment:
Renamed from xwiki:practices.WebHome
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -6,21 +6,9 @@ 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//sel") 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 -All about homeopaths. 11 +All about the page "homeopaths". Where is it for? 24 24 </p> 25 25 <div id="homeopaths_map"></div> 26 26 #if(!$isGuest) ... ... @@ -30,7 +30,7 @@ 30 30 #set($r = $q.bindValue('usr', $xcontext.getUserReference().getName()).execute()) 31 31 #set($practiceExists = $r.size() > 0) 32 32 #if(!$practiceExists) 33 -<h2>Add your practice to the map</h2> 21 +<h2 id="add_practice">Add your practice to the map</h2> 34 34 #set($form_start = { 35 35 "id": "homeoworld_form", 36 36 "product": "practice", ... ... @@ -68,7 +68,7 @@ 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": "", 59 + "data-space-xobj-classname": "homeopaths.Code.homeopathsCountryClass", 72 72 "data-parent-space": "homeopaths", 73 73 "data-error-response-type" : "use_label_definite_1", 74 74 "data-auto-first-capital" : "true", ... ... @@ -102,6 +102,15 @@ 102 102 "help-block" : 'Input street and number, then select the address of your practice.' 103 103 }) 104 104 #createFormElement($address) 93 +#set($friend = { 94 + "id" : "friend", 95 + "type" : "hidden", 96 + "value": "$context.getUser()", 97 + "data-create-xobj" : "true", 98 + "data-xobj-classname" : "homeopaths.Code.homeopathsClass", 99 + "data-xobj-fieldname" : "doc_owner" 100 +}) 101 +#createFormElement($friend) 105 105 #set($submit = { 106 106 "id" : "create_practice", 107 107 "button-text" : "Add practice",