Changes for page Homeopaths
Last modified by Jip-jan Alunkel on March 14, 20:13
From version 8.133
edited by Jip-jan Alunkel
on December 22, 14:28
on December 22, 14:28
Change comment:
Renamed from xwiki:practices.WebHome
To version 8.151
edited by Jip-jan Alunkel
on January 25, 17:49
on January 25, 17:49
Change comment:
Renamed from xwiki:practices.WebHome
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,26 +16,35 @@ 1 -{{velocity}} 2 -#set($discard = $services.localization.use('document', 'homeopaths.Code.translations')) 3 - 4 -{{html wiki="false" clean="false"}} 5 -<p> 6 -All about homeopaths. 7 -</p> 8 -<div id="homeopaths_map"></div> 9 -#set($q = $services.query.xwql("where doc.space like 'homeopaths.%' and doc.name like :usr")) 10 -#set($r = $q.bindValue('usr', $xcontext.getUserReference().getName()).execute()) 11 -#set($practice_exists = $r.size() > 0) 12 -#if($practice_exists != false) 13 -{{/html}} 14 -{{/velocity}} 15 - 16 16 {{include reference="assets.pagemaker.macros"/}} 17 17 18 18 {{velocity}} 4 +#set($discard = $services.localization.use('document', 'homeopaths.Code.translations')) 19 19 #set($discard = $services.localization.use('document', 'assets.pagemaker.translations')) 20 20 #set($discard = $xwiki.ssx.use('assets.pagemaker.WebHome', {'minify': false})) 21 21 #set($discard = $xwiki.jsx.use('assets.pagemaker.WebHome', {'minify': false})) 22 22 9 +#set($bladibla = "blbballbla.blbadafblabas//self") 10 +#set($index = $bladibla.indexOf("//self")) 11 +#if($index == -1) 12 + not self 13 + #set($value = $bladibla) 14 +#else 15 + self 16 + #set($value = $bladibla.substring(0, $index)) 17 +#end 18 + 19 +$value 20 + 23 23 {{html wiki="false" clean="false"}} 22 +<p> 23 +All about homeopaths. 24 +</p> 25 +<div id="homeopaths_map"></div> 26 +#if(!$isGuest) 27 + #set($hasPractice = $xwiki.getDocument($xcontext.getUserReference()).getObject('XWiki.XWikiUsers').getProperty('practice').value) 28 + #if($hasPractice) 29 + #set($q = $services.query.xwql("where doc.space like 'homeopaths.%' and doc.name like :usr")) 30 + #set($r = $q.bindValue('usr', $xcontext.getUserReference().getName()).execute()) 31 + #set($practiceExists = $r.size() > 0) 32 + #if(!$practiceExists) 24 24 <h2>Add your practice to the map</h2> 25 25 #set($form_start = { 26 26 "id": "homeoworld_form", ... ... @@ -51,7 +51,6 @@ 51 51 "help-block" : 'This will be used as the title of your practice page. The first character must be a letter.' 52 52 }) 53 53 #createFormElement($practice_name) 54 - 55 55 #set($country = { 56 56 "id" : "country", 57 57 "type" : "text", ... ... @@ -60,6 +60,7 @@ 60 60 "aria-label" : "Choose the country", 61 61 "placeholder" : "$services.localization.render('homeopaths.word.country.placeholder')", 62 62 "data-set-space": "true", 71 + "data-space-xobj-classname": "", 63 63 "data-parent-space": "homeopaths", 64 64 "data-error-response-type" : "use_label_definite_1", 65 65 "data-auto-first-capital" : "true", ... ... @@ -72,12 +72,11 @@ 72 72 "help-block" : 'Input and select the country where your practice resides.' 73 73 }) 74 74 #createFormElement($country) 75 - 76 76 #set($address = { 77 77 "id" : "address", 78 78 "type" : "address", 79 79 "required" : "true", 80 - "label" : "Address of your practice",88 + "label" : "Address", 81 81 "aria-label" : "Input and select the address of your practice", 82 82 "placeholder" : "$services.localization.render('homeopaths.multiword.address.placeholder')", 83 83 "data-error-response-type" : "use_label_definite_1", ... ... @@ -104,4 +104,8 @@ 104 104 "use_captcha": "false" 105 105 }) 106 106 #createFormEnd($form_end) 115 + #end 116 + #end 107 107 #end 118 +{{/html}} 119 +{{/velocity}}