Changes for page Homeopaths
Last modified by Jip-jan Alunkel on March 14, 20:13
From version 8.149
edited by Jip-jan Alunkel
on January 03, 18:58
on January 03, 18:58
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
-
... ... @@ -5,9 +5,10 @@ 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 + 8 8 {{html wiki="false" clean="false"}} 9 9 <p> 10 -All about homeopaths. 11 +All about the page "homeopaths". Where is it for? 11 11 </p> 12 12 <div id="homeopaths_map"></div> 13 13 #if(!$isGuest) ... ... @@ -17,7 +17,7 @@ 17 17 #set($r = $q.bindValue('usr', $xcontext.getUserReference().getName()).execute()) 18 18 #set($practiceExists = $r.size() > 0) 19 19 #if(!$practiceExists) 20 -<h2>Add your practice to the map</h2> 21 +<h2 id="add_practice">Add your practice to the map</h2> 21 21 #set($form_start = { 22 22 "id": "homeoworld_form", 23 23 "product": "practice", ... ... @@ -55,6 +55,7 @@ 55 55 "aria-label" : "Choose the country", 56 56 "placeholder" : "$services.localization.render('homeopaths.word.country.placeholder')", 57 57 "data-set-space": "true", 59 + "data-space-xobj-classname": "homeopaths.Code.homeopathsCountryClass", 58 58 "data-parent-space": "homeopaths", 59 59 "data-error-response-type" : "use_label_definite_1", 60 60 "data-auto-first-capital" : "true", ... ... @@ -88,6 +88,15 @@ 88 88 "help-block" : 'Input street and number, then select the address of your practice.' 89 89 }) 90 90 #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) 91 91 #set($submit = { 92 92 "id" : "create_practice", 93 93 "button-text" : "Add practice",