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 8.140
edited by Jip-jan Alunkel
on December 22, 14:55
on December 22, 14:55
Change comment:
Renamed from xwiki:practices.WebHome
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -5,18 +5,17 @@ 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 10 All about homeopaths. 11 11 </p> 12 12 <div id="homeopaths_map"></div> 13 -#if(!$isGuest) 14 - #set($hasPractice = $xwiki.getDocument($xcontext.getUserReference()).getObject('XWiki.XWikiUsers').getProperty('practice').value) 15 - #if($hasPractice) 16 - #set($q = $services.query.xwql("where doc.space like 'homeopaths.%' and doc.name like :usr")) 17 - #set($r = $q.bindValue('usr', $xcontext.getUserReference().getName()).execute()) 18 - #set($practiceExists = $r.size() > 0) 19 - #if(!$practiceExists) 14 +#set($q = $services.query.xwql("where doc.space like 'homeopaths.%' and doc.name like :usr")) 15 +#set($r = $q.bindValue('usr', $xcontext.getUserReference().getName()).execute()) 16 +#set($practice_exists = $r.size() > 0) 17 +#if($practice_exists != false && !$isGuest) 18 + 20 20 <h2>Add your practice to the map</h2> 21 21 #set($form_start = { 22 22 "id": "homeoworld_form", ... ... @@ -47,6 +47,7 @@ 47 47 "help-block" : 'This will be used as the title of your practice page. The first character must be a letter.' 48 48 }) 49 49 #createFormElement($practice_name) 49 + 50 50 #set($country = { 51 51 "id" : "country", 52 52 "type" : "text", ... ... @@ -67,11 +67,12 @@ 67 67 "help-block" : 'Input and select the country where your practice resides.' 68 68 }) 69 69 #createFormElement($country) 70 + 70 70 #set($address = { 71 71 "id" : "address", 72 72 "type" : "address", 73 73 "required" : "true", 74 - "label" : "Address", 75 + "label" : "Address of your practice", 75 75 "aria-label" : "Input and select the address of your practice", 76 76 "placeholder" : "$services.localization.render('homeopaths.multiword.address.placeholder')", 77 77 "data-error-response-type" : "use_label_definite_1", ... ... @@ -98,8 +98,6 @@ 98 98 "use_captcha": "false" 99 99 }) 100 100 #createFormEnd($form_end) 101 - #end 102 - #end 103 103 #end 104 104 {{/html}} 105 105 {{/velocity}}