Explorar el Código

add the postal adress to contact page

Olivier Massot hace 5 años
padre
commit
5d02964c0a
Se han modificado 1 ficheros con 12 adiciones y 0 borrados
  1. 12 0
      ot_templating/Resources/Private/Layouts/Classic/Contact.html

+ 12 - 0
ot_templating/Resources/Private/Layouts/Classic/Contact.html

@@ -1,3 +1,5 @@
+{namespace ot=Opentalent\OtTemplating\ViewHelpers}
+
 <f:comment><!-- Special layout for the Contact page --></f:comment>
 <f:layout name="Contact" />
 
@@ -10,9 +12,19 @@
     <div class="content">
         <f:comment><!-- Contact form --></f:comment>
 
+
         <div class="contact-form">
             <formvh:render persistenceIdentifier="EXT:ot_templating/Resources/Private/Forms/Contact.form.yaml" />
         </div>
+
+        <h2>Ou par courrier:</h2>
+        <ot:organizations.getById as="organization" organizationId="{settings.organizationId}">
+            <p>
+                {organization.name}<br/>
+                {organization.streetAdress}<br/>
+                {organization.postalCode} {organization.addressCity}
+            </p>
+        </ot:organizations.getById>
     </div>
 
 </div>