]> _ Git - cubist_cms-back.git/commitdiff
wip #3297 @0:15
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 2 Jan 2020 16:46:18 +0000 (17:46 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 2 Jan 2020 16:46:18 +0000 (17:46 +0100)
src/app/Magic/Models/News.php

index 49c89982a644bbbc9b51425bca331dd3ca96b6ed..3b4646aa2b44a28f9d314c0e604beef9843fefe3 100644 (file)
@@ -17,41 +17,41 @@ class News extends CubistMagicPageModel
             'label' => 'Titre',
             'type' => 'Text',
             'column' => true,
-            'tab'=>'Contenus']);
+            'tab' => 'Contenus']);
 
         $this->addField(['name' => 'type',
             'type' => 'SelectFromArray',
             'label' => 'Type',
             'options' => ['news' => 'Actualité', 'event' => 'Evénement'],
             'column' => true,
-            'tab'=>'Contenus'
+            'tab' => 'Contenus'
         ]);
 
         $this->addField(['name' => 'date',
             'type' => 'Datetime',
             'label' => 'Date de publication',
             'column' => true,
-            'tab'=>'Contenus']);
+            'tab' => 'Contenus']);
 
         $this->addField(['name' => 'event_start',
             'type' => 'Date',
             'label' => 'Début de l\'évenement',
             'when' => ['type' => ['event']],
-            'tab'=>'Contenus'
+            'tab' => 'Contenus'
         ]);
 
         $this->addField(['name' => 'event_end',
             'type' => 'Date',
             'label' => 'Fin de l\'évenement',
             'when' => ['type' => ['event']],
-            'tab'=>'Contenus'
+            'tab' => 'Contenus'
         ]);
 
         $this->addField(['name' => 'event_place',
             'type' => 'Text',
             'label' => 'Lieu de l\'événement',
             'when' => ['type' => ['event']],
-            'tab'=>'Contenus'
+            'tab' => 'Contenus'
         ]);
 
         $this->addField(['name' => 'chapo',
@@ -59,18 +59,18 @@ class News extends CubistMagicPageModel
             'label' => 'Chapo',
             'hint' => 'Texte court affiché sur le listing des actualités',
             'when' => ['type' => ['news']],
-            'tab'=>'Contenus'
+            'tab' => 'Contenus'
         ]);
 
         $this->addField(['name' => 'image',
             'type' => 'Images',
             'label' => 'Image',
-            'tab'=>'Contenus']);
+            'tab' => 'Contenus']);
 
         $this->addField(['name' => 'content',
             'type' => 'Markdown',
             'label' => 'Contenu',
-            'tab'=>'Contenus'
+            'tab' => 'Contenus'
         ]);
 
         $this->addField(['name' => 'status',
@@ -78,7 +78,8 @@ class News extends CubistMagicPageModel
             'label' => 'Status',
             'options' => ['0' => 'Offline', '1' => 'Published'],
             'column' => true,
-            'tab'=>'Contenus'
+            'tab' => 'Contenus',
+            'translatable' => true,
         ]);
 
         parent::setFields();