Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Platform
Commits
c634e433
Commit
c634e433
authored
Nov 28, 2014
by
Nicolas Widart
Browse files
Options
Browse Files
Download
Plain Diff
Merge commit '
f2628725
'
* commit '
f2628725
': Squashed 'Modules/Menu/' changes from eac3385..c345f10
parents
ed63f256
f2628725
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
33 additions
and
5 deletions
+33
-5
MenuController.php
Modules/Menu/Http/Controllers/Admin/MenuController.php
+3
-3
MenuItemController.php
Modules/Menu/Http/Controllers/Admin/MenuItemController.php
+2
-2
messages.php
Modules/Menu/Resources/lang/en/messages.php
+14
-0
messages.php
Modules/Menu/Resources/lang/fr/messages.php
+14
-0
No files found.
Modules/Menu/Http/Controllers/Admin/MenuController.php
View file @
c634e433
...
@@ -59,7 +59,7 @@ class MenuController extends AdminBaseController
...
@@ -59,7 +59,7 @@ class MenuController extends AdminBaseController
{
{
$this
->
menu
->
create
(
$request
->
all
());
$this
->
menu
->
create
(
$request
->
all
());
Flash
::
success
(
'Menu created!'
);
Flash
::
success
(
trans
(
'menu::messages.menu created'
)
);
return
$this
->
redirector
->
route
(
'dashboard.menu.index'
);
return
$this
->
redirector
->
route
(
'dashboard.menu.index'
);
}
}
...
@@ -76,7 +76,7 @@ class MenuController extends AdminBaseController
...
@@ -76,7 +76,7 @@ class MenuController extends AdminBaseController
{
{
$this
->
menu
->
update
(
$menu
,
$request
->
all
());
$this
->
menu
->
update
(
$menu
,
$request
->
all
());
Flash
::
success
(
'Menu updated!'
);
Flash
::
success
(
trans
(
'menu::messages.menu updated'
)
);
return
$this
->
redirector
->
route
(
'dashboard.menu.index'
);
return
$this
->
redirector
->
route
(
'dashboard.menu.index'
);
}
}
...
@@ -84,7 +84,7 @@ class MenuController extends AdminBaseController
...
@@ -84,7 +84,7 @@ class MenuController extends AdminBaseController
{
{
$this
->
menu
->
destroy
(
$menu
);
$this
->
menu
->
destroy
(
$menu
);
Flash
::
success
(
'Menu destroyed'
);
Flash
::
success
(
trans
(
'menu::messages.menu deleted'
)
);
return
$this
->
redirector
->
route
(
'dashboard.menu.index'
);
return
$this
->
redirector
->
route
(
'dashboard.menu.index'
);
}
}
}
}
Modules/Menu/Http/Controllers/Admin/MenuItemController.php
View file @
c634e433
...
@@ -35,7 +35,7 @@ class MenuItemController
...
@@ -35,7 +35,7 @@ class MenuItemController
{
{
$this
->
menuItem
->
create
(
$this
->
addMenuId
(
$menu
,
$request
));
$this
->
menuItem
->
create
(
$this
->
addMenuId
(
$menu
,
$request
));
Flash
::
success
(
'Menu item created!'
);
Flash
::
success
(
trans
(
'menu::messages.menuitem created'
)
);
return
$this
->
redirector
->
route
(
'dashboard.menu.edit'
,
[
$menu
->
id
]);
return
$this
->
redirector
->
route
(
'dashboard.menu.edit'
,
[
$menu
->
id
]);
}
}
...
@@ -48,7 +48,7 @@ class MenuItemController
...
@@ -48,7 +48,7 @@ class MenuItemController
{
{
$this
->
menuItem
->
update
(
$menuItem
,
$this
->
addMenuId
(
$menu
,
$request
));
$this
->
menuItem
->
update
(
$menuItem
,
$this
->
addMenuId
(
$menu
,
$request
));
Flash
::
success
(
'Menu item updated!'
);
Flash
::
success
(
trans
(
'menu::messages.menuitem updated'
)
);
return
$this
->
redirector
->
route
(
'dashboard.menu.edit'
,
[
$menu
->
id
]);
return
$this
->
redirector
->
route
(
'dashboard.menu.edit'
,
[
$menu
->
id
]);
}
}
...
...
Modules/Menu/Resources/lang/en/messages.php
0 → 100644
View file @
c634e433
<?php
return
[
/* Menu management */
'menu created'
=>
'Menu successfully created.'
,
'menu not found'
=>
'Menu not found.'
,
'menu updated'
=>
'Menu successfully updated.'
,
'menu deleted'
=>
'Menu successfully deleted.'
,
/* MenuItem management */
'menuitem created'
=>
'Menu item successfully created.'
,
'menuitem not found'
=>
'Menu item not found.'
,
'menuitem updated'
=>
'Menu item successfully updated.'
,
'menuitem deleted'
=>
'Menu item successfully deleted.'
,
];
Modules/Menu/Resources/lang/fr/messages.php
0 → 100644
View file @
c634e433
<?php
return
[
/* Menu management */
'menu created'
=>
'Menu créer.'
,
'menu not found'
=>
'Menu non trouvé.'
,
'menu updated'
=>
'Menu mit à jour.'
,
'menu deleted'
=>
'Menu suprimer'
,
/* MenuItem management */
'menuitem created'
=>
'Elément de menu créer.'
,
'menuitem not found'
=>
'Elément de menu non trouvé.'
,
'menuitem updated'
=>
'Elément de menu mit à jour.'
,
'menuitem deleted'
=>
'Elément de menu suprimer'
,
];
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment