return $this->notionCollection($collection);
}
- $lists = CollectionList::withoutGlobalScope('ownerclause')->where('collection', $collection->id)->get();
+ $lists = CollectionList::withoutGlobalScope('ownerclause')->where('collection', $collection->id)->orderBy('id','desc')->get();
$songs = $this->_getSongsOfCollection($collection->id, $lists);
return view('collection', ['menu' => true, 'songs' => $songs, 'collection' => $collection, 'collection_songs' => $songs, 'collection_lists' => $lists]);
}
- $lists = CollectionList::withoutGlobalScope('ownerclause')->where('collection', $collection->id)->get();
+ $lists = CollectionList::withoutGlobalScope('ownerclause')->where('collection', $collection->id)->orderBy('id','desc')->get();
$partition = false;
$lyrics_html = '';
use Cubist\Backpack\Magic\Fields\Color;
use Cubist\Backpack\Magic\Fields\FilesOrURL;
use Cubist\Backpack\Magic\Fields\Images;
+use Cubist\Backpack\Magic\Fields\SelectFromArray;
use Cubist\Backpack\Magic\Fields\SelectFromModel;
use Cubist\Backpack\Magic\Fields\Slug;
use Cubist\Backpack\Magic\Fields\Table;
$this->addField('agenda', FilesOrURL::class, 'Planning / Agenda', ['default' => false, 'database_default' => false]);
$this->addField('organisation_name', Text::class, 'Label du lien "Répartition / organisation"', ['default' => false, 'database_default' => false]);
$this->addField('organisation', FilesOrURL::class, 'Répartition / organisation', ['default' => false, 'database_default' => false]);
- $this->addField('notion_key',Text::class,'Clé Notion');
- $this->addField('notion_database',Text::class,'Base de données Notion');
- $this->addField('notion_home',URL::class,'Home Notion');
+ $this->addField('notion_key', Text::class, 'Clé Notion');
+ $this->addField('notion_database', Text::class, 'Base de données Notion');
+ $this->addField('notion_home', URL::class, 'Home Notion');
+ $this->addField('radio', SelectFromArray::class, 'Radio', ['options' => ['disable' => __('Désactivée'), 'main' => __('Activée pour la liste principale'), 'all' => __('Activée pour toutes les listes')], "allows_empty" => false, 'default' => 'disabled']);
}
protected function _getFreeFileBaseDirectory() {
namespace App\SubForm;
use App\Field\Tone;
+use Cubist\Backpack\Magic\Fields\Checkbox;
use Cubist\Backpack\Magic\Fields\Files;
use Cubist\Backpack\Magic\Fields\Integer;
use Cubist\Backpack\Magic\Fields\Text;
use Cubist\Backpack\Magic\Fields\URL;
use Cubist\Backpack\Magic\SubForm;
-class AudioTrack extends SubForm
-{
- public function init()
- {
+class AudioTrack extends SubForm {
+ public function init() {
parent::init();
$this->addField('name', Text::class, 'Nom');
$this->addField('start', Integer::class, 'Commencer à ', ['suffix' => 'seconds']);
$this->addField('end', Integer::class, 'Terminer à ', ['suffix' => 'seconds']);
$this->addField('file', Files::class, 'ou Fichier');
+ $this->addField('radio', Checkbox::class, 'Inclure dans la radio', ['default' => true]);
}
}
"ext-simplexml": "*",
"ext-tidy": "*",
"ext-zip": "*",
- "cubist/cms-back": "dev-master",
+ "cubist/cms-back": "dev-backpack4.1",
"fruitcake/laravel-cors": "^2.2",
"guzzlehttp/psr7": "^2.0",
"league/csv": "^9.8",
"mariosimao/notion-sdk-php": "dev-parent-block-fix",
"mxl/laravel-job": "^1.3",
- "norkunas/youtube-dl-php": "dev-master",
"php-ffmpeg/php-ffmpeg": "^0.18.0",
"phpoffice/phpspreadsheet": "^1.25"
},
"config": {
"optimize-autoloader": true,
"preferred-install": "dist",
- "sort-packages": true
+ "sort-packages": true,
+ "allow-plugins": {
+ "php-http/discovery": true
+ }
},
"extra": {
"laravel": {
@endforeach
</ul>
@endforeach
+ @if(isset($collection_lists) && count($collection_lists))
+ <ul class="list">
+ <li><h3>🎵 {{__('All')}}</h3></li>
+ @foreach($collection_songs as $csong)
+ @include('collection_song')
+ @endforeach
+ </ul>
+ @endif
</nav>
</article>
@endsection
</ul>
</li>
@endforeach
+ <li><span>🎵 {{__('All')}}</span>
+ <ul>
+ @foreach($collection_songs as $csong)
+ @include('menu_song')
+ @endforeach
+ </ul>
+ </li>
@endif
</ul>
</li>
<li><a target="_blank" href="{{$partition}}">🎼 {{__('Partition')}}</a></li>
@endif
@if($collection->download_assets)
- <li><a download="{{$song->title}}.zip" href="/downloadassets/{{$song->id}}">⬇️ {{__('Télécharger')}}</a></li>
+ <li><a download="{{$song->title}}.zip" href="/downloadassets/{{$song->id}}">⬇️
+ {{__('Télécharger')}}</a></li>
@endif
@endif
@php
$planning=\Cubist\Util\Url::isLocal($collection->agenda)?'/collection/'.$collection->id.'/'.$collection->agenda:$collection->agenda;
@endphp
- <li>
- <span>🗓️ {{__('Planning')}}</span>
- <ul>
- <iframe src="{{$planning}}" style="width: 100%;height:100%;border: 0;"></iframe>
- </ul>
- </li>
+ <li>
+ <span>🗓️ {{__('Planning')}}</span>
+ <ul>
+ <iframe src="{{$planning}}" style="width: 100%;height:100%;border: 0;"></iframe>
+ </ul>
+ </li>
@endif
@if($collection->organisation_name)