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
9a29f51f
Commit
9a29f51f
authored
Apr 17, 2018
by
Naval Kishore
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'menu-description' of
https://github.com/navalkishore30/Platform
into 3.0
parents
79421ad7
c6f32c6e
Changes
17
Show whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
57 additions
and
1 deletion
+57
-1
2018_04_08_110347_add_description_column_to_menuitems_translation_table.php
...add_description_column_to_menuitems_translation_table.php
+32
-0
Menuitem.php
Modules/Menu/Entities/Menuitem.php
+1
-0
MenuitemTranslation.php
Modules/Menu/Entities/MenuitemTranslation.php
+1
-1
create-trans-fields.blade.php
...ws/admin/menuitems/partials/create-trans-fields.blade.php
+5
-0
edit-trans-fields.blade.php
...iews/admin/menuitems/partials/edit-trans-fields.blade.php
+6
-0
menu.php
Modules/Translation/Resources/lang/menu/de/menu.php
+1
-0
menu.php
Modules/Translation/Resources/lang/menu/en/menu.php
+1
-0
menu.php
Modules/Translation/Resources/lang/menu/es/menu.php
+1
-0
menu.php
Modules/Translation/Resources/lang/menu/fr/menu.php
+1
-0
menu.php
Modules/Translation/Resources/lang/menu/it/menu.php
+1
-0
menu.php
Modules/Translation/Resources/lang/menu/ko/menu.php
+1
-0
menu.php
Modules/Translation/Resources/lang/menu/nl/menu.php
+1
-0
menu.php
Modules/Translation/Resources/lang/menu/pl/menu.php
+1
-0
menu.php
Modules/Translation/Resources/lang/menu/pt/menu.php
+1
-0
menu.php
Modules/Translation/Resources/lang/menu/ru/menu.php
+1
-0
menu.php
Modules/Translation/Resources/lang/menu/tr/menu.php
+1
-0
menu.php
Modules/Translation/Resources/lang/menu/zh/menu.php
+1
-0
No files found.
Modules/Menu/Database/Migrations/2018_04_08_110347_add_description_column_to_menuitems_translation_table.php
0 → 100644
View file @
9a29f51f
<?php
use
Illuminate\Support\Facades\Schema
;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Database\Migrations\Migration
;
class
AddDescriptionColumnToMenuitemsTranslationTable
extends
Migration
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
{
Schema
::
table
(
'menu__menuitem_translations'
,
function
(
Blueprint
$table
)
{
$table
->
string
(
'description'
)
->
after
(
'uri'
)
->
nullable
()
->
default
(
null
);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
{
Schema
::
table
(
'menu__menuitem_translations'
,
function
(
Blueprint
$table
)
{
$table
->
dropColumn
(
'description'
);
});
}
}
Modules/Menu/Entities/Menuitem.php
View file @
9a29f51f
...
...
@@ -27,6 +27,7 @@ class Menuitem extends Model
'link_type'
,
'locale'
,
'class'
,
'description'
,
];
protected
$table
=
'menu__menuitems'
;
...
...
Modules/Menu/Entities/MenuitemTranslation.php
View file @
9a29f51f
...
...
@@ -6,6 +6,6 @@ use Illuminate\Database\Eloquent\Model;
class
MenuitemTranslation
extends
Model
{
public
$fillable
=
[
'title'
,
'uri'
,
'url'
,
'status'
,
'locale'
];
public
$fillable
=
[
'title'
,
'uri'
,
'url'
,
'status'
,
'locale'
,
'description'
];
protected
$table
=
'menu__menuitem_translations'
;
}
Modules/Menu/Resources/views/admin/menuitems/partials/create-trans-fields.blade.php
View file @
9a29f51f
...
...
@@ -16,6 +16,11 @@
{!! Form::text("{$lang}[url]", old("{$lang}[url]"), ['class' => 'form-control', 'placeholder' => trans('menu::menu.form.url')]) !!}
{!! $errors->first("{$lang}[url]", '
<span
class=
"help-block"
>
:message
</span>
') !!}
</div>
<div
class=
"form-group{{ $errors->has("
{$
lang
}[
description
]")
?
'
has-error
'
:
''
}}"
>
{!! Form::label("{$lang}[description]", trans('menu::menu.form.description')) !!}
{!! Form::text("{$lang}[description]", old("{$lang}[description]"), ['class' => 'form-control', 'placeholder' => trans('menu::menu.form.description')]) !!}
{!! $errors->first("{$lang}[description]", '
<span
class=
"help-block"
>
:message
</span>
') !!}
</div>
<div
class=
"checkbox"
>
<label
for=
"{{$lang}}[status]"
>
...
...
Modules/Menu/Resources/views/admin/menuitems/partials/edit-trans-fields.blade.php
View file @
9a29f51f
...
...
@@ -19,6 +19,12 @@
{!! Form::text("{$lang}[url]", old("{$lang}[url]", $old), ['class' => 'form-control', 'placeholder' => trans('menu::menu.form.url')]) !!}
{!! $errors->first("{$lang}[url]", '
<span
class=
"help-block"
>
:message
</span>
') !!}
</div>
<div
class=
"form-group{{ $errors->has("
{$
lang
}[
description
]")
?
'
has-error
'
:
''
}}"
>
{!! Form::label("{$lang}[description]", trans('menu::menu.form.description')) !!}
<?php
$old
=
$menuItem
->
hasTranslation
(
$lang
)
?
$menuItem
->
translate
(
$lang
)
->
description
:
''
?>
{!! Form::text("{$lang}[description]", old("{$lang}[description]", $old), ['class' => 'form-control', 'placeholder' => trans('menu::menu.form.description')]) !!}
{!! $errors->first("{$lang}[description]", '
<span
class=
"help-block"
>
:message
</span>
') !!}
</div>
<div
class=
"checkbox"
>
<?php
$old
=
$menuItem
->
hasTranslation
(
$lang
)
?
$menuItem
->
translate
(
$lang
)
->
status
:
false
?>
<label
for=
"{{$lang}}[status]"
>
...
...
Modules/Translation/Resources/lang/menu/de/menu.php
View file @
9a29f51f
...
...
@@ -31,6 +31,7 @@ return [
'uri'
=>
'URI'
,
'url'
=>
'URL'
,
'primary'
=>
'Hauptmenü (für das Frontend-Routing)'
,
'description'
=>
'Menü Beschreibung (Kann für zusätzliche Informationen verwendet werden)'
,
],
'navigation'
=>
[
'back to index'
=>
'Zurück zur Übersicht'
,
...
...
Modules/Translation/Resources/lang/menu/en/menu.php
View file @
9a29f51f
...
...
@@ -31,6 +31,7 @@ return [
'uri'
=>
'URI'
,
'url'
=>
'URL'
,
'primary'
=>
'Primary menu (used for front-end routing)'
,
'description'
=>
'Menu Description (Can be used to provide extra information)'
,
],
'navigation'
=>
[
'back to index'
=>
'Go back to the menu index'
,
...
...
Modules/Translation/Resources/lang/menu/es/menu.php
View file @
9a29f51f
...
...
@@ -31,6 +31,7 @@ return [
'uri'
=>
'URI'
,
'url'
=>
'URL'
,
'primary'
=>
'Menú principal (usado para rutas del sitio)'
,
'description'
=>
'Descripción del menú (Se puede usar para proporcionar información adicional)'
,
],
'navigation'
=>
[
'back to index'
=>
'Regresar'
,
...
...
Modules/Translation/Resources/lang/menu/fr/menu.php
View file @
9a29f51f
...
...
@@ -31,6 +31,7 @@ return [
'uri'
=>
'URI'
,
'url'
=>
'URL'
,
'primary'
=>
'Menu principal (utilisé pour le routage frontal)'
,
'description'
=>
'Description du menu (peut être utilisé pour fournir des informations supplémentaires)'
,
],
'navigation'
=>
[
'back to index'
=>
'Retour vers l\'index des menus'
,
...
...
Modules/Translation/Resources/lang/menu/it/menu.php
View file @
9a29f51f
...
...
@@ -31,6 +31,7 @@ return [
'uri'
=>
'URI'
,
'url'
=>
'URL'
,
'primary'
=>
'Menu primario (usato per il routing front-end)'
,
'description'
=>
'Descrizione del menu (può essere usato per fornire informazioni extra)'
,
],
'navigation'
=>
[
'back to index'
=>
'Indietro all\'indice dei menu'
,
...
...
Modules/Translation/Resources/lang/menu/ko/menu.php
View file @
9a29f51f
...
...
@@ -31,6 +31,7 @@ return [
'uri'
=>
'URI'
,
'url'
=>
'URL'
,
'primary'
=>
'주 메뉴 (프론트엔드 라우팅에 사용됨)'
,
'description'
=>
'메뉴 설명 (추가 정보를 제공하는 데 사용할 수 있음)'
,
],
'navigation'
=>
[
'back to index'
=>
'메뉴 목록으로 돌아가기'
,
...
...
Modules/Translation/Resources/lang/menu/nl/menu.php
View file @
9a29f51f
...
...
@@ -31,6 +31,7 @@ return [
'uri'
=>
'URI'
,
'url'
=>
'URL'
,
'primary'
=>
'Primair menu (gebruikt voor front-end routing)'
,
'description'
=>
'Menu Beschrijving (kan worden gebruikt om extra informatie te geven)'
,
],
'navigation'
=>
[
'back to index'
=>
'Ga terug naar het menu overzicht'
,
...
...
Modules/Translation/Resources/lang/menu/pl/menu.php
View file @
9a29f51f
...
...
@@ -31,6 +31,7 @@ return [
'uri'
=>
'URI'
,
'url'
=>
'URL'
,
'primary'
=>
'Menu główne (używane jako nawigacja na stronie głównej)'
,
'description'
=>
'Opis menu (może być wykorzystany do dostarczenia dodatkowych informacji)'
,
],
'navigation'
=>
[
'back to index'
=>
'Powrót do zarządzania menu'
,
...
...
Modules/Translation/Resources/lang/menu/pt/menu.php
View file @
9a29f51f
...
...
@@ -31,6 +31,7 @@ return [
'uri'
=>
'URI'
,
'url'
=>
'URL'
,
'primary'
=>
'Menu principal (usado para as rotas do site)'
,
'description'
=>
'Menu Descrição (pode ser usado para fornecer informações extras)'
,
],
'navigation'
=>
[
'back to index'
=>
'Voltar para a listagem'
,
...
...
Modules/Translation/Resources/lang/menu/ru/menu.php
View file @
9a29f51f
...
...
@@ -31,6 +31,7 @@ return [
'uri'
=>
'URI'
,
'url'
=>
'URL'
,
'primary'
=>
'Начальное меню (используется для маршрутизации внешнего интерфейса)'
,
'description'
=>
'Описание меню (может использоваться для предоставления дополнительной информации)'
,
],
'navigation'
=>
[
'back to index'
=>
'Вернуться к списку меню'
,
...
...
Modules/Translation/Resources/lang/menu/tr/menu.php
View file @
9a29f51f
...
...
@@ -31,6 +31,7 @@ return [
'uri'
=>
'URI'
,
'url'
=>
'URL'
,
'primary'
=>
'Birincil menü (frond-end yönlendirmesi için kullanılır)'
,
'description'
=>
'Menü Açıklama (Ek bilgi sağlamak için kullanılabilir)'
,
],
'navigation'
=>
[
'back to index'
=>
'Menüye geri dön'
,
...
...
Modules/Translation/Resources/lang/menu/zh/menu.php
View file @
9a29f51f
...
...
@@ -31,6 +31,7 @@ return [
'uri'
=>
'URI'
,
'url'
=>
'URL'
,
'primary'
=>
'主菜单 (用于前台导航)'
,
'description'
=>
'菜单说明(可用于提供额外的信息)'
,
],
'navigation'
=>
[
'back to index'
=>
'返回菜单首页'
,
...
...
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