]> _ Git - pmi.git/commitdiff
wip #2743 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 17 Jul 2019 14:50:28 +0000 (16:50 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 17 Jul 2019 14:50:28 +0000 (16:50 +0200)
app/Templates/Base.php
app/Templates/Contact.php
resources/views/pages/contact.blade.php

index d12deb93157b27ea6c481ac782f2140b45d6f04c..ac248b32df5ab8e21e7dcfbacbfc68fa02317e4f 100644 (file)
@@ -29,8 +29,8 @@ class Base extends TemplatePage
     {
         $tab = 'Formulaire';
 
-        $this->addField(['name' => 'form',
-            'type' => 'Textarea',
+        $this->addField(['name' => 'form_intro',
+            'type' => 'Markdown',
             'label' => 'Texte d\'introduction du formulaire',
             'tab' => $tab]);
 
index 7351e3e634f20d87de539b9672a0c2ff9f6c9fac..0cc94c373d26df42c1d4d24333cfb339f54901c6 100644 (file)
@@ -10,4 +10,11 @@ class Contact extends Base
     {
         return 'Contact';
     }
+
+    public function init()
+    {
+        parent::init();
+
+        $this->addForm();
+    }
 }
index afefdb9c74d73b9205ff4391b3b3e4c9f1ff6b38..cb5bcae4f5ad07bade67b0dc213c817d7c47453a 100644 (file)
@@ -28,8 +28,8 @@
                     </text-block>
 
                 </column>
-                <column class="bg-grey-200 p-10 text-center">
-                    (contact form)
+                <column class="bg-grey-200 p-10">
+                    @form
                 </column>
             </columns>
         </content>