Changes for page Homeopaths

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

From version 8.157
edited by Jip-jan Alunkel
on January 25, 18:15
Change comment: Renamed from xwiki:practices.WebHome
To version 10.4
edited by Jip-jan Alunkel
on March 07, 14:03
Change comment: Renamed from xwiki:practices.WebHome

Summary

Details

Page properties
Content
... ... @@ -8,7 +8,7 @@
8 8  
9 9  {{html wiki="false" clean="false"}}
10 10  <p>
11 -All about homeopaths.
11 +All about the page "homeopaths". Where is it for?
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>Add your practice to the map</h2>
21 +<h2 id="add_practice">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": "",
59 + "data-space-xobj-classname": "homeopaths.Code.homeopathsCountryClass",
60 60   "data-parent-space": "homeopaths",
61 61   "data-error-response-type" : "use_label_definite_1",
62 62   "data-auto-first-capital" : "true",
... ... @@ -84,12 +84,18 @@
84 84   "data-query-list-header" : "$services.localization.render('pagemaker.line.suggest_select_list')",
85 85   "data-query-list-contents" : "value/key",
86 86   "data-query-list-editable" : "false",
87 - "data-create-xobj" : "true",
88 - "data-xobj-classname" : "homeopaths.Code.homeopathsClass",
89 - "data-xobj-fieldname" : "address",
90 90   "help-block" : 'Input street and number, then select the address of your practice.'
91 91  })
92 92  #createFormElement($address)
90 +#set($friend = {
91 + "id" : "friend",
92 + "type" : "hidden",
93 + "value": "$context.getUser()",
94 + "data-create-xobj" : "true",
95 + "data-xobj-classname" : "homeopaths.Code.homeopathsClass",
96 + "data-xobj-fieldname" : "doc_owner"
97 +})
98 +#createFormElement($friend)
93 93  #set($submit = {
94 94   "id" : "create_practice",
95 95   "button-text" : "Add practice",