FEATURE: make widgets not deletable
This commit is contained in:
@@ -1,16 +1,20 @@
|
||||
<?php
|
||||
return [
|
||||
"actions" => "Akce",
|
||||
"associateWidgets" => "Přiřadit widgety do této plochy",
|
||||
"code" => "Unikátní kód (používá se v šablonách pro vykreslení)",
|
||||
"createNew" => "Vytvořit novou plochu",
|
||||
"delete" => "Smazat",
|
||||
"description" => "Popis",
|
||||
"edit" => "Upravuji plochu :name",
|
||||
"editButton" => "Upravit",
|
||||
"editSuccessfull" => "Změny úspěšně uloženy",
|
||||
"editTooltip" => "Upravit plochu pro widgety",
|
||||
"invalidArea" => "Zvolená plocha pro widgety není platná. Vyberte prosím nějakou jinou.",
|
||||
"name" => "Jméno",
|
||||
"new" => "Nová plocha pro widgety",
|
||||
"noEntries" => "Zatím nebyla definována žádná plocha pro widgety.",
|
||||
"notDeletableArea" => "Nelze smazat požadovanou plochu. Tato plocha je nezbytnou součástí nainstalované šablony a její odstranění by znefunkčnilo celou šablonu.",
|
||||
"overview" => "Seznam všech ploch pro widgety",
|
||||
"save" => "Uložit",
|
||||
"successfullyCreated" => "Plocha pro widgety úspěšně vytvořena",
|
||||
|
||||
@@ -6,13 +6,16 @@ return [
|
||||
"associationExists" => "Tento widget již je přiřazený k této ploše pro widgety",
|
||||
"cannotSave" => "Nelze uložit widget. Došlo k nečekané vyjímce. Zpráva: :exception",
|
||||
"createdAt" => "Vytvořeno",
|
||||
"delete" => "Smazat",
|
||||
"deleteAssociation" => "Odstranit",
|
||||
"description" => "Popis",
|
||||
"descriptionOfWidgets" => "Widgety se zobrazují v plochách pro widgety. Tyto plochy je možné umístit na libovolné místo na webu.",
|
||||
"edit" => "Upravit",
|
||||
"editTooltip" => "Upravit tento widget",
|
||||
"missingValue" => "Nelze uložit bez hodnoty pro pole :field",
|
||||
"name" => "Jméno",
|
||||
"noEntries" => "Není dostupný žádný widget.",
|
||||
"notDeletable" => "Nelze smazat widget. Smazání widgetu by melo za následek možné znefunkčnění celé šablony.",
|
||||
"overview" => "Seznam všech widgetů",
|
||||
"preview" => "Náhled",
|
||||
"successfullyAssociated" => "Widget úspěšně vložen do plochy",
|
||||
|
||||
@@ -23,5 +23,8 @@ return [
|
||||
'successfullyDeassociated' => 'Successfully removed from widget area',
|
||||
'widgetExists' => 'Widget :id already exists.',
|
||||
'descriptionOfWidgets' => 'Widgets are displayed in widget areas.',
|
||||
'successfullyDeleted' => 'Widget successfully deleted'
|
||||
'successfullyDeleted' => 'Widget successfully deleted',
|
||||
'delete' => 'Delete',
|
||||
'editTooltip' => 'Edit this widget',
|
||||
'notDeletable' => 'Cannot delete this widget. It is essential part of currenty installed template and therefore cannot be deleted.'
|
||||
];
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
@section('content')
|
||||
@if (count($widgets))
|
||||
<table class="table table-striped full-width">
|
||||
<table class="table table-striped item-list">
|
||||
<tr>
|
||||
<th>@lang('admin/widgets.widgetType')</th>
|
||||
<th>@lang('admin/widgets.name')</th>
|
||||
@@ -18,8 +18,34 @@
|
||||
<td><a href="{{route('widgets.edit', ['id' => $widget->id])}}">{{$widget->name}}</a></td>
|
||||
<td>{{$widget->description}}</td>
|
||||
<td class="text-center">
|
||||
<a href="{{route('widgets.edit', ['id' => $widget->id])}}"><i class="fa fa-fw fa-pencil"></i></a>
|
||||
<a href="{{route('widgets.delete', ['id' => $widget->id])}}"><i class="fa fa-fw remove fa-trash"></i></a>
|
||||
|
||||
|
||||
<div class="item-actions-dropdown">
|
||||
<a class="item-actions-toggle-btn">
|
||||
<span class="inactive"><i class="fa fa-cog"></i></span>
|
||||
<span class="active"><i class="fa fa-chevron-circle-right"></i></span>
|
||||
</a>
|
||||
<div class="item-actions-block">
|
||||
<ul class="item-actions-list">
|
||||
<li>
|
||||
<a class="edit" data-toggle="tooltip"
|
||||
title="@lang('admin/widgets.editTooltip')"
|
||||
href="{{route('widgets.edit', ['id' => $widget->id])}}"><i
|
||||
class="fa fa-pencil"></i></a>
|
||||
</li>
|
||||
|
||||
@if($widget->deletable)
|
||||
<li>
|
||||
<a class="confirm remove" data-toggle="tooltip" title="@lang('admin/widgets.delete')"
|
||||
href="{{route('widgets.delete', ['id' => $widget->id])}}"><i
|
||||
class="fa fa-trash"></i></a>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
Reference in New Issue
Block a user