From 11b339b60d57469f54029ad62e296594ff18dec6 Mon Sep 17 00:00:00 2001 From: Alexandr Kosarev Date: Mon, 10 Sep 2018 22:31:17 +0300 Subject: [PATCH] create idea index layout override --- admin/tmpl/idea/index.blade.php | 110 ++++++++++++++++++++++++++++++++ 1 file changed, 110 insertions(+) create mode 100644 admin/tmpl/idea/index.blade.php diff --git a/admin/tmpl/idea/index.blade.php b/admin/tmpl/idea/index.blade.php new file mode 100644 index 0000000..4c515f6 --- /dev/null +++ b/admin/tmpl/idea/index.blade.php @@ -0,0 +1,110 @@ +input->get('option'); +$model = new $modelClass; +if ($columns == null) { + $columns = $model->getFillable(); +} +$columns = array_filter($columns, function ($c) { + return !in_array($c, ['project_id']); +}); +?> +@can($this->getGlobal('view').'.create',$modelClass) + @php + JToolbarHelper::addNew($this->getGlobal('view').'.create'); + @endphp +@endcan +@section('content-table') + + + + + + + + + + + + + @foreach($items->all() as $item) + + + + + + + + + @endforeach + + + + + + + +
+ @lang('JOOMPLACE_X_GRID_ID') + + {{$model->getLabelFor($column)}} + + @lang('COM_ROADMAP_IDEAS_RELATED_PROJECT') + + @lang('JOOMPLACE_X_GRID_ACTIONS') +
+ {{$item->id}} + + {{$item->$column}} + + {{$item->project->title}} + + getGlobal('view').'.view',$item)) + href="{{\Joomla\CMS\Router\Route::_('index.php?option='.$option.'&view='.$this->getGlobal('view').'&id='.$item->id,false)}}" + @else + href="javascript:void(0);" + disabled="true" + @endif + > + show + + getGlobal('view').'.view',$item)) + href="{{\Joomla\CMS\Router\Route::_('index.php?option='.$option.'&task='.$this->getGlobal('view') + .'.edit&id='.$item->id, false)}}" + @else + href="javascript:void(0);" + disabled="true" + @endif + > + edit + +
+ @if($item::can($this->getGlobal('view').'.delete',$item)) + + + + + + @else + + @endif +
+
+ total(), ($items->currentPage() - 1) * $items->perPage(), + $items->perPage()); ?> +
+ + + getListFooter() ?> +
+
+@endsection + +@yield('content-table') \ No newline at end of file