]> _ Git - odl.git/commitdiff
wip #5002 @1
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 4 Jan 2022 16:41:24 +0000 (17:41 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 4 Jan 2022 16:41:24 +0000 (17:41 +0100)
app/Models/Asset.php
app/SubForms/ResourceMemo.php

index e3f68660e0c6e7e7d51c2216c8b128052d075391..10ab0fc20ea370ac026538ca48e10551d5d1fe37 100644 (file)
@@ -46,7 +46,7 @@ class Asset extends CubistMagicAbstractModel
                 'column' => true,
             ]);
         $this->addField('file_upload', Files::class, 'Fichier', ['maxFiles' => 100]);
-        $this->addField('file_thumb', Files::class, 'Miniature', ['when' => ['type' => ['audio', 'video']], 'hint' => 'Image utilisée sur la page "Médiathèque"']);
+        $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, 'Thème', ['when' => ['type' => ['audio', 'video']], 'optionsmodel' => AssetTheme::class, 'allows_null' => true, 'column' => true, 'hint' => 'Choisir un thème pour ajouter à la page "Médiathèque"']);
         $this->addField('keywords', Tags::class, 'Mots-clé', ['column' => true]);
     }
index 8ba2f92e7cfd0e96ea950de30ef37854852978c8..aca085b0c86ce39ceac74f160956d5f600c41b7b 100644 (file)
@@ -13,7 +13,6 @@ class ResourceMemo extends SubForm
         parent::init();
 
         $this->addField('memo_title', 'Text', 'Titre');
-        $this->addField('memo_pdf', Memo::class, 'PDF',['hint'=>'chargé dans la médiathèque']);
-        $this->addField('memo_image', Images::class, 'Vignette');
+        $this->addField('memo_pdf', Memo::class, 'PDF', ['hint' => 'chargé dans la médiathèque']);
     }
 }