FEATURE: add file detail/edit form in file manager

This commit is contained in:
Michal Kváček
2016-09-04 03:40:45 +02:00
parent 98c8313475
commit 9029f14523
2 changed files with 17 additions and 37 deletions
@@ -1,40 +1,24 @@
<form method="POST" action="{{route('upload.postEdit', ['id' => $file->id])}}" enctype="multipart/form-data">
{!! csrf_field() !!}
<label>
<label class="control-label">
@lang('admin/fileManager.name')
<input type="text" name="name" id="name" value="{{$file->name}}"/>
@if (isset($errors) && $errors->has('name'))
<div class="callout alert">
{{ $errors->first('name') }}
</div>
@endif
</label>
<label>
<input class="form-control" type="text" name="name" id="name" value="{{$file->name}}" />
<label class="control-label">
@lang('admin/fileManager.keywords')
<input type="text" name="keywords" id="keywords" value="{{$file->keywords}}"/>
@if (isset($errors) && $errors->has('keywords'))
<div class="callout alert">
{{ $errors->first('keywords') }}
</div>
@endif
</label>
<label>
<input class="form-control" type="text" name="keywords" id="keywords" value="{{$file->keywords}}" />
<label class="control-label">
@lang('admin/fileManager.description')
<textarea rows="3" name="description" id="description">{{$file->description}}</textarea>
</label>
<button type="submit" class="button primary">@lang('admin/fileManager.editButton')</button>
<a href="{{route('upload.delete', ['id' => $file->id])}}" class="button text-center confirm alert pull-right" title="@lang('admin/fileManager.delete')">
<i class="fa fa-remove"></i>
</a>
<textarea class="form-control" rows="3" name="description" id="description">{{$file->description}}</textarea>
<button type="submit" class="btn btn-primary">@lang('admin/fileManager.editButton')</button>
</form>