]> _ Git - cubist_cms-back.git/commitdiff
#2843
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 2 Jul 2019 15:05:43 +0000 (17:05 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 2 Jul 2019 15:05:43 +0000 (17:05 +0200)
src/app/Magic/Models/News.php

index a97471787f286ad7f350ff4975bf797b8240814a..aeac8340aef87a78df1b91ffdf35b39d4b9b5652 100644 (file)
@@ -33,14 +33,21 @@ class News extends CubistMagicModel
 
         $this->addField(['name' => 'chapo',
             'type' => 'Textarea',
-            'label' => 'Chapo']);
+            'label' => 'Chapo',
+            'hint' => 'Texte court affiché sur le listing des actualités']);
 
         $this->addField(['name' => 'image',
             'type' => 'Images',
             'label' => 'Image']);
 
+        $this->addField(['name' => 'content',
+            'type' => 'Markdown',
+            'label' => 'Contenu'
+        ]);
+
         $this->addField(['name' => 'status',
-            'type' => 'SelectFormArray',
+            'type' => 'SelectFromArray',
+            'label'=>'Status',
             'options' => ['0' => 'Offline', '1' => 'Published'],
             'column' => true
         ]);