diff --git a/app/Handlers/BaseHandler.php b/app/Handlers/BaseHandler.php index fb772709..b95184a6 100644 --- a/app/Handlers/BaseHandler.php +++ b/app/Handlers/BaseHandler.php @@ -27,28 +27,25 @@ abstract class BaseHandler implements BaseModuleHandler // create instance of main menu \Menu::create('mainMenu', function ($menu) { - // $menu->route('admin.dashboard', trans('admin/mainMenu.dashboard'), [], 10, ['icon' => 'fa fa-dashboard']); - $menu->dropdown(trans('admin/mainMenu.userManagement'), function ($sub) { - $sub->route('users.new', trans('admin/mainMenu.newUser'), [], 10, ['icon' => 'fa fa-user-plus']); - $sub->route('users.detail', trans('admin/mainMenu.userDetail'), [], 20, ['icon' => 'fa fa-user']); - $sub->route('users.overview', trans('admin/mainMenu.usersOverview'), [], 30, ['icon' => 'fa fa-users']); - }, 20, ['icon' => 'fa fa-users']); + // $menu->route('admin.dashboard', trans('admin/mainMenu.dashboard'), [], 10, ['icon' => 'fa fa-fw fa-dashboard']); + + /** + * Content pages + * + * Submenus can be registered later + */ $menu->dropdown(trans('admin/mainMenu.contentPages'), function ($sub) { - $modules = \App\Models\Module::where('manages_content', true) - ->get(); + $sub->route('content.overview', trans('admin/mainMenu.contentPageOverview'), [], 9999, ['icon' => 'fa fa-fw fa-list']); + }, 20, ['icon' => 'fa fa-fw fa-database']); - if (!empty($modules)) { - $sub->dropdown(trans('admin/mainMenu.newContentPage'), function ($sub) use ($modules) { - $i = 1; - foreach ($modules as $module) { - $sub->route('content.new', trans($module->name), ['moduleId' => $module->id], $i++); - } - }, 10, ['icon' => 'fa fa-plus']); - } + /** + * File manager + */ + $menu->route('upload.overview', trans('admin/mainMenu.fileManager'), [], 40, ['icon' => 'fa fa-fw fa-folder']); - $sub->route('content.overview', trans('admin/mainMenu.contentPageOverview'), [], 20, ['icon' => 'fa fa-list']); - }, 15, ['icon' => 'fa fa-database']); - $menu->route('upload.overview', trans('admin/mainMenu.fileManager'), [], 30, ['icon' => 'fa fa-folder']); + /** + * Widgets and widget areas + */ $menu->dropdown(trans('admin/mainMenu.widgets'), function ($sub) { // create list of all widget types $widgets = WidgetTypes::getWithTranslations(); @@ -59,42 +56,61 @@ abstract class BaseHandler implements BaseModuleHandler foreach ($widgets as $type => $name) { $sub->route('widgets.new', $name, ['type' => $type], $i++); } - }, 10, ['icon' => 'fa fa-plus']); + }, 10, ['icon' => 'fa fa-fw fa-plus']); } - $sub->route('widgets.overview', trans('admin/mainMenu.widgetsOverview'), [], 20, ['icon' => 'fa fa-list']); + $sub->route('widgets.overview', trans('admin/mainMenu.widgetsOverview'), [], 20, ['icon' => 'fa fa-fw fa-list']); // menu for widget areas $sub->dropdown(trans('admin/mainMenu.widgetAreas'), function ($sub) { - $sub->route('widgetareas.new', trans('admin/mainMenu.newWidgetArea'), [], 1, ['icon' => 'fa fa-plus']); - $sub->route('widgetareas.overview', trans('admin/mainMenu.widgetAreaOverview'), [], 2, ['icon' => 'fa fa-list']); - }, 50, ['icon' => 'fa fa-object-group']); - }, 28, ['icon' => 'fa fa-gears']); + $sub->route('widgetareas.new', trans('admin/mainMenu.newWidgetArea'), [], 1, ['icon' => 'fa fa-fw fa-plus']); + $sub->route('widgetareas.overview', trans('admin/mainMenu.widgetAreaOverview'), [], 2, ['icon' => 'fa fa-fw fa-list']); + }, 50, ['icon' => 'fa fa-fw fa-object-group']); + }, 50, ['icon' => 'fa fa-fw fa-puzzle-piece']); + /** + * Templates + */ $templatePaths = TemplatePathsHumanReadableRootOnly::getWithTranslations(); - if (!empty($templatePaths)) { $menu->dropdown(trans('admin/mainMenu.templates'), function ($sub) use ($templatePaths) { $i = 1; foreach ($templatePaths as $id => $name) { $sub->route('templates.overview', $name, ['id' => $id], $i++); } - }, 29, ['icon' => 'fa fa-folder-open']); + }, 60, ['icon' => 'fa fa-fw fa-file-code-o']); } - // $menu->dropdown(trans('admin/mainMenu.customFields'), function ($sub) { - // $sub->route('customfields.new', trans('admin/mainMenu.customFieldsNew'), [], 10, ['icon' => 'fa fa-code']); - // $sub->route('customfields.overview', trans('admin/mainMenu.customFieldsOverview'), [], 50, ['icon' => 'fa fa-code-fork']); - // }, 30, ['icon' => 'fa fa-code']); - $menu->route('log.overview', trans('admin/mainMenu.actionLog'), [], 40, ['icon' => 'fa fa-history']); - $menu->route('settings.overview', trans('admin/mainMenu.settings'), [], 50, ['icon' => 'fa fa-gear']); + + /** + * Divide system entries and other links in menu + */ + $menu->addDivider(9999); + + $menu->dropdown(trans('admin/mainMenu.system'), function ($sub) { + $sub->dropdown(trans('admin/mainMenu.userManagement'), function ($sub) { + $sub->route('users.new', trans('admin/mainMenu.newUser'), [], 10, ['icon' => 'fa fa-fw fa-user-plus']); + $sub->route('users.overview', trans('admin/mainMenu.usersOverview'), [], 30, ['icon' => 'fa fa-fw fa-users']); + }, 20, ['icon' => 'fa fa-fw fa-users']); + + // $menu->dropdown(trans('admin/mainMenu.customFields'), function ($sub) { + // $sub->route('customfields.new', trans('admin/mainMenu.customFieldsNew'), [], 10, ['icon' => 'fa fa-fw fa-code']); + // $sub->route('customfields.overview', trans('admin/mainMenu.customFieldsOverview'), [], 50, ['icon' => 'fa fa-fw fa-code-fork']); + // }, 30, ['icon' => 'fa fa-fw fa-code']); + + $sub->route('log.overview', trans('admin/mainMenu.actionLog'), [], 70, ['icon' => 'fa fa-fw fa-history']); + $sub->route('settings.overview', trans('admin/mainMenu.settings'), [], 80, ['icon' => 'fa fa-fw fa-gear']); + }, 10000, ['icon' => 'fa fa-fw fa-gear']); + + }); // order // create menu with user profile \Menu::create('profileMenu', function ($menu) { - $menu->route('users.detail', trans('admin/userManagement.profile')); - $menu->route('logout', trans('admin/common.logout')); + $menu->route('users.detail', trans('admin/userManagement.profile'), [], 10, ['icon' => 'fa fa-fw fa-user icon']); + $menu->addDivider(999); + $menu->route('logout', trans('admin/common.logout'), [], 1000, ['icon' => 'fa fa-fw fa-power-off icon']); }); } } \ No newline at end of file diff --git a/app/Http/Controllers/Admin/CreateNewWidget.php b/app/Http/Controllers/Admin/CreateNewWidget.php index bc8d7c21..405d6739 100644 --- a/app/Http/Controllers/Admin/CreateNewWidget.php +++ b/app/Http/Controllers/Admin/CreateNewWidget.php @@ -3,13 +3,10 @@ namespace App\Http\Controllers\Admin; use App\Http\Controllers\Controller; -use App\Http\Requests; use App\Http\Requests\NewWidgetRequest; use App\Models\Widget; use App\Models\WidgetType; use App\Widgets\Exceptions\MissingParameterException; -use Illuminate\Support\Facades\Auth; -use Illuminate\Support\Facades\Event; class CreateNewWidget extends Controller { @@ -64,7 +61,7 @@ class CreateNewWidget extends Controller // redirect with success notification return redirect() - ->route('widgets.new', ['type' => $type]) + ->route('widgets.overview') ->with('success', trans('admin/widgets.successfullyCreated')); } diff --git a/app/Http/Controllers/Admin/EditWidget.php b/app/Http/Controllers/Admin/EditWidget.php index b3a10148..61cf8fd6 100644 --- a/app/Http/Controllers/Admin/EditWidget.php +++ b/app/Http/Controllers/Admin/EditWidget.php @@ -8,6 +8,13 @@ use Illuminate\Support\Facades\Event; class EditWidget extends Controller { + /** + * Render edit form + * + * @param $id + * + * @return mixed + */ public function getEdit($id) { $widget = Widget::findOrFail($id); @@ -17,6 +24,14 @@ class EditWidget extends Controller return call_user_func([$presenter, 'renderEditForm'], $widget); } + /** + * Save changes into database + * + * @param EditWidgetRequest $request + * @param $widget + * + * @return \Illuminate\Http\RedirectResponse + */ public function postEdit(EditWidgetRequest $request, $widget) { // create new widget @@ -53,6 +68,25 @@ class EditWidget extends Controller ->with('success', trans('admin/widgets.successfullyEdited')); } + /** + * Deletes widget + * + * @param $id + * + * @return \Illuminate\Http\RedirectResponse + */ + public function deleteWidget($id) { + // create new widget + $widget = Widget::findOrFail($id); + + $widget->delete(); + + // redirect with success notification + return redirect() + ->route('widgets.overview') + ->with('success', trans('admin/widgets.successfullyDeleted')); + } + private function invalidWidget($error) { return redirect() diff --git a/app/Http/routes.php b/app/Http/routes.php index 942f6482..d1913d45 100644 --- a/app/Http/routes.php +++ b/app/Http/routes.php @@ -176,6 +176,10 @@ Route::group([ Route::get('widgets/edit/{id}', 'EditWidget@getEdit') ->name('widgets.edit'); + // delete widget settings + Route::get('widgets/delete/{id}', 'EditWidget@deleteWidget') + ->name('widgets.delete'); + Route::post('widgets/edit/{id}', 'EditWidget@postEdit') ->name('widgets.postEdit'); diff --git a/app/MenuPresenters/ProfileMenuPresenter.php b/app/MenuPresenters/ProfileMenuPresenter.php new file mode 100644 index 00000000..1a98cbf8 --- /dev/null +++ b/app/MenuPresenters/ProfileMenuPresenter.php @@ -0,0 +1,61 @@ +' . PHP_EOL; + } + + /** + * {@inheritdoc } + */ + public function getCloseTagWrapper() + { + return PHP_EOL . '' . PHP_EOL; + } + + /** + * {@inheritdoc } + */ + public function getMenuWithoutDropdownWrapper($item) + { + return '' . $item->getIcon() . ' ' . $item->title . '' . PHP_EOL; + } + + /** + * {@inheritdoc } + */ + public function getActiveState(MenuItem $item) + { + return null; + } + + /** + * {@inheritdoc } + */ + public function getDividerWrapper() + { + return '' . PHP_EOL; + } + + public function getMultiLevelDropdownWrapper($item) + { + return null;//$this->getMenuWithDropDownWrapper($item); + } + + /** + * {@inheritdoc } + */ + public function getMenuWithDropDownWrapper($item) + { + return null; + } +} \ No newline at end of file diff --git a/app/Widgets/HtmlCode/Presenters/HtmlCode.php b/app/Widgets/HtmlCode/Presenters/HtmlCode.php index 1fa62590..570440d6 100644 --- a/app/Widgets/HtmlCode/Presenters/HtmlCode.php +++ b/app/Widgets/HtmlCode/Presenters/HtmlCode.php @@ -35,7 +35,11 @@ class HtmlCode implements WidgetRenderer */ public static function renderAddForm(WidgetType $type) { - return view('admin.widgets.htmlCode.new', ['type' => $type]); + return view('admin.widgets.htmlCode.new', [ + 'type' => $type, + 'widget' => new Widget(), + 'settings' => new \stdClass() + ]); } /** diff --git a/config/menus.php b/config/menus.php index 920d1843..167122b3 100644 --- a/config/menus.php +++ b/config/menus.php @@ -13,6 +13,7 @@ return [ 'foundation-dropdown' => 'App\MenuPresenters\FoundationDropdownMenuPresenter', 'foundation-dropdown-initialized' => 'App\MenuPresenters\FoundationInitializedDropdownMenuPresenter', 'metismenu' => 'App\MenuPresenters\MetismenuPresenter', + 'profile-menu' => 'App\MenuPresenters\ProfileMenuPresenter', ], 'ordering' => true, diff --git a/modules/Categories/Handlers/Categories.php b/modules/Categories/Handlers/Categories.php index 67b26f04..5b7c9e11 100644 --- a/modules/Categories/Handlers/Categories.php +++ b/modules/Categories/Handlers/Categories.php @@ -33,7 +33,7 @@ class Categories extends BaseHandler $menu->dropdown(trans('categories::categories.name'), function ($sub) { $sub->route('categories.new', trans('categories::categories.new'), [], 10, ['icon' => 'fa fa-fw fa-plus']); $sub->route('categories.overview', trans('categories::categories.overview'), [], 30, ['icon' => 'fa fa-fw fa-tags']); - }, 70, ['icon' => 'fa fa-fw fa-tags']); + }, 55, ['icon' => 'fa fa-fw fa-tags']); } /** diff --git a/modules/ContactForm/Handlers/ContactForm.php b/modules/ContactForm/Handlers/ContactForm.php index 79981168..4c7c4a85 100644 --- a/modules/ContactForm/Handlers/ContactForm.php +++ b/modules/ContactForm/Handlers/ContactForm.php @@ -148,7 +148,9 @@ class ContactForm extends Handler { // register links in admin menu $menu = \Menu::instance('mainMenu'); - $menu->dropdown(trans('contactform::admin/adminMenu.contactForm'), function ($submenu) use ($user) { + + $submenu = $menu->whereTitle(trans('admin/mainMenu.contentPages')); + $submenu->dropdown(trans('contactform::admin/adminMenu.contactForm'), function ($submenu) use ($user) { $submenu->route('content.new', trans('contactform::admin/adminMenu.new'), ['moduleId' => self::getModuleId()], 10, ['icon' => 'fa fa-plus']); $submenu->route('content.overview', trans('contactform::admin/adminMenu.overview'), ['moduleId' => self::getModuleId()], 20, ['icon' => 'fa fa-list']); // $submenu->route('emails.sent', trans('contactform::admin/adminMenu.sentMessages'), [], 30, ['icon' => 'fa fa-send']); diff --git a/modules/Gallery/Handlers/Gallery.php b/modules/Gallery/Handlers/Gallery.php index 3de73f9e..59a1f502 100644 --- a/modules/Gallery/Handlers/Gallery.php +++ b/modules/Gallery/Handlers/Gallery.php @@ -185,7 +185,13 @@ class Gallery implements AppHandler */ public static function registerAdminMenu(User $user) { - // nothing to register + $menu = \Menu::instance('mainMenu'); + $submenu = $menu->whereTitle(trans('admin/mainMenu.contentPages')); + $submenu->dropdown(trans('gallery::module.name'), function ($submenu) use ($user) { + $submenu->route('content.new', trans('gallery::admin/adminMenu.new'), ['moduleId' => self::getModuleId()], 10, ['icon' => 'fa fa-plus']); + $submenu->route('content.overview', trans('gallery::admin/adminMenu.overview'), ['moduleId' => self::getModuleId()], 20, ['icon' => 'fa fa-list']); + // $submenu->route('emails.sent', trans('contactform::admin/adminMenu.sentMessages'), [], 30, ['icon' => 'fa fa-send']); + }, 25, ['icon' => 'fa fa-camera']); } /** diff --git a/modules/Gallery/Resources/lang/cs/admin/adminMenu.php b/modules/Gallery/Resources/lang/cs/admin/adminMenu.php index c683771a..91299728 100644 --- a/modules/Gallery/Resources/lang/cs/admin/adminMenu.php +++ b/modules/Gallery/Resources/lang/cs/admin/adminMenu.php @@ -1,4 +1,6 @@ "Nová galerie", +"overview" => "Všechny galerie", "templatePath" => "Šablony galerie", ]; diff --git a/modules/Gallery/Resources/lang/en/admin/adminMenu.php b/modules/Gallery/Resources/lang/en/admin/adminMenu.php index 77d39e71..099f852a 100644 --- a/modules/Gallery/Resources/lang/en/admin/adminMenu.php +++ b/modules/Gallery/Resources/lang/en/admin/adminMenu.php @@ -1,4 +1,6 @@ 'Gallery templates' + 'templatePath' => 'Gallery templates', + 'new' => 'New gallery', + 'overview' => 'All galleries' ]; \ No newline at end of file diff --git a/modules/StaticPages/Handlers/StaticPage.php b/modules/StaticPages/Handlers/StaticPage.php index dfe58940..011f7d56 100644 --- a/modules/StaticPages/Handlers/StaticPage.php +++ b/modules/StaticPages/Handlers/StaticPage.php @@ -16,7 +16,9 @@ class StaticPage extends Handler // register links in admin menu $menu = \Menu::instance('mainMenu'); - $menu->dropdown(trans('staticpages::adminMenu.staticPages'), function ($submenu) use ($user) { + $submenu = $menu->whereTitle(trans('admin/mainMenu.contentPages')); + + $submenu->dropdown(trans('staticpages::adminMenu.staticPages'), function ($submenu) use ($user) { $submenu->route('content.new', trans('staticpages::adminMenu.new'), ['moduleId' => self::getModuleId()], 10, ['icon' => 'fa fa-plus']); $submenu->route('content.overview', trans('staticpages::adminMenu.overview'), ['moduleId' => self::getModuleId()], 20, ['icon' => 'fa fa-list']); }, 15, ['icon' => 'fa fa-newspaper-o']); diff --git a/resources/assets/admin/css/vendor.css b/resources/assets/admin/css/vendor.css index 7fa4fbc2..8e25735d 100644 --- a/resources/assets/admin/css/vendor.css +++ b/resources/assets/admin/css/vendor.css @@ -14331,4 +14331,22 @@ img { left: -14px; right: auto; } -} \ No newline at end of file +} + +.sidebar .divider { + height: 10px; +} + +.sidebar .nav > li > ul > li a { + padding-left: 30px !important; +} + +.ace-editor-container { + position: relative; +} +.ace-editor { + position: absolute !important; + width: 100%; + height: 100%; + bottom: 0; +} diff --git a/resources/lang/cs/admin/contents.php b/resources/lang/cs/admin/contents.php index 904278d4..976374c2 100644 --- a/resources/lang/cs/admin/contents.php +++ b/resources/lang/cs/admin/contents.php @@ -1,49 +1,56 @@ "Domovská stránka", - "appearance" => "Vzhled", - "basicInfo" => "Základní informace", - "category" => "Kategorie", - "content" => "Obsah stránky", - "deletePage" => "Smazat", - "edit" => "Editace :name", - "editPlain" => "Editace", - "field_meta_description" => "Popis stránky", - "field_meta_keywords" => "Klíčová slova", - "field_published_from" => "Publikováno od", - "field_published_to" => "Publikováno do", - "field_title" => "Titulek stránky", - "field_url" => "URL", - "files" => "Soubory", - "homepageProtected" => "Domovská stránka je zobrazena jen pro přihlášené uživatele. Toto může i nemusí být chyba.", - "homepageSetup" => "Domovská stránka úspěšně nastavena.", - "invalidPage" => "Požadovaná stránka neexistuje.", - "invalidStatus" => "Nelze změnit stav stránky na něco nedefinovaného.", - "lockUrl" => "Zachovat URL?", - "makeDraft" => "Převést na koncept", - "makeProtected" => "Zobrazit jen pro přihlášené", - "makePublic" => "Publikovat", - "metaOptions" => "Meta informace", - "new" => "Vytvořit nový :name", - "noHomepage" => "Domovská stránka není nastavena (a nebo je nastavena jako Koncept)! Vyberte prosím jinou stránku, nebo stávající publikujte.", - "noPagesAvailable" => "Nejsou dostupné žádné stránky. Pro zobrazení přehledu nejprve nějakou vytvořte.", - "noParentPage" => "-- Nadřazená stránka nevybrána --", - "nothingToEdit" => "Nebyly provedeny žádné změny, proto nedošlo k editaci.", - "overview" => "Seznam všech obsahových stránek", - "pageDeleted" => "Stránka :name (:url) úspěšně smazána.", - "parentPage" => "Nadřazená stránka", - "publicationOptions" => "Nastavení publikace", - "save" => "Uložit", - "setHomepage" => "Nastavit jako domovskou stránku", - "showHistory" => "Historie (:count)", - "statusChanged" => "Stav úspěšně změněn.", - "status_deleted" => "Smazáno", - "status_draft" => "Koncept", - "status_protected" => "Jen pro přihlášené", - "status_public" => "Veřejné", - "successfullyCreated" => "Stránka úspěšně vytvořena", - "successfullyEdited" => "Úprava úspěšně uložena.", - "template" => "Šablona pro tuto stránku", - "uploadTitleImage" => "Nahrát titulní obrázek", - "viewPage" => "Zobrazit", +"actions" => "Akce", +"alreadyHomepage" => "Domovská stránka", +"appearance" => "Vzhled", +"basicInfo" => "Základní informace", +"category" => "Kategorie", +"content" => "Obsah stránky", +"createdAt" => "Vytvořeno", +"deletePage" => "Smazat", +"edit" => "Editace :name", +"editPlain" => "Editace", +"field_meta_description" => "Popis stránky", +"field_meta_keywords" => "Klíčová slova", +"field_published_from" => "Publikováno od", +"field_published_to" => "Publikováno do", +"field_title" => "Titulek stránky", +"field_url" => "URL", +"files" => "Soubory", +"homepageProtected" => "Domovská stránka je zobrazena jen pro přihlášené uživatele. Toto může i nemusí být chyba.", +"homepageSetup" => "Domovská stránka úspěšně nastavena.", +"invalidPage" => "Požadovaná stránka neexistuje.", +"invalidStatus" => "Nelze změnit stav stránky na něco nedefinovaného.", +"lockUrl" => "Zachovat URL?", +"makeDraft" => "Převést na koncept", +"makeProtected" => "Zobrazit jen pro přihlášené", +"makePublic" => "Publikovat", +"metaOptions" => "Meta informace", +"moduleName" => "Modul", +"new" => "Vytvořit nový :name", +"noCategory" => "-- Žádná kategorie --", +"noHomepage" => "Domovská stránka není nastavena (a nebo je nastavena jako Koncept)! Vyberte prosím jinou stránku, nebo stávající publikujte.", +"noPagesAvailable" => "Nejsou dostupné žádné stránky. Pro zobrazení přehledu nejprve nějakou vytvořte.", +"noParentPage" => "-- Nadřazená stránka nevybrána --", +"noTemplates" => "Nelze vytvořit stránku. Pro tento modul neexistuje žádná šablona, která by šla použít pro vykreslení obsahu.", +"nothingToEdit" => "Nebyly provedeny žádné změny, proto nedošlo k editaci.", +"overview" => "Seznam všech obsahových stránek", +"pageDeleted" => "Stránka :name (:url) úspěšně smazána.", +"parentPage" => "Nadřazená stránka", +"publicationOptions" => "Nastavení publikace", +"save" => "Uložit", +"setHomepage" => "Nastavit jako domovskou stránku", +"showHistory" => "Historie (:count)", +"status" => "Stav", +"statusChanged" => "Stav úspěšně změněn.", +"status_deleted" => "Smazáno", +"status_draft" => "Koncept", +"status_protected" => "Jen pro přihlášené", +"status_public" => "Veřejné", +"successfullyCreated" => "Stránka úspěšně vytvořena", +"successfullyEdited" => "Úprava úspěšně uložena.", +"template" => "Šablona pro tuto stránku", +"title" => "Titulek", +"uploadTitleImage" => "Nahrát titulní obrázek", +"viewPage" => "Zobrazit", ]; diff --git a/resources/lang/cs/admin/history.php b/resources/lang/cs/admin/history.php index f263f9ba..2faef770 100644 --- a/resources/lang/cs/admin/history.php +++ b/resources/lang/cs/admin/history.php @@ -1,26 +1,27 @@ "Zpět na editaci obsahu", - "backToOverview" => "Zpět na přehled historie", - "changedFromTo" => "Změna z :from na :to", - "columnCategory" => "Kategorie", - "columnFile" => "Přiřazené soubory", - "columnIs_homepage" => "Domovská stránka", - "columnMetaDescription" => "Popis", - "columnMetaKeywords" => "Klíčová slova", - "columnPageContent" => "Obsah stránky", - "columnParentPage" => "Nadřazená stránka", - "columnStatus" => "Viditelnost stránky", - "columnTemplate" => "Šablona", - "columnTitle" => "Titulek", - "columnTitlePhotoFilename" => "Titulní obrázek", - "columnUrl" => "URL", - "deletedFile" => "Odebrán soubor :file.", - "diff" => "Rozdíl", - "diffPageName" => "Rozdíl v :column", - "emptyValue" => "nic", - "numOfChanges" => "Jedna změna|:count změny|:count změn", - "pageName" => "Historie :name", - "setupAsHomepage" => "Nastaveno jako domovská stránka", - "uploadedFile" => "Nahrán soubor :file.", +"backToEdit" => "Zpět na editaci obsahu", +"backToOverview" => "Zpět na přehled historie", +"changedAt" => "Změna z :time", +"changedFromTo" => "Změna z :from na :to", +"columnCategory" => "Kategorie", +"columnFile" => "Přiřazené soubory", +"columnIs_homepage" => "Domovská stránka", +"columnMetaDescription" => "Popis", +"columnMetaKeywords" => "Klíčová slova", +"columnPageContent" => "Obsah stránky", +"columnParentPage" => "Nadřazená stránka", +"columnStatus" => "Viditelnost stránky", +"columnTemplate" => "Šablona", +"columnTitle" => "Titulek", +"columnTitlePhotoFilename" => "Titulní obrázek", +"columnUrl" => "URL", +"deletedFile" => "Odebrán soubor :file.", +"diff" => "Rozdíl", +"diffPageName" => "Rozdíl v :column", +"emptyValue" => "nic", +"numOfChanges" => "Jedna změna|:count změny|:count změn", +"pageName" => "Historie :name", +"setupAsHomepage" => "Nastaveno jako domovská stránka", +"uploadedFile" => "Nahrán soubor :file.", ]; diff --git a/resources/lang/cs/admin/mainMenu.php b/resources/lang/cs/admin/mainMenu.php index c53999ce..08f58180 100644 --- a/resources/lang/cs/admin/mainMenu.php +++ b/resources/lang/cs/admin/mainMenu.php @@ -1,29 +1,30 @@ "Záznam událostí", - "assignWidgets" => "Přidat widget", - "contentPageOverview" => "Přehled", - "contentPages" => "Stránky", - "customFields" => "Uživatelská pole", - "customFieldsNew" => "Nové pole", - "customFieldsOverview" => "Přehled", - "dashboard" => "Nástěnka", - "directories" => "Adresáře", - "fileManager" => "Správce souborů", - "newContentPage" => "Nová stránka", - "newUser" => "Nový uživatel", - "newWidget" => "Nový widget", - "newWidgetArea" => "Nová plocha", - "settings" => "Nastavení", - "templates" => "Šablony", - "uploadFile" => "Nový soubor", - "uploadImage" => "Nový obrázek", - "uploadedFiles" => "Přehled", - "userDetail" => "Můj profil", - "userManagement" => "Uživatelé", - "usersOverview" => "Přehled", - "widgetAreaOverview" => "Seznam všech ploch pro widgety", - "widgetAreas" => "Plochy pro widgety", - "widgets" => "Widgety", - "widgetsOverview" => "Všechny widgety", +"actionLog" => "Záznam událostí", +"assignWidgets" => "Přidat widget", +"contentPageOverview" => "Přehled", +"contentPages" => "Stránky", +"customFields" => "Uživatelská pole", +"customFieldsNew" => "Nové pole", +"customFieldsOverview" => "Přehled", +"dashboard" => "Nástěnka", +"directories" => "Adresáře", +"fileManager" => "Správce souborů", +"newContentPage" => "Nová stránka", +"newUser" => "Nový uživatel", +"newWidget" => "Nový widget", +"newWidgetArea" => "Nová plocha", +"settings" => "Nastavení", +"system" => "Systém", +"templates" => "Šablony", +"uploadFile" => "Nový soubor", +"uploadImage" => "Nový obrázek", +"uploadedFiles" => "Přehled", +"userDetail" => "Můj profil", +"userManagement" => "Uživatelé", +"usersOverview" => "Přehled", +"widgetAreaOverview" => "Seznam všech ploch pro widgety", +"widgetAreas" => "Plochy pro widgety", +"widgets" => "Widgety", +"widgetsOverview" => "Všechny widgety", ]; diff --git a/resources/lang/cs/admin/userManagement.php b/resources/lang/cs/admin/userManagement.php index 759360f7..f5335421 100644 --- a/resources/lang/cs/admin/userManagement.php +++ b/resources/lang/cs/admin/userManagement.php @@ -1,28 +1,30 @@ "Přidat nového uživatele", - "allStatuses" => "Všechny", - "detail" => "Detaily uživatele :name (:email)", - "editUser" => "Editace uživatele :name (:email)", - "email" => "E-mail", - "name" => "Celé jméno", - "noActions" => "Uživatel zatím v systému nic neudělal.", - "noUsers" => "Žádní uživatelé.", - "overview" => "Seznam všech uživatelů", - "password" => "Heslo", - "passwordLeaveEmpty" => "Nevyplňujte, pokud nechcete změnit heslo.", - "profile" => "Profil uživatele", - "register" => "Vytvořit uživatele", - "registrationSuccessfull" => "Nový úživatel úspěšně přidán.", - "role_admin" => "Administrátor", - "role_editor" => "Editor", - "role_visitor" => "Návštěvník", - "roles" => "Prosím, zvolte roli uživatele", - "status" => "Stav", - "status_active" => "Aktivní", - "status_blocked" => "Zablokovaný", - "status_deleted" => "Smazaný", - "update" => "Upravit informace", - "userSuccessfullyEdited" => "Uživatel úspěšně upraven.", - "usersActions" => "Akce uživatele", +"addNewUser" => "Přidat nového uživatele", +"allStatuses" => "Všechny", +"detail" => "Detaily uživatele :name (:email)", +"edit" => "Upravit uživatele", +"editUser" => "Editace uživatele :name (:email)", +"email" => "E-mail", +"name" => "Celé jméno", +"noActions" => "Uživatel zatím v systému nic neudělal.", +"noUsers" => "Žádní uživatelé.", +"overview" => "Seznam všech uživatelů", +"password" => "Heslo", +"passwordLeaveEmpty" => "Nevyplňujte, pokud nechcete změnit heslo.", +"profile" => "Profil uživatele", +"register" => "Vytvořit uživatele", +"registrationSuccessfull" => "Nový úživatel úspěšně přidán.", +"role_admin" => "Administrátor", +"role_editor" => "Editor", +"role_visitor" => "Návštěvník", +"roles" => "Prosím, zvolte roli uživatele", +"status" => "Stav", +"status_active" => "Aktivní", +"status_blocked" => "Zablokovaný", +"status_deleted" => "Smazaný", +"update" => "Upravit informace", +"userDetail" => "Informace", +"userSuccessfullyEdited" => "Uživatel úspěšně upraven.", +"usersActions" => "Akce uživatele", ]; diff --git a/resources/lang/cs/admin/widgets.php b/resources/lang/cs/admin/widgets.php index 62f38b73..164c4dbc 100644 --- a/resources/lang/cs/admin/widgets.php +++ b/resources/lang/cs/admin/widgets.php @@ -8,6 +8,7 @@ return [ "createdAt" => "Vytvořeno", "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", "missingValue" => "Nelze uložit bez hodnoty pro pole :field", "name" => "Jméno", @@ -17,6 +18,7 @@ return [ "successfullyAssociated" => "Widget úspěšně vložen do plochy", "successfullyCreated" => "Widget úspěšně vytvořen.", "successfullyDeassociated" => "Úspěšně odebrán widget z plochy", +"successfullyDeleted" => "Widget úspěšně smazán", "successfullyEdited" => "Widget úspěšně upraven.", "unassociatedWidgets" => "Seznam nepřiřazených widgetů", "updatedAt" => "Poslední úprava", diff --git a/resources/lang/cs/widgets/htmlCode.php b/resources/lang/cs/widgets/htmlCode.php index edb2a49b..593c78e7 100644 --- a/resources/lang/cs/widgets/htmlCode.php +++ b/resources/lang/cs/widgets/htmlCode.php @@ -1,15 +1,16 @@ "HTML kód", -"containerClass" => "HTML třída pro obalový element tohoto widgetu", -"createNew" => "Vytvořit nový HTML widget", -"description" => "Popis", -"edit" => "Edituji widget :name", -"editExisting" => "Upravit widget", -"name" => "Jméno", -"new" => "Vytvořit nový HTML widget", -"preview" => "Náhled", -"successfullyEdited" => "Widget úspěšně upraven", -"widgetDescription" => "Jednoduchý widget pro vkládání HTML kódu do obsahu stránky.", -"widgetName" => "HTML kód", + "code" => "HTML kód", + "containerClass" => "HTML třída pro obalový element tohoto widgetu", + "createNew" => "Vytvořit nový HTML widget", + "description" => "Popis", + "edit" => "Edituji widget :name", + "editExisting" => "Upravit widget", + "name" => "Jméno", + "new" => "Vytvořit nový HTML widget", + "preview" => "Náhled", + "successfullyEdited" => "Widget úspěšně upraven", + "widgetDescription" => "Jednoduchý widget pro vkládání HTML kódu do obsahu stránky.", + "widgetName" => "HTML kód", + 'save' => 'Uložit' ]; diff --git a/resources/lang/en/admin/mainMenu.php b/resources/lang/en/admin/mainMenu.php index 2029511d..c4f54b48 100644 --- a/resources/lang/en/admin/mainMenu.php +++ b/resources/lang/en/admin/mainMenu.php @@ -26,5 +26,6 @@ return [ 'contentPages' => 'Web content', 'contentPageOverview' => 'Overview', 'newContentPage' => 'New content', - 'directories' => 'Directories' + 'directories' => 'Directories', + 'system' => 'System', ]; \ No newline at end of file diff --git a/resources/lang/en/admin/widgets.php b/resources/lang/en/admin/widgets.php index b64cd259..c612f6c0 100644 --- a/resources/lang/en/admin/widgets.php +++ b/resources/lang/en/admin/widgets.php @@ -21,6 +21,7 @@ return [ 'successfullyAssociated' => 'Association successfull', 'associationDoesNotExists' => 'This association does not exist', 'successfullyDeassociated' => 'Successfully removed from widget area', - 'widgetExists' => 'Widget :id already exists.' - + 'widgetExists' => 'Widget :id already exists.', + 'descriptionOfWidgets' => 'Widgets are displayed in widget areas.', + 'successfullyDeleted' => 'Widget successfully deleted' ]; \ No newline at end of file diff --git a/resources/lang/en/widgets/htmlCode.php b/resources/lang/en/widgets/htmlCode.php index 5d0ab747..3c400b6c 100644 --- a/resources/lang/en/widgets/htmlCode.php +++ b/resources/lang/en/widgets/htmlCode.php @@ -11,5 +11,6 @@ return [ 'createNew' => 'Create new HTML code widget', 'editExisting' => 'Update widget', 'successfullyEdited' => 'Widget successfully modified', - 'preview' => 'Preview' + 'preview' => 'Preview', + 'save' => 'Save' ]; \ No newline at end of file diff --git a/resources/views/admin/layoutWithNavigation.blade.php b/resources/views/admin/layoutWithNavigation.blade.php index ebf5e125..284b2063 100644 --- a/resources/views/admin/layoutWithNavigation.blade.php +++ b/resources/views/admin/layoutWithNavigation.blade.php @@ -47,15 +47,16 @@ style="background-image: url('{{Auth::user()->gravatar(40)}}')"> {{Auth::user()->getAttribute('name')}} - + + {!! Menu::render('profileMenu', 'profile-menu') !!} + + {{----}} diff --git a/resources/views/admin/snippets/aceEditor.blade.php b/resources/views/admin/snippets/aceEditor.blade.php index bd7f7aad..9e3b7b14 100644 --- a/resources/views/admin/snippets/aceEditor.blade.php +++ b/resources/views/admin/snippets/aceEditor.blade.php @@ -1,5 +1,5 @@
- +
{{$value}}
diff --git a/resources/views/admin/widgets/area/edit.blade.php b/resources/views/admin/widgets/area/edit.blade.php new file mode 100644 index 00000000..15c073f9 --- /dev/null +++ b/resources/views/admin/widgets/area/edit.blade.php @@ -0,0 +1,8 @@ +@extends('admin.layoutWithNavigation') + +@section('pageHeading', @trans('admin/widgetAreas.edit', ['name' => $area->name])) + +@section('content') + @include('admin.widgets.area.form', ['action' => {{route('widgetareas.postEdit', ['id' => $area->id])}}]) +@stop + diff --git a/resources/views/admin/widgets/area/form.blade.php b/resources/views/admin/widgets/area/form.blade.php new file mode 100644 index 00000000..971dd332 --- /dev/null +++ b/resources/views/admin/widgets/area/form.blade.php @@ -0,0 +1,36 @@ +
+ {!! csrf_field() !!} + + + + + + + +
\ No newline at end of file diff --git a/resources/views/admin/widgets/area/new.blade.php b/resources/views/admin/widgets/area/new.blade.php new file mode 100644 index 00000000..5a2aa7d4 --- /dev/null +++ b/resources/views/admin/widgets/area/new.blade.php @@ -0,0 +1,7 @@ +@extends('admin.layoutWithNavigation') + +@section('pageHeading', @trans('admin/widgetAreas.new')) + +@section('content') + @include('admin.widgets.area.form', ['action' => route('widgetareas.postNew')]) +@endsection diff --git a/resources/views/admin/widgets/area/overview.blade.php b/resources/views/admin/widgets/area/overview.blade.php new file mode 100644 index 00000000..7db0f387 --- /dev/null +++ b/resources/views/admin/widgets/area/overview.blade.php @@ -0,0 +1,43 @@ +@extends('admin.layoutWithNavigation') + +@section('pageHeading', @trans('admin/widgetAreas.overview')) + +@section('content') +
+ @if (count($areas) > 0) + + + + + + + + @foreach($areas as $area) + + + + + + + @endforeach +
@lang('admin/widgetAreas.name')@lang('admin/widgetAreas.code')@lang('admin/widgetAreas.description')@lang('admin/widgetAreas.actions')
{{$area->name}}{{$area->code}}{{str_limit($area->description, 100)}} + + + +
+ @else + @lang('admin/widgetAreas.noEntries') + @endif +
+
+

@lang('admin/widgetAreas.new')

+ + @include('admin.widgets.area.newForm', ['hideMessages' => true]) +
+ + + +@stop \ No newline at end of file diff --git a/resources/views/admin/widgets/association.blade.php b/resources/views/admin/widgets/association.blade.php new file mode 100644 index 00000000..624b58b5 --- /dev/null +++ b/resources/views/admin/widgets/association.blade.php @@ -0,0 +1,79 @@ +@extends('admin.layout') + +@section('pageName', @trans('admin/widgets.overview')) + +@section('content') +
+ + @if (session('success')) +
+ {{ session('success') }} +
+ @endif + + @if (session('error')) +
+ {{ session('error') }} +
+ @endif + +
+ +

@lang('admin/widgets.overview')

+ + @forelse($widgets as $widget) +
+
+

{{str_limit($widget->name, 20)}}

+

+ {{trans(call_user_func([$widget->widget_type_handler, 'getName']))}} +

+

+ {{str_limit($widget->description, 150)}} +

+ +
+ + + @if (in_array($widget->id, $associatedWidgetIds)) + + + + @else + + @endif +
+
+
+ @empty + @lang('admin/widgets.noEntries') + @endforelse + +
+ {!! $widgets->render() !!} +
+
+
+

{{$widgetArea->name}}

+ +

+ {{$widgetArea->description}} +

+ + + + @lang('admin/widgetAreas.editButton') + + @if (!empty($associatedWidgetIds)) +

@lang('admin/widgets.preview')

+ + @widgetArea($widgetArea->code) + @endif +
+
+@stop \ No newline at end of file diff --git a/resources/views/admin/widgets/htmlCode/edit.blade.php b/resources/views/admin/widgets/htmlCode/edit.blade.php new file mode 100644 index 00000000..e91e4a74 --- /dev/null +++ b/resources/views/admin/widgets/htmlCode/edit.blade.php @@ -0,0 +1,15 @@ +@extends('admin.layoutWithNavigation') + +@section('pageHeading', @trans('widgets/htmlCode.edit', ['name' => $widget->name])) + +@section('content') +
+ @include('admin.widgets.htmlCode.form', ['action' => route('widgets.postEdit', ['id' => $widget->id])]) +
+
+

@lang('widgets/htmlCode.preview')

+ + @widgetPreview($widget) +
+@stop + diff --git a/resources/views/admin/widgets/htmlCode/form.blade.php b/resources/views/admin/widgets/htmlCode/form.blade.php new file mode 100644 index 00000000..70068c59 --- /dev/null +++ b/resources/views/admin/widgets/htmlCode/form.blade.php @@ -0,0 +1,39 @@ +
+ {!! csrf_field() !!} + + + + + + + + + + + + + + + @include('admin.snippets.aceEditor', [ + 'name' => 'code', + 'value' => old('code', isset($settings->code) ? $settings->code : ''), + 'theme' => 'xcode', + 'mode' => 'html' + ]) + + + +
\ No newline at end of file diff --git a/resources/views/admin/widgets/htmlCode/new.blade.php b/resources/views/admin/widgets/htmlCode/new.blade.php new file mode 100644 index 00000000..8c868faa --- /dev/null +++ b/resources/views/admin/widgets/htmlCode/new.blade.php @@ -0,0 +1,9 @@ +@extends('admin.layoutWithNavigation') + +@section('pageHeading', @trans('widgets/htmlCode.new')) +@section('pageDescription', @trans($type->description)) + +@section('content') + @include('admin.widgets.htmlCode.form', ['action' => route('widgets.postNew', ['type' => $type])]) +@stop + diff --git a/resources/views/admin/widgets/menu/advanced/extensions/edit.blade.php b/resources/views/admin/widgets/menu/advanced/extensions/edit.blade.php new file mode 100644 index 00000000..3685072f --- /dev/null +++ b/resources/views/admin/widgets/menu/advanced/extensions/edit.blade.php @@ -0,0 +1,20 @@ +@extends('admin.layout') + +@section('pageName', @trans('widgets/menu.edit', ['name' => $widget->name])) + +@section('content') +

@lang('widgets/menu.edit', ['name' => $widget->name])

+ +
+
+ @include('admin.widgets.menu.form', ['formAction' => route('widgets.postEdit', ['id' => $widget->id])]) + +
+
+

@lang('widgets/menu.preview')

+ + @widgetPreview($widget) +
+
+@stop + diff --git a/resources/views/admin/widgets/menu/advanced/extensions/form.blade.php b/resources/views/admin/widgets/menu/advanced/extensions/form.blade.php new file mode 100644 index 00000000..a8afd180 --- /dev/null +++ b/resources/views/admin/widgets/menu/advanced/extensions/form.blade.php @@ -0,0 +1,97 @@ +@if (!isset($hideMessages)) + @if (session('success')) +
+ {{ session('success') }} +
+ @endif + + @if (session('error')) +
+ {{ session('error') }} +
+ @endif +@endif + +
+ {!! csrf_field() !!} + + + + + + + +
+ + + + +
+ @foreach($extensions as $extension) +
+

{{$extension->getName()}}

+

{{$extension->getDescription()}}

+ + +
+ @endforeach +
+ +@section('javascripts') + +@stop \ No newline at end of file diff --git a/resources/views/admin/widgets/menu/advanced/extensions/new.blade.php b/resources/views/admin/widgets/menu/advanced/extensions/new.blade.php new file mode 100644 index 00000000..cc9e5e70 --- /dev/null +++ b/resources/views/admin/widgets/menu/advanced/extensions/new.blade.php @@ -0,0 +1,10 @@ +@extends('admin.layout') + +@section('pageName', @trans('widgets/menu.new')) + +@section('content') +

@lang('widgets/menu.new')

+ + @include('admin.widgets.menu.form', ['formAction' => route('widgets.postNew', ['type' => $type])]) +@stop + diff --git a/resources/views/admin/widgets/menu/advanced/extensions/url.blade.php b/resources/views/admin/widgets/menu/advanced/extensions/url.blade.php new file mode 100644 index 00000000..447ce7f4 --- /dev/null +++ b/resources/views/admin/widgets/menu/advanced/extensions/url.blade.php @@ -0,0 +1,17 @@ + + + + + \ No newline at end of file diff --git a/resources/views/admin/widgets/menu/edit.blade.php b/resources/views/admin/widgets/menu/edit.blade.php new file mode 100644 index 00000000..5b21f9e9 --- /dev/null +++ b/resources/views/admin/widgets/menu/edit.blade.php @@ -0,0 +1,18 @@ +@extends('admin.layoutWithNavigation') + +@section('pageHeading', @trans('widgets/menu.edit', ['name' => $widget->name])) + +@section('content') +
+
+ @include('admin.widgets.menu.form', ['formAction' => route('widgets.postEdit', ['id' => $widget->id])]) + +
+
+

@lang('widgets/menu.preview')

+ + @widgetPreview($widget) +
+
+@stop + diff --git a/resources/views/admin/widgets/menu/form.blade.php b/resources/views/admin/widgets/menu/form.blade.php new file mode 100644 index 00000000..1cbe3d50 --- /dev/null +++ b/resources/views/admin/widgets/menu/form.blade.php @@ -0,0 +1,103 @@ +
+ {!! csrf_field() !!} + + + + name)}}" + placeholder="@lang('widgets/menu.name')" /> + + + + + description)}}" /> + + + + + + +
+
+

@lang('widgets/menu.addedPages')

+ + +
+
+

@lang('widgets/menu.availablePages')

+ + @foreach ($pages as $page) + {{$page->title}} + @endforeach +
+
+ + + +
+ + +@section('javascripts') + +@endsection \ No newline at end of file diff --git a/resources/views/admin/widgets/menu/new.blade.php b/resources/views/admin/widgets/menu/new.blade.php new file mode 100644 index 00000000..3e760fa9 --- /dev/null +++ b/resources/views/admin/widgets/menu/new.blade.php @@ -0,0 +1,7 @@ +@extends('admin.layoutWithNavigation') + +@section('pageHeading', trans('widgets/menu.new')) + +@section('content') + @include('admin.widgets.menu.form', ['formAction' => route('widgets.postNew', ['type' => $type])]) +@endsection \ No newline at end of file diff --git a/resources/views/admin/widgets/orbitSlider/edit.blade.php b/resources/views/admin/widgets/orbitSlider/edit.blade.php new file mode 100644 index 00000000..6dbb9d1f --- /dev/null +++ b/resources/views/admin/widgets/orbitSlider/edit.blade.php @@ -0,0 +1,8 @@ +@extends('admin.layoutWithNavigation') + +@section('pageHeading', @trans('widgets/orbitSlider.edit', ['name' => $widget->name])) + +@section('content') + @include('admin.widgets.orbitSlider.form', ['formAction' => route('widgets.postEdit', ['id' => $widget->id])]) +@stop + diff --git a/resources/views/admin/widgets/orbitSlider/form.blade.php b/resources/views/admin/widgets/orbitSlider/form.blade.php new file mode 100644 index 00000000..7cdb095f --- /dev/null +++ b/resources/views/admin/widgets/orbitSlider/form.blade.php @@ -0,0 +1,87 @@ +
+ {!! csrf_field() !!} + + + + + + + + + +
+
+ + + +
+ +
+ +
+
+ + +

@lang('widgets/orbitSlider.extraSettings')

+ + +
+
+ + +
+
+ + +
+
+ + + + + @include('admin.snippets.aceEditor', [ + 'name' => 'code', + 'value' => old('code', isset($settings->code) ? $settings->code : ''), + 'theme' => 'xcode', + 'mode' => 'html' + ]) + + @if($settings->directoryId) +
+ @lang('widgets/orbitSlider.upload') +
+ @endif + + + \ No newline at end of file diff --git a/resources/views/admin/widgets/orbitSlider/new.blade.php b/resources/views/admin/widgets/orbitSlider/new.blade.php new file mode 100644 index 00000000..95b7ce77 --- /dev/null +++ b/resources/views/admin/widgets/orbitSlider/new.blade.php @@ -0,0 +1,10 @@ +@extends('admin.layout') + +@section('pageName', @trans('widgets/htmlCode.new')) + +@section('content') +

@lang('widgets/orbitSlider.new')

+ + @include('admin.widgets.orbitSlider.form', ['formAction' => route('widgets.postNew', ['type' => $type])]) +@stop + diff --git a/resources/views/admin/widgets/overview.blade.php b/resources/views/admin/widgets/overview.blade.php new file mode 100644 index 00000000..085eaf70 --- /dev/null +++ b/resources/views/admin/widgets/overview.blade.php @@ -0,0 +1,34 @@ +@extends('admin.layoutWithNavigation') + +@section('pageHeading', @trans('admin/widgets.overview')) +@section('pageDescription', @trans('admin/widgets.descriptionOfWidgets')) + +@section('content') + @if (count($widgets)) + + + + + + + + @foreach($widgets as $widget) + + + + + + + @endforeach +
@lang('admin/widgets.widgetType')@lang('admin/widgets.name')@lang('admin/widgets.description')@lang('admin/widgets.actions')
{{trans(call_user_func([$widget->widget_type_handler, 'getName']))}}{{$widget->name}}{{$widget->description}} + + +
+ + {!! $widgets->render() !!} + @else +
+ @lang('admin/widgets.noEntries') +
+ @endif +@stop \ No newline at end of file