vsmov 1.0.0
This commit is contained in:
71
resources/views/core/movies/edit.blade.php
Normal file
71
resources/views/core/movies/edit.blade.php
Normal file
@@ -0,0 +1,71 @@
|
||||
@extends(backpack_view('blank'))
|
||||
|
||||
@php
|
||||
$defaultBreadcrumbs = [
|
||||
trans('backpack::crud.admin') => backpack_url('dashboard'),
|
||||
$crud->entity_name_plural => url($crud->route),
|
||||
trans('backpack::crud.edit') => false,
|
||||
];
|
||||
|
||||
// if breadcrumbs aren't defined in the CrudController, use the default breadcrumbs
|
||||
$breadcrumbs = $breadcrumbs ?? $defaultBreadcrumbs;
|
||||
@endphp
|
||||
|
||||
@section('header')
|
||||
<section class="container-fluid">
|
||||
<h2>
|
||||
<span class="text-capitalize">{!! $crud->getHeading() ?? $crud->entity_name_plural !!}</span>
|
||||
<small>{!! $crud->getSubheading() ?? trans('backpack::crud.edit').' '.$crud->entity_name !!}.</small>
|
||||
|
||||
@if ($crud->hasAccess('list'))
|
||||
<small><a href="{{ url($crud->route) }}" class="d-print-none font-sm"><i class="la la-angle-double-{{ config('backpack.base.html_direction') == 'rtl' ? 'right' : 'left' }}"></i> {{ trans('backpack::crud.back_to_all') }} <span>{{ $crud->entity_name_plural }}</span></a></small>
|
||||
@endif
|
||||
</h2>
|
||||
</section>
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<div class="row">
|
||||
<div class="{{ $crud->getEditContentClass() }}">
|
||||
<!-- Default box -->
|
||||
|
||||
@include('crud::inc.grouped_errors')
|
||||
|
||||
<form method="post"
|
||||
action="{{ url($crud->route.'/'.$entry->getKey()) }}"
|
||||
@if ($crud->hasUploadFields('update', $entry->getKey()))
|
||||
enctype="multipart/form-data"
|
||||
@endif
|
||||
>
|
||||
{!! csrf_field() !!}
|
||||
{!! method_field('PUT') !!}
|
||||
|
||||
@if ($crud->model->translationEnabled())
|
||||
<div class="mb-2 text-right">
|
||||
<!-- Single button -->
|
||||
<div class="btn-group">
|
||||
<button type="button" class="btn btn-sm btn-primary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
{{trans('backpack::crud.language')}}: {{ $crud->model->getAvailableLocales()[request()->input('_locale')?request()->input('_locale'):App::getLocale()] }} <span class="caret"></span>
|
||||
</button>
|
||||
<ul class="dropdown-menu">
|
||||
@foreach ($crud->model->getAvailableLocales() as $key => $locale)
|
||||
<a class="dropdown-item" href="{{ url($crud->route.'/'.$entry->getKey().'/edit') }}?_locale={{ $key }}">{{ $locale }}</a>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
<!-- load the view from the application if it exists, otherwise load the one in the package -->
|
||||
@if(view()->exists('vendor.backpack.crud.form_content'))
|
||||
@include('vendor.backpack.crud.form_content', ['fields' => $crud->fields(), 'action' => 'edit'])
|
||||
@else
|
||||
@include('crud::form_content', ['fields' => $crud->fields(), 'action' => 'edit'])
|
||||
@endif
|
||||
<!-- This makes sure that all field assets are loaded. -->
|
||||
<div class="d-none" id="parentLoadedAssets">{{ json_encode(Assets::loaded()) }}</div>
|
||||
@include('crud::inc.form_save_buttons')
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
Reference in New Issue
Block a user