FEATURE: add permissions into widgets and fix few bugs

This commit is contained in:
Michal Kváček
2017-08-24 01:54:58 +02:00
parent e0f5cba9a4
commit b35149ad67
23 changed files with 239 additions and 110 deletions
@@ -21,13 +21,10 @@
<li>@lang('admin/widgets.updatedAt'): @date($widgetArea->updated_at)</li>
</ul>
<a href="{{route('widgetareas.edit', ['id' => $widgetArea->id])}}" class="btn btn-secondary col-sm-12">@lang('admin/widgetAreas.editButton')</a>
@if (!empty($associatedWidgetIds))
<h3>@lang('admin/widgets.preview')</h3>
@widgetArea($widgetArea->code)
@endif
@can('update', $widgetArea)
<a href="{{route('widgetareas.edit', ['id' => $widgetArea->id])}}"
class="btn btn-secondary col-sm-12">@lang('admin/widgetAreas.editButton')</a>
@endcan
</div>
</div>
@stop