From: Vincent Vanwaelscappel Date: Thu, 6 Jan 2022 15:55:01 +0000 (+0100) Subject: wait #5004 @2 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=941a83720ea619073a3ee8929dfc06352b6f4408;p=odl.git wait #5004 @2 --- diff --git a/app/Models/Asset.php b/app/Models/Asset.php index 10ab0fc..bea3180 100644 --- a/app/Models/Asset.php +++ b/app/Models/Asset.php @@ -47,7 +47,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, '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('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('keywords', Tags::class, 'Mots-clé', ['column' => true]); } diff --git a/resources/views/components/media-library/filter-interface.blade.php b/resources/views/components/media-library/filter-interface.blade.php index cfd5224..2cc9411 100644 --- a/resources/views/components/media-library/filter-interface.blade.php +++ b/resources/views/components/media-library/filter-interface.blade.php @@ -24,31 +24,9 @@ {{-- Filter Options --}}
- {{-- Media Type Filters --}} -
-

Média

-
- @foreach($types as $type_id => $type) - - @endforeach -
-
- {{-- Theme Filters --}}
-

Thème

+

Chapitres

@foreach($themes as $theme_id => $theme)