FIX: fix file manager
This commit is contained in:
@@ -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