Skip to content

Commit 17c3056

Browse files
committed
Show setting descriptions in settings table
1 parent 51123b4 commit 17c3056

4 files changed

Lines changed: 5 additions & 0 deletions

File tree

src/Translations/ca/admin.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
'table-default' => 'Valor predeterminat',
3535
'table-value' => 'Valor configurat',
3636
'table-lang' => 'Idioma',
37+
'table-description' => 'Descripció',
3738
'table-edit' => 'Editar',
3839

3940
'btn-add-new' => 'Afegir nou',

src/Translations/en/admin.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
'table-default' => 'Default Value',
3535
'table-value' => 'My Value',
3636
'table-lang' => 'Lang',
37+
'table-description' => 'Description',
3738
'table-edit' => 'Edit',
3839

3940
'btn-add-new' => 'Add new one',

src/Translations/es/admin.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
'table-default' => 'Valor Predeterminado',
2828
'table-value' => 'Mi Valor',
2929
'table-lang' => 'Idioma',
30+
'table-description' => 'Descripción',
3031
'table-edit' => 'Editar',
3132

3233
'btn-back' => 'Atrás',

src/Views/admin/configuration/partials/tab_table.blade.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<th>{{ trans('panichd::admin.table-default') }}</th>
77
<th>{{ trans('panichd::admin.table-value') }}</th>
88
<th class="text-center">{{ trans('panichd::admin.table-lang') }}</th>
9+
<th class="text-center">{{ trans('panichd::admin.table-description') }}</th>
910
<th class="text-center">{{ trans('panichd::admin.table-action') }}</th>
1011
</thead>
1112
<tbody>
@@ -16,6 +17,7 @@
1617
<td>{!! $configuration->default !!}</td>
1718
<td><a href="{!! route($setting->grab('admin_route').'.configuration.edit', [$configuration->id]) !!}" title="{{ trans('panichd::admin.table-edit').' '.$configuration->slug }}" data-toggle="tooltip">{!! $configuration->value !!}</a></td>
1819
<td class="text-center">{!! $configuration->lang !!}</td>
20+
<td>@if(array_key_exists($configuration->slug, trans('panichd::settings'))){!! trans('panichd::settings.' . $configuration->slug) !!}@endif</td>
1921
<td class="text-center">
2022
{!! link_to_route(
2123
$setting->grab('admin_route').'.configuration.edit', trans('panichd::admin.btn-edit'), [$configuration->id],

0 commit comments

Comments
 (0)