60 lines
3.6 KiB
PHP
60 lines
3.6 KiB
PHP
@if(isset($video))
|
|
<form id="webmedit" method="POST" action="/index/{{$video->id}}">
|
|
{!! csrf_field() !!}
|
|
<div class="modal fade" id="webmeditmodal" tabindex="-1" role="dialog" aria-labelledby="Edit webm">
|
|
<div class="modal-dialog" role="document">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<h4 class="modal-title" id="filterModalTitle">Edit webm</h4>
|
|
</div>
|
|
<div class="modal-body frontendeditmodal">
|
|
<div class="form-group">
|
|
@if(auth()->check() && auth()->user()->can('delete_video'))
|
|
<div class="form-group">
|
|
<label for="imgsourceedit">Video Title</label>
|
|
<input class="form-control" type="text" name="videotitle" id="videotitleedit" value="{{ $video->videotitle or ''}}" placeholder="Video Title">
|
|
</div>
|
|
<label for="interpretedit">Artist</label>
|
|
<input class="form-control" type="text" name="interpret" id="interpretedit" value="{{ $video->interpret or ''}}" placeholder="Artist">
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="songtitleedit">Songtitle</label>
|
|
<input class="form-control" type="text" name="songtitle" id="songtitleedit" value="{{ $video->songtitle or ''}}" placeholder="Songtitle">
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="imgsourceedit">Video Source</label>
|
|
<input class="form-control" type="text" name="imgsource" id="imgsourceedit" value="{{ $video->imgsource or ''}}" placeholder="Video Source">
|
|
@endif
|
|
</div>
|
|
@if(auth()->check() && auth()->user()->can('delete_video'))
|
|
<div class="form-group">
|
|
<label for="categoryselect">Category</label>
|
|
<select class="form-control" name="category" id="categoryselect">
|
|
@foreach(\App\Models\Category::all() as $category)
|
|
<option value="{{$category->id}}" @if($video->category->id == $category->id) selected @endif>{{$category->name}}</option>
|
|
@endforeach
|
|
</select>
|
|
</div>
|
|
@endif
|
|
<div class="form-group">
|
|
<label for="tageditor">Add Tags</label>
|
|
<div class="frontendedittags">
|
|
@include('partials.tags')
|
|
</div>
|
|
</div>
|
|
<div class="deleteit">
|
|
@if(auth()->check() && auth()->user()->can('delete_video'))<a class="delete_video" href="#"><i class="fa fa-trash fa-lg"></i> Remove upload</a>@endif
|
|
</div>
|
|
</div>
|
|
@if(auth()->check() && auth()->user()->can('delete_video'))
|
|
<div class="modal-footer">
|
|
<button type="button" class="btn btn-dark" data-dismiss="modal">Close</button>
|
|
<button type="submit" class="btn btn-dark">Save changes</button>
|
|
</div>
|
|
@endif
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
@endif
|