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
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
... ... @@ -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",
... ... @@ -82,12 +82,18 @@
82 82   "data-query-list-header" : "$services.localization.render('pagemaker.line.suggest_select_list')",
83 83   "data-query-list-contents" : "value/key",
84 84   "data-query-list-editable" : "false",
85 - "data-create-xobj" : "true",
86 - "data-xobj-classname" : "homeopaths.Code.homeopathsClass",
87 - "data-xobj-fieldname" : "address",
88 88   "help-block" : 'Input street and number, then select the address of your practice.'
89 89  })
90 90  #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)
91 91  #set($submit = {
92 92   "id" : "create_practice",
93 93   "button-text" : "Add practice",