General Actions:
Log-in
Register
Home
▼
:
Wiki Index
»
Space:
ContactCode
»
Page:
ContactConfigurationSheet
en
Page Actions:
Export
▼
:
Export as PDF
Export as RTF
Export as HTML
More actions
▼
:
Print preview
View Source
Welcome to bytebang
»
XWiki Space
»
Data types
»
ContactConfiguration Class
»
ContactConfiguration Sheet
Wiki source code of
ContactConfiguration Sheet
Last modified by
Guenther Hutter
on 2016/02/28 16:58
Content
Show line numbers
{{velocity}} $xwiki.ssx.use('ContactCode.ContactConfigurationSheet') #set($obj = $doc.getObject("ContactCode.ContactConfigurationClass")) #set($contact_companyName = "$!obj.companyName") #set($contact_presentation = "$!obj.getProperty('presentation').value") #set($contact_recipient = "$!obj.getProperty('recipient').value") #set($contact_adresse = "$!obj.getProperty('adresse').value") #set($contact_pc = "$!obj.getProperty('pc').value") #set($contact_city = "$!obj.getProperty('city').value") #set($contact_phone = "$!obj.getProperty('phone').value") #set($contact_DUB = "$!obj.getProperty('displayUpdateButton').value") #set($contact_DP = "$!obj.getProperty('displayPresentation').value") #set($contact_DA = "$!obj.getProperty('displayAdresse').value") #set($contact_DF = "$!obj.getProperty('displayForm').value") #if($context.action=="inline" || $context.action=="edit") (% class="contactEditText" %)((( #set($class = $doc.getObject('ContactCode.ContactConfigurationClass').xWikiClass) #foreach($prop in $class.properties) ; $prop.prettyName : $doc.display($prop.getName()) #end ))) #else {{html wiki="true" clean="false"}} (% class="contactVeiwMode" %)((( #if($contact_DUB == 1) #if($hasAdmin) (% class="contactSubMenu" %)((( [[$msg.get("xwiki.contac.updatepresentationtext")>>path:$doc.getURL('inline')]] ))) (% style='clear:both' %)((())) #end #end ## Display the presentation text #if($contact_DP == 1) (% class="contactVeiwText" %)((( #set($result = $contact_presentation) $doc.getRenderedContent($result, $doc.syntax.toIdString()) ))) #end ## Display the address and the map #if($contact_DA == 1) ==$msg.get('xwiki.contac.generalinformation')== (% class="contactViewLocation" %)((( {{include document='ContactCode.AdressDisplayer'/}} ))) #end ## Display the contact form #if($contact_DF == 1) (% class="contactVeiwForm" %)((( == $msg.get('xwiki.contac.senmessage') == {{include document='ContactCode.ContactForm'/}} ))) #end ))) {{html}} #end {{/velocity}}