FEATURE #1508: merge files and directories overview.
This commit merges list of all uploaded files and created directories into one page. It also modifies way of uploading files. Special page for uploading files was removed (because of no support for directories) and files can be uploaded only via overview.
This commit is contained in:
@@ -1,56 +1,39 @@
|
||||
@if (session('success'))
|
||||
<div data-alert class="callout success">
|
||||
<strong>{{ session('success') }}</strong>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if (session('error'))
|
||||
<div data-alert class="callout alert">
|
||||
<strong>{{ session('error') }}</strong>
|
||||
</div>
|
||||
@endif
|
||||
<h3>@lang('admin/fileManager.newFile')</h3>
|
||||
|
||||
<form method="POST" action="{{route('upload.postFile')}}" enctype="multipart/form-data">
|
||||
{!! csrf_field() !!}
|
||||
|
||||
<div class="row">
|
||||
<div class="column large-4">
|
||||
<label>
|
||||
@lang('admin/fileManager.selectFile')
|
||||
@if(isset($directory))
|
||||
<input type="hidden" name="directoryId" value="{{$directory->id}}" />
|
||||
@endif
|
||||
|
||||
<input type="file" name="file" id="file" />
|
||||
<label>
|
||||
@lang('admin/fileManager.selectFile')
|
||||
|
||||
@if (isset($errors) && $errors->has('file'))
|
||||
<div class="callout alert">
|
||||
{{ $errors->first('file') }}
|
||||
</div>
|
||||
@endif
|
||||
</label>
|
||||
</div>
|
||||
<div class="column large-8">
|
||||
<label>
|
||||
@lang('admin/fileManager.keywords')
|
||||
<input type="file" name="file" id="file" />
|
||||
|
||||
<input type="text" name="keywords" id="keywords" />
|
||||
@if (isset($errors) && $errors->has('file'))
|
||||
<div class="callout alert">
|
||||
{{ $errors->first('file') }}
|
||||
</div>
|
||||
@endif
|
||||
</label>
|
||||
<label>
|
||||
@lang('admin/fileManager.keywords')
|
||||
|
||||
@if (isset($errors) && $errors->has('keywords'))
|
||||
<div class="callout alert">
|
||||
{{ $errors->first('keywords') }}
|
||||
</div>
|
||||
@endif
|
||||
</label>
|
||||
<input type="text" name="keywords" id="keywords" value="{{old('keywords')}}" />
|
||||
|
||||
<label>
|
||||
@lang('admin/fileManager.description')
|
||||
@if (isset($errors) && $errors->has('keywords'))
|
||||
<div class="callout alert">
|
||||
{{ $errors->first('keywords') }}
|
||||
</div>
|
||||
@endif
|
||||
</label>
|
||||
|
||||
<textarea rows="3" name="description" id="description"></textarea>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<label>
|
||||
@lang('admin/fileManager.description')
|
||||
|
||||
<div class="row text-right">
|
||||
<div class="column">
|
||||
<button type="submit" class="button primary">@lang('admin/fileManager.upload')</button>
|
||||
</div>
|
||||
</div>
|
||||
<textarea rows="3" name="description" id="description">{{old('description')}}</textarea>
|
||||
</label>
|
||||
<button type="submit" class="button primary">@lang('admin/fileManager.upload')</button>
|
||||
</form>
|
||||
Reference in New Issue
Block a user