Changes for page Homeopaths
Modificado por Jip-jan Alunkel em março 14, 20:13
From version 9.1
edited by Jip-jan Alunkel
on fevereiro 10, 17:51
on fevereiro 10, 17:51
Change comment:
Renamed from xwiki:practices.WebHome
To version 10.5
edited by Jip-jan Alunkel
on março 07, 14:18
on março 07, 14:18
Change comment:
Renamed from xwiki:practices.WebHome
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -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", ... ... @@ -86,10 +86,21 @@ 86 86 "data-query-list-editable" : "false", 87 87 "data-create-xobj" : "true", 88 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 }) 91 +#* 92 + "data-xobj-fieldname" : "address", 93 +*# 92 92 #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) 93 93 #set($submit = { 94 94 "id" : "create_practice", 95 95 "button-text" : "Add practice",