FIX: fix file manager
This commit is contained in:
@@ -1,42 +1,44 @@
|
||||
<?php
|
||||
return [
|
||||
"createSubdirectoryFor" => "Vytvořit podadresář v :directory.",
|
||||
"createdAt" => "Nahráno",
|
||||
"delete" => "Smazat",
|
||||
"description" => "Popis souboru",
|
||||
"directories" => "Podadresáře v adresáři :directory",
|
||||
"directoryDescription" => "Popis",
|
||||
"directoryHidden" => "Skrytý adresář",
|
||||
"directoryName" => "Jméno adresáře",
|
||||
"edit" => "Upravit soubor :name",
|
||||
"editButton" => "Upravit",
|
||||
"editDirectory" => "Upravit adresář",
|
||||
"editDirectorySuccess" => "Úspěšně uloženo",
|
||||
"encoding" => "Kódování",
|
||||
"fileDeleted" => "Soubor smazán",
|
||||
"fileInfo" => "Informace",
|
||||
"fileSize" => "Velikost",
|
||||
"hash" => "Hash",
|
||||
"invalidFile" => "Nahrávaný soubor nelze nahrát, z nějakého důvodu není validní.",
|
||||
"keywords" => "Klíčová slova (oddělena čárkou)",
|
||||
"mime" => "MIME typ",
|
||||
"name" => "Jméno",
|
||||
"newDirectory" => "Vytvořit nový adresář",
|
||||
"newDirectorySuccess" => "Nový adresář úspěšně vytvořen",
|
||||
"newFile" => "Nový soubor",
|
||||
"noFileSpecified" => "Nebyl zvolen žádný soubor k nahrávání",
|
||||
"noFiles" => "Žádný soubor nebyl nalezen",
|
||||
"noSubdirectories" => "Žádné podadresáře",
|
||||
"originalFilename" => "Původní jméno",
|
||||
"overview" => "Seznam všech souborů",
|
||||
"parentDirectory" => "Rodičovský adresář",
|
||||
"resolution" => "Rozlišení",
|
||||
"rootDirectories" => "Kořenové adresáře",
|
||||
"selectFile" => "Vybrat soubor",
|
||||
"subdirectoryExists" => "Adresář s tímto jménem tu již eixstuje",
|
||||
"successfullyChanged" => "Úspěšně uloženo",
|
||||
"updatedAt" => "Poslední změna",
|
||||
"upload" => "Nahrát nový soubor",
|
||||
"uploadSuccessfull" => "Soubor úspěšně nahrán|:count soubory úspěšně nahrány|:count souborů úspěšně nahráno",
|
||||
"url" => "Veřejná URL",
|
||||
"createdAt" => "Nahráno",
|
||||
"delete" => "Smazat",
|
||||
"description" => "Popis souboru",
|
||||
"directories" => "Podadresáře v adresáři :directory",
|
||||
"directoryDescription" => "Popis",
|
||||
"directoryHidden" => "Skrytý adresář",
|
||||
'directory' => 'Adresář',
|
||||
"directoryName" => "Jméno adresáře",
|
||||
"edit" => "Upravit soubor :name",
|
||||
"editButton" => "Upravit",
|
||||
"editDirectory" => "Upravit adresář",
|
||||
"editDirectorySuccess" => "Úspěšně uloženo",
|
||||
"encoding" => "Kódování",
|
||||
"fileDeleted" => "Soubor smazán",
|
||||
"fileInfo" => "Informace",
|
||||
"fileSize" => "Velikost",
|
||||
"hash" => "Hash",
|
||||
"invalidFile" => "Nahrávaný soubor nelze nahrát, z nějakého důvodu není validní.",
|
||||
"keywords" => "Klíčová slova (oddělena čárkou)",
|
||||
"mime" => "MIME typ",
|
||||
"name" => "Jméno",
|
||||
"newDirectory" => "Vytvořit nový adresář",
|
||||
"newDirectorySuccess" => "Nový adresář úspěšně vytvořen",
|
||||
"newFile" => "Nový soubor",
|
||||
"noFileSpecified" => "Nebyl zvolen žádný soubor k nahrávání",
|
||||
"noFiles" => "Žádný soubor nebyl nalezen",
|
||||
"noSubdirectories" => "Žádné podadresáře",
|
||||
"originalFilename" => "Původní jméno",
|
||||
"overview" => "Seznam všech souborů",
|
||||
"parentDirectory" => "Rodičovský adresář",
|
||||
"resolution" => "Rozlišení",
|
||||
"rootDirectories" => "Kořenové adresáře",
|
||||
"selectFile" => "Vybrat soubor",
|
||||
"subdirectoryExists" => "Adresář s tímto jménem tu již eixstuje",
|
||||
"successfullyChanged" => "Úspěšně uloženo",
|
||||
"updatedAt" => "Poslední změna",
|
||||
"upload" => "Nahrát nový soubor",
|
||||
"uploadSuccessfull" => "Soubor úspěšně nahrán|:count soubory úspěšně nahrány|:count souborů úspěšně nahráno",
|
||||
"url" => "Veřejná URL",
|
||||
'rootDirectory' => 'Kořenový adresář'
|
||||
];
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
<option value="{{$directory->id}}" @if($file->directory_id == $directory->id) selected @endif>
|
||||
{{str_repeat('-', $depth)}}
|
||||
{{$directory->is_root ? trans('admin/fileManager.rootDirectory') : $directory->name}}
|
||||
</option>
|
||||
|
||||
@if (!is_null($directory->subdirectories))
|
||||
@foreach($directory->subdirectories as $dir)
|
||||
@include('admin.fileManager.directories.subdirectoriesOptionList', ['directory' => $dir, 'depth' => $depth +1, 'file' => $file])
|
||||
@endforeach
|
||||
@endif
|
||||
@@ -1,4 +1,4 @@
|
||||
@if($directory->id)
|
||||
@if (!$directory->is_root)
|
||||
<div class="col-sm-4 col-md-3 text-center">
|
||||
@include('admin.snippets.card', [
|
||||
'body' => '<a href="'.route('upload.overview', ['directory' => $directory->parent_id]).'"><p><i class="fa fa-2x fa-level-up"></i><br />'.trans('admin/fileManager.parentDirectory').'</p></a>',
|
||||
|
||||
@@ -12,6 +12,15 @@
|
||||
</label>
|
||||
|
||||
<input class="form-control" type="text" name="keywords" id="keywords" value="{{$file->keywords}}" />
|
||||
|
||||
<lavel class="control-label">
|
||||
@lang('admin/fileManager.directory')
|
||||
</lavel>
|
||||
|
||||
<select name="directory_id" class="form-control">
|
||||
@include('admin/fileManager.directories.subdirectoriesOptionList', ['directory' => $root, 'depth' => 0, 'file' => $file])
|
||||
</select>
|
||||
|
||||
<label class="control-label">
|
||||
@lang('admin/fileManager.description')
|
||||
</label>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<input type="hidden" name="directoryId" value="{{$directory->id}}" />
|
||||
@endif
|
||||
|
||||
<input type="file" multiple name="files[]" class="form-control" id="file" />
|
||||
<input type="file" multiple name="files[]" required class="form-control" id="file" />
|
||||
|
||||
<input type="text" name="name" id="name" class="form-control" placeholder="@lang('admin/fileManager.name')"
|
||||
value="{{old('name')}}" />
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
@extends('admin.layoutWithNavigation')
|
||||
|
||||
@if ($directory->id)
|
||||
@if (!$directory->is_root)
|
||||
@section('pageHeading', @trans('admin/fileManager.directories', ['directory' => $directory->name]))
|
||||
@else
|
||||
@section('pageHeading', @trans('admin/fileManager.rootDirectories'))
|
||||
@@ -31,7 +31,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@if ($directory->exists)
|
||||
@if (!$directory->is_root)
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading" role="tab" id="edit-dir-title">
|
||||
<h5 class="panel-title">
|
||||
|
||||
Reference in New Issue
Block a user