From 941a83720ea619073a3ee8929dfc06352b6f4408 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Thu, 6 Jan 2022 16:55:01 +0100 Subject: [PATCH] wait #5004 @2 --- app/Models/Asset.php | 2 +- .../media-library/filter-interface.blade.php | 24 +---- .../media-library/filter-list.blade.php | 27 +----- .../components/media-library/index.blade.php | 94 ++++++++++--------- resources/views/front/media-library.blade.php | 2 +- 5 files changed, 55 insertions(+), 94 deletions(-) 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)