From: Vincent Vanwaelscappel Date: Thu, 6 Jan 2022 18:56:33 +0000 (+0100) Subject: wip #5007 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=53daf7ddfb0fa52b51c5624213f0b1f282fbd262;p=odl.git wip #5007 --- diff --git a/app/Models/Asset.php b/app/Models/Asset.php index 2fb4a0c..4aa5dbc 100644 --- a/app/Models/Asset.php +++ b/app/Models/Asset.php @@ -48,7 +48,7 @@ class Asset extends CubistMagicAbstractModel ]); $this->addField('file_upload', Files::class, 'Fichier', ['maxFiles' => 100]); $this->addField('file_thumb', Files::class, 'Miniature', ['when' => ['type' => ['audio', 'video', 'pdf']], 'hint' => 'Image utilisée sur la page "Médiathèque" ou "Resources"']); - $this->addField('theme', SelectFromModel::class, 'Chapitres', ['when' => ['type' => ['audio', 'video']], 'optionsmodel' => AssetTheme::class, 'allows_null' => true, 'allows_multiple' => true, 'column' => true, 'hint' => 'Choisir un thème pour ajouter à la page "Médiathèque"']); + $this->addField('theme', SelectFromModel::class, 'Chapitres', ['when' => ['type' => ['audio', 'video']], 'optionsmodel' => AssetTheme::class, 'allows_null' => true, 'allows_multiple' => true,'hint' => 'Choisir un thème pour ajouter à la page "Médiathèque"']); $this->addField('code', Integer::class, 'Code', ['when' => ['type' => ['audio', 'video']], 'column' => true]); $this->addField('keywords', Tags::class, 'Mots-clé', ['column' => true]); }