]> _ Git - pmi.git/commitdiff
wip #2843 @4
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 28 Jun 2019 13:45:55 +0000 (15:45 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 28 Jun 2019 13:45:55 +0000 (15:45 +0200)
app/Models/Settings.php
app/SubForms/HomeSolution.php

index 6015d41d32c78b7d8c3d0764ebc8fcb5edf8c060..b27db86e3e85abc74bbeda04d0038d79590764e3 100644 (file)
@@ -6,9 +6,14 @@ namespace App\Models;
 
 class Settings extends \Cubist\Backpack\app\Magic\Models\Settings
 {
-public function setFields()
-{
-    parent::setFields();
+    public function setFields()
+    {
+        parent::setFields();
 
-}
+
+        $this->addField(['name'=>'email',
+            'type'=>'Email',
+            'label'=>'E-mail',
+            'tab'=>'Informations de contact']);
+    }
 }
index 3f76ffe9809dbbcc644fb8bf603af5c41fd6e1ba..a81c80921df7578b67a1f33f2cf3f4818b4de9af 100644 (file)
@@ -11,6 +11,7 @@ class HomeSolution extends SubForm
     public function init()
     {
         parent::init();
+
         $this->addField(['name' => 'title',
             'label' => 'Titre',
             'type' => 'Text']);
@@ -18,6 +19,7 @@ class HomeSolution extends SubForm
         $this->addField(['name' => 'image',
             'label' => 'Image',
             'type' => 'Images']);
+
         $this->addField(['name' => 'page',
             'label' => 'Lien vers',
             'type' => 'SelectFromModel',