INIT: initial commit
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'name' => 'Filtr obsahu',
|
||||
'new' => 'Vytvořit nový filtr',
|
||||
'description' => 'Modul pro správu filtrů obsahu.',
|
||||
'successfullyUpdated' => 'Úspěšně upraveno.',
|
||||
'successfullyCreated' => 'Úspěšně vytvořeno.',
|
||||
'successfullyDeleted' => 'Úspěšně smazáno.',
|
||||
'overview' => 'Filtry obsahu',
|
||||
'noItems' => 'Žádná data.',
|
||||
'save' => 'Uložit'
|
||||
];
|
||||
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'name' => 'Jméno',
|
||||
'search' => 'Vyhledat co',
|
||||
'replace' => 'Nahradit za'
|
||||
];
|
||||
@@ -0,0 +1,17 @@
|
||||
@extends('admin.layoutWithNavigation')
|
||||
|
||||
@section('pageHeading', @trans('contentfilter::contentfilter.name'))
|
||||
|
||||
@section('headerButtons')
|
||||
<a class="btn btn-secondary btn-sm rounded" href="{{route('contentfilter.index')}}">
|
||||
<i class="fa fa-list"></i>
|
||||
</a>
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<div class="card items">
|
||||
<div class="card-block">
|
||||
@include('contentfilter::admin.form', ['action' => route('contentfilter.store'), 'method' => 'post'])
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
@@ -0,0 +1,17 @@
|
||||
@extends('admin.layoutWithNavigation')
|
||||
|
||||
@section('pageHeading', @trans('contentfilter::contentfilter.name'))
|
||||
|
||||
@section('headerButtons')
|
||||
<a class="btn btn-secondary btn-sm rounded" href="{{route('contentfilter.index')}}">
|
||||
<i class="fa fa-list"></i>
|
||||
</a>
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<div class="card items">
|
||||
<div class="card-block">
|
||||
@include('contentfilter::admin.form', ['action' => route('contentfilter.update', ['contentfilter' => $filter]), 'method' => 'put'])
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
@@ -0,0 +1,36 @@
|
||||
<form action="{{$action}}" method="post">
|
||||
{!! csrf_field() !!}
|
||||
{!! method_field($method) !!}
|
||||
|
||||
|
||||
<label class="label-control">
|
||||
@lang('contentfilter::fields.name')
|
||||
</label>
|
||||
<input class="form-control" type="text" name="name" placeholder="@lang('contentfilter::fields.name')"
|
||||
value="{{old('name', $filter->name)}}" />
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6"><label class="label-control">
|
||||
@lang('contentfilter::fields.search')
|
||||
</label>
|
||||
|
||||
<input class="form-control" type="text" name="search" placeholder="@lang('contentfilter::fields.search')"
|
||||
value="{{old('search', $filter->search)}}" />
|
||||
|
||||
@include('admin.snippets.hasError', ['field' => 'search'])
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<label class="label-control">
|
||||
@lang('contentfilter::fields.replace')
|
||||
</label>
|
||||
|
||||
<input class="form-control" type="text" name="replace" placeholder="@lang('contentfilter::fields.replace')"
|
||||
value="{{old('replace', $filter->replace)}}" />
|
||||
|
||||
@include('admin.snippets.hasError', ['field' => 'replace'])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<input type="submit" class="btn btn-primary" value="@lang('contentfilter::contentfilter.save')">
|
||||
</form>
|
||||
@@ -0,0 +1,52 @@
|
||||
@extends('admin.layoutWithNavigation')
|
||||
|
||||
@section('pageHeading', @trans('contentfilter::contentfilter.overview'))
|
||||
|
||||
@section('headerButtons')
|
||||
<a class="btn btn-secondary btn-sm rounded" href="{{route('contentfilter.create')}}">
|
||||
<i class="fa fa-plus"></i>
|
||||
</a>
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
@if (!$filters->isEmpty())
|
||||
<div class="card items">
|
||||
<div class="card-block">
|
||||
<table class="table full-width">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>@lang('contentfilter::fields.name')</th>
|
||||
<th>@lang('contentfilter::fields.search')</th>
|
||||
<th>@lang('contentfilter::fields.replace')</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($filters as $filter)
|
||||
<tr>
|
||||
<td>{{$filter->name}}</td>
|
||||
<td>{{$filter->search}}</td>
|
||||
<td>{{$filter->replace}}</td>
|
||||
<td class="text-right">
|
||||
<a class="btn btn-secondary btn-sm rounded"
|
||||
href="{{route('contentfilter.edit', ['contentfilter' => $filter])}}">
|
||||
<i class="fa fa-pencil"></i>
|
||||
</a>
|
||||
|
||||
@include('admin/snippets.buttons.delete', ['action' => route('contentfilter.destroy', ['contentfilter' => $filter])])
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="card-footer">
|
||||
{!! $filters->render() !!}
|
||||
</div>
|
||||
@else
|
||||
<div class="alert alert-info">
|
||||
<em>@lang('contentfilter::contentfilter.noItems')</em>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
</div>
|
||||
@endsection
|
||||
Reference in New Issue
Block a user