Files
core/resources/views/admin/fileManager/newFileForm.blade.php
T

52 lines
1.5 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" multiple name="files[]" id="file" />
@if (isset($errors) && $errors->has('files[]'))
<div class="callout alert">
{{ $errors->first('files[]') }}
</div>
@endif
</label>
<label>
@lang('admin/fileManager.name')
<input type="text" name="name" id="name" value="{{old('name')}}"/>
@if (isset($errors) && $errors->has('name'))
<div class="callout alert">
{{ $errors->first('name') }}
</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>