Version 13.164 by Alex Cotiugă on 2026/05/02 09:09

Hide last authors
Alex Cotiugă 13.108 1 {{velocity wiki="false"}}
2 #if ($xcontext.action == 'get')
3 #set ($message = '')
Alex Cotiugă 13.157 4 #set ($now = $datetool.get('yyyyMMddHHmm'))
Alex Cotiugă 13.156 5 #set ($random = $mathtool.random(100000, 999999))
Alex Cotiugă 13.158 6 #set ($uniqueName = "ContactRequest-${now}-${random}")
Alex Cotiugă 13.159 7 #set ($contactRequestDoc = $xwiki.getDocument('ContactRequests.' + $uniqueName))
8 #set ($contactRequestObj = $contactRequestDoc.getObject('Agnease.Code.ContactForm.ContactFormClass', true))
Alex Cotiugă 13.108 9 #set ($statusCode = 200)
Alex Cotiugă 13.161 10 #set ($message = "$contactRequestObj")
Alex Cotiugă 13.150 11
12 #foreach ($parameterName in $request.parameterNames)
Alex Cotiugă 13.162 13 #set ($discard = $contactRequestObj.set($parameterName.split('_0_')[1], $request.get($parameterName)))
Alex Cotiugă 13.150 14 #set ($message = "$message $parameterName")
15 #end
Alex Cotiugă 13.108 16
Alex Cotiugă 13.150 17 ##set ($statusCode = 400)
18 ##set ($message = 'error')
Alex Cotiugă 13.108 19
20 #set ($discard = $response.setStatus($statusCode))
Alex Cotiugă 13.151 21 #jsonResponse({'message': $message})
Alex Cotiugă 13.108 22 #end
23 {{/velocity}}
24
Alex Cotiugă 2.6 25 {{velocity}}
Alex Cotiugă 13.3 26 #set ($discard = $xwiki.ssx.use('contact.WebHome'))
Alex Cotiugă 4.6 27 #set ($xobject = $doc.getObject('Agnease.Code.ContactForm.ContactFormClass'))
Alex Cotiugă 4.2 28 #set ($xclass = $xobject.xWikiClass)
Alex Cotiugă 4.10 29 #set ($editing = true)
Alex Cotiugă 13.32 30 = Tell Us More About Your Project =
Alex Cotiugă 13.45 31 You do not need to have a full specification. A short description is enough to start the conversation.
Alex Cotiugă 13.91 32 {{html clean="false"}}
Alex Cotiugă 12.16 33 <div class="row">
34 <div class="xform col-xs-7">
Alex Cotiugă 13.41 35 <form id="contactForm">
Alex Cotiugă 12.13 36 <dl>
Alex Cotiugă 13.14 37 #foreach ($property in $xclass.properties)
Alex Cotiugă 13.47 38 #if ($property.name == 'hosting')
Alex Cotiugă 13.49 39 <hr>
Alex Cotiugă 13.57 40 <h3>Optional project details</h3>
Alex Cotiugă 13.56 41 <p>These details help us understand the scope and suggest practical next steps.</p>
Alex Cotiugă 13.47 42 #end
Alex Cotiugă 13.14 43 <dt #if (!$editing && $hasEdit)
44 class="editableProperty"
45 #set ($xobjectPropertyReference = $xobject.getPropertyReference($property.name))
46 data-property="$escapetool.xml($services.model.serialize($xobjectPropertyReference))"
47 data-property-type="object"#end>
48 ## This must match the id generated by the $doc.display() method below.
49 #set ($propertyId = "${xclass.name}_${xobject.number}_$property.name")
50 <label#if ($editing) for="$escapetool.xml($propertyId)"#end>
51 $escapetool.xml($property.translatedPrettyName)
52 </label>
53 ## Support for specifying a translation key as hint in the property definition.
54 <span class="xHint">$!escapetool.xml($services.localization.render($property.hint))</span>
55 </dt>
56 <dd>$doc.display($property.name, 'edit').replace('{{html clean="false" wiki="false"}}', '').replace("{{/html}}", '')</dd>
57 #end
58 #if (!$xclass.properties || $xclass.properties.size() == 0)
59 ## Keep the empty definition term in order to have valid HTML.
60 <dt></dt>
61 <dd>$escapetool.xml($services.localization.render('xclass.defaultObjectSheet.noProperties'))</dd>
62 #end
Alex Cotiugă 12.13 63 </dl>
Alex Cotiugă 13.44 64 <p>Your information will only be used to respond to this request.</p>
65 ##<p>Your information will only be used to respond to this request. See the Privacy Policy for details.</p>
Alex Cotiugă 13.84 66 <input id="contactSubmit" type="submit" class="btn btn-primary" value="Send my request">
Alex Cotiugă 12.13 67 </form>
Alex Cotiugă 13.104 68 {{/html}}
69 {{html clean="false" wiki="true"}}
Alex Cotiugă 13.107 70 <div class="reviewNotifications">
71 <div class="hidden reviewNotificationSuccess">
Alex Cotiugă 13.104 72
Alex Cotiugă 13.107 73 {{success}}reviewNotification{{/success}}
Alex Cotiugă 13.104 74
Alex Cotiugă 13.107 75 </div>
76 <div class="hidden reviewNotificationError">
Alex Cotiugă 13.104 77
Alex Cotiugă 13.107 78 {{error}}reviewNotification{{/error}}
Alex Cotiugă 13.104 79
Alex Cotiugă 13.107 80 </div>
Alex Cotiugă 13.104 81 </div>
Alex Cotiugă 13.107 82 {{/html}}
83 {{html clean="false"}}
Alex Cotiugă 12.13 84 </div>
Alex Cotiugă 12.16 85 <div class="col-xs-5">
Alex Cotiugă 12.21 86 <div class="widget">
Alex Cotiugă 12.35 87 <h4>$services.icon.renderHTML('check') How Agnease can help</h4>
Alex Cotiugă 12.21 88 <ul>
89 <li>XWiki upgrades and long-term maintenance</li>
Alex Cotiugă 13.46 90 <li>Knowledge bases, intranets, SOP and documentation workflows</li>
Alex Cotiugă 12.21 91 <li>Custom XWiki applications and integrations</li>
92 <li>LDAP, SSO, OIDC, SAML, and MFA setup</li>
93 <li>Migrations from SharePoint, Confluence, MediaWiki, or file-based documentation</li>
94 <li>Security-aware reviews and platform stabilization</li>
95 </ul>
96 </div>
97 <div class="widget">
Alex Cotiugă 12.37 98 <h4>$services.icon.renderHTML('right') What happens next?</h4>
Alex Cotiugă 12.21 99 <ol>
100 <li>Your request is reviewed.</li>
101 <li>You receive a reply with clarifying questions or suggested next steps.</li>
102 <li>If useful, we schedule a short call to discuss scope, timeline, and estimated effort.</li>
103 </ol>
104 </div>
Alex Cotiugă 12.14 105 </div>
Alex Cotiugă 13.13 106 </div>
Alex Cotiugă 4.4 107 {{/html}}
Alex Cotiugă 2.6 108 {{/velocity}}