Files
core/resources/views/admin/fileManager/newFileForm.blade.php
T
Michal Kváček df3bc22954 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.
2016-03-13 22:50:20 +01:00

39 lines
1.2 KiB
PHP

<h3>@lang('admin/fileManager.newFile')</h3>
<form method="POST" action="{{route('upload.postFile')}}" enctype="multipart/form-data">
{!! csrf_field() !!}
@if(isset($directory))
<input type="hidden" name="directoryId" value="{{$directory->id}}" />
@endif
<label>
@lang('admin/fileManager.selectFile')
<input type="file" name="file" id="file" />
@if (isset($errors) && $errors->has('file'))
<div class="callout alert">
{{ $errors->first('file') }}
</div>
@endif
</label>
<label>
@lang('admin/fileManager.keywords')
<input type="text" name="keywords" id="keywords" value="{{old('keywords')}}" />
@if (isset($errors) && $errors->has('keywords'))
<div class="callout alert">
{{ $errors->first('keywords') }}
</div>
@endif
</label>
<label>
@lang('admin/fileManager.description')
<textarea rows="3" name="description" id="description">{{old('description')}}</textarea>
</label>
<button type="submit" class="button primary">@lang('admin/fileManager.upload')</button>
</form>