FEATURE: add functionality for creating new widget.

This commit adds functionality for creating widget of whatever type. Controller calls widget admin handler, which renders and handles input form.
This commit is contained in:
Michal Kváček
2016-02-15 12:19:54 +01:00
parent 043c842aef
commit ccc2d918c9
8 changed files with 289 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
<?php
return [
'cannotSave' => 'Cannot save widget. Message: :exception',
'missingValue' => 'You must specify value for field :field',
'successfullyCreated' => 'Widget successfully created.',
'successfullyEdited' => 'Widget successfully edited.',
'noEntries' => 'No widgets available.',
'overview' => 'List of all widgets',
'widgetType' => 'Type of widget',
'name' => 'Name',
'description' => 'Description',
'actions' => 'Actions',
'preview' => 'Widgets preview',
'createdAt' => 'Created at',
'updatedAt' => 'Last update',
'unassociatedWidgets' => 'List of not associated widgets',
'associate' => 'Add',
'edit' => 'Edit',
'deleteAssociation' => 'Remove',
'associationExists' => 'This widget is already associated with this widget area',
'successfullyAssociated' => 'Association successfull',
'associationDoesNotExists' => 'This association does not exist',
'successfullyDeassociated' => 'Successfully removed from widget area',
];
+15
View File
@@ -0,0 +1,15 @@
<?php
return [
'widgetName' => 'HTML code',
'new' => 'Create new HTML widget',
'edit' => 'Editing widget :name',
'containerClass' => 'HTML class used for container of this widget',
'widgetDescription' => 'Simple widget for inserting html code',
'name' => 'Name',
'description' => 'Description',
'code' => 'HTML code',
'createNew' => 'Create new HTML code widget',
'editExisting' => 'Update widget',
'successfullyEdited' => 'Widget successfully modified',
'preview' => 'Preview'
];