FEATURE: add file detail/edit form in file manager
This commit is contained in:
@@ -1,23 +1,23 @@
|
|||||||
@extends('admin.layoutWithNavigation')
|
@extends('admin.layoutWithNavigation')
|
||||||
|
|
||||||
@section('pageHeading', @trans('admin/fileManager.edit', ['name' => $file->original_filename]))
|
@section('pageHeading', @trans('admin/fileManager.edit', ['name' => $file->original_filename]))
|
||||||
|
@section('headerButtons')
|
||||||
|
<a href="{{route('upload.delete', ['id' => $file->id])}}" class="btn btn-danger btn-sm rounded" title="@lang('admin/fileManager.delete')">
|
||||||
|
<i class="fa fa-remove"></i>
|
||||||
|
</a>
|
||||||
|
@endsection
|
||||||
|
|
||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<h2>@lang('admin/fileManager.edit', ['name' => $file->original_filename])</h2>
|
<div class="col-lg-8">
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="column large-8">
|
|
||||||
<div class="large-preview">
|
<div class="large-preview">
|
||||||
{!! \App\Helpers\FileManager::getLargePreview($file) !!}
|
{!! \App\Helpers\FileManager::getLargePreview($file) !!}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="column large-4">
|
<div class="col-lg-4">
|
||||||
|
|
||||||
<div class="row callout secondary">
|
<div class="row callout secondary">
|
||||||
<div class="column">
|
|
||||||
<h3>{{$file->original_filename}}</h3>
|
<h3>{{$file->original_filename}}</h3>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
@@ -33,7 +33,6 @@
|
|||||||
@endforeach
|
@endforeach
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@@ -48,11 +47,8 @@
|
|||||||
@stop
|
@stop
|
||||||
|
|
||||||
@section('javascripts')
|
@section('javascripts')
|
||||||
|
|
||||||
<script type="text/javascript" src="{{asset('/resources/assets/js/vendor/highlightjs/highlight.min.js')}}"></script>
|
<script type="text/javascript" src="{{asset('/resources/assets/js/vendor/highlightjs/highlight.min.js')}}"></script>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
hljs.initHighlightingOnLoad();
|
hljs.initHighlightingOnLoad();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@stop
|
@stop
|
||||||
|
|||||||
@@ -1,40 +1,24 @@
|
|||||||
<form method="POST" action="{{route('upload.postEdit', ['id' => $file->id])}}" enctype="multipart/form-data">
|
<form method="POST" action="{{route('upload.postEdit', ['id' => $file->id])}}" enctype="multipart/form-data">
|
||||||
{!! csrf_field() !!}
|
{!! csrf_field() !!}
|
||||||
|
|
||||||
<label>
|
<label class="control-label">
|
||||||
@lang('admin/fileManager.name')
|
@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>
|
||||||
|
|
||||||
<label>
|
<input class="form-control" type="text" name="name" id="name" value="{{$file->name}}" />
|
||||||
|
|
||||||
|
<label class="control-label">
|
||||||
@lang('admin/fileManager.keywords')
|
@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>
|
||||||
|
|
||||||
<label>
|
<input class="form-control" type="text" name="keywords" id="keywords" value="{{$file->keywords}}" />
|
||||||
|
<label class="control-label">
|
||||||
@lang('admin/fileManager.description')
|
@lang('admin/fileManager.description')
|
||||||
|
|
||||||
<textarea rows="3" name="description" id="description">{{$file->description}}</textarea>
|
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<button type="submit" class="button primary">@lang('admin/fileManager.editButton')</button>
|
<textarea class="form-control" rows="3" name="description" id="description">{{$file->description}}</textarea>
|
||||||
<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>
|
<button type="submit" class="btn btn-primary">@lang('admin/fileManager.editButton')</button>
|
||||||
</a>
|
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user