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
cea4a207
Commit
cea4a207
authored
Nov 14, 2014
by
Nicolas Widart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Using the new translatable trait
parent
277b65fc
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
14 deletions
+16
-14
Menuitem.php
Entities/Menuitem.php
+1
-1
EloquentMenuItemRepository.php
Repositories/Eloquent/EloquentMenuItemRepository.php
+1
-1
edit.blade.php
Resources/views/admin/menus/edit.blade.php
+14
-12
No files found.
Entities/Menuitem.php
View file @
cea4a207
<?php
namespace
Modules\Menu\Entities
;
use
Baum\Node
;
use
Dimsav\Translatable
\Translatable
;
use
Modules\Core\Internationalisation
\Translatable
;
class
Menuitem
extends
Node
{
...
...
Repositories/Eloquent/EloquentMenuItemRepository.php
View file @
cea4a207
...
...
@@ -15,7 +15,7 @@ class EloquentMenuItemRepository extends EloquentBaseRepository implements MenuI
$menuItem
->
target
=
$data
[
'target'
];
$menuItem
->
module_name
=
$data
[
'module'
];
unset
(
$data
[
'menu_id'
],
$data
[
'page_id'
],
$data
[
'target'
],
$data
[
'module
_name
'
]);
unset
(
$data
[
'menu_id'
],
$data
[
'page_id'
],
$data
[
'target'
],
$data
[
'module'
]);
$translatableData
=
Helper
::
separateLanguages
(
$data
);
Helper
::
updateTranslated
(
$menuItem
,
$translatableData
);
...
...
Resources/views/admin/menus/edit.blade.php
View file @
cea4a207
...
...
@@ -27,6 +27,7 @@
</a>
</div>
</div>
<?php if (!
$menuItems->isEmpty
()): ?>
<div class="
box
box
-
info
" style="
overflow
:
hidden
;
">
<div class="
box
-
body
">
<div class="
dd
">
...
...
@@ -41,6 +42,7 @@
</div>
</div>
</div>
<?php endif; ?>
</div>
<div class="
col
-
md
-
6
">
<div class="
box
box
-
info
">
...
...
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