Changes for page Homeopaths
Last modified by Jip-jan Alunkel on March 14, 20:13
From version 8.135
edited by Jip-jan Alunkel
on December 22, 14:33
on December 22, 14:33
Change comment:
Renamed from xwiki:practices.WebHome
To version 8.150
edited by Jip-jan Alunkel
on January 25, 17:47
on January 25, 17:47
Change comment:
Renamed from xwiki:practices.WebHome
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -6,20 +6,30 @@ 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 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 + 9 9 {{html wiki="false" clean="false"}} 10 10 <p> 11 11 All about homeopaths. 12 12 </p> 13 13 <div id="homeopaths_map"></div> 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) 18 -{{/html}} 19 -{{/velocity}} 20 - 21 -{{velocity}} 22 -{{html wiki="false" clean="false"}} 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) 23 23 <h2>Add your practice to the map</h2> 24 24 #set($form_start = { 25 25 "id": "homeoworld_form", ... ... @@ -50,7 +50,6 @@ 50 50 "help-block" : 'This will be used as the title of your practice page. The first character must be a letter.' 51 51 }) 52 52 #createFormElement($practice_name) 53 - 54 54 #set($country = { 55 55 "id" : "country", 56 56 "type" : "text", ... ... @@ -59,6 +59,7 @@ 59 59 "aria-label" : "Choose the country", 60 60 "placeholder" : "$services.localization.render('homeopaths.word.country.placeholder')", 61 61 "data-set-space": "true", 71 + "data-space-xobj-classname": "" 62 62 "data-parent-space": "homeopaths", 63 63 "data-error-response-type" : "use_label_definite_1", 64 64 "data-auto-first-capital" : "true", ... ... @@ -71,12 +71,11 @@ 71 71 "help-block" : 'Input and select the country where your practice resides.' 72 72 }) 73 73 #createFormElement($country) 74 - 75 75 #set($address = { 76 76 "id" : "address", 77 77 "type" : "address", 78 78 "required" : "true", 79 - "label" : "Address of your practice",88 + "label" : "Address", 80 80 "aria-label" : "Input and select the address of your practice", 81 81 "placeholder" : "$services.localization.render('homeopaths.multiword.address.placeholder')", 82 82 "data-error-response-type" : "use_label_definite_1", ... ... @@ -103,4 +103,8 @@ 103 103 "use_captcha": "false" 104 104 }) 105 105 #createFormEnd($form_end) 115 + #end 116 + #end 106 106 #end 118 +{{/html}} 119 +{{/velocity}}