update template composer.json
parent
c5f44ef92d
commit
21afc49a78
|
|
@ -1,20 +1,20 @@
|
|||
<div style="margin-bottom: 10px">{{ $value }}</div>
|
||||
|
||||
@if($row->version && empty($row->new_version))
|
||||
{{ trans('admin.version').' '.$row->version }}
|
||||
|
||||
@if($settingAction)
|
||||
|
|
||||
{!! $settingAction !!}
|
||||
@endif
|
||||
@else
|
||||
{!! $updateAction !!}
|
||||
|
||||
@if($settingAction && $row->new_version)
|
||||
|
|
||||
{!! $settingAction !!}
|
||||
@endif
|
||||
@endif
|
||||
|
|
||||
|
||||
<a href="javascript:void(0)">{{ trans('admin.view') }}</a>
|
||||
<div style="margin-bottom: 10px">{{ $value }}</div>
|
||||
|
||||
@if($row->version && empty($row->new_version))
|
||||
{{ trans('admin.version').' '.$row->version }}
|
||||
|
||||
@if($settingAction)
|
||||
|
|
||||
{!! $settingAction !!}
|
||||
@endif
|
||||
@else
|
||||
{!! $updateAction !!}
|
||||
|
||||
@if($settingAction && $row->new_version)
|
||||
|
|
||||
{!! $settingAction !!}
|
||||
@endif
|
||||
@endif
|
||||
<!-- | -->
|
||||
|
||||
<!-- <a href="javascript:void(0)">{{ trans('admin.view') }}</a> -->
|
||||
|
|
|
|||
|
|
@ -13,8 +13,7 @@
|
|||
}
|
||||
],
|
||||
"require": {
|
||||
"php": ">=7.1.0",
|
||||
"dcat/laravel-admin": "~2.0"
|
||||
"php": ">=7.1.0"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
|
|
|
|||
|
|
@ -62,25 +62,25 @@ class ExtensionController extends Controller
|
|||
$grid->disableViewButton();
|
||||
$grid->disableActions();
|
||||
|
||||
$grid->tools([
|
||||
new Marketplace(),
|
||||
new InstallFromLocal(),
|
||||
]);
|
||||
// $grid->tools([
|
||||
// new Marketplace(),
|
||||
// new InstallFromLocal(),
|
||||
// ]);
|
||||
|
||||
$grid->quickCreate(function (Grid\Tools\QuickCreate $create) {
|
||||
$create->text('name')
|
||||
->attribute('style', 'width:240px')
|
||||
->placeholder('Input Name. Eg: dcat-admin/demo')
|
||||
->required();
|
||||
$create->text('namespace')
|
||||
->attribute('style', 'width:240px')
|
||||
->placeholder('Input Namespace. Eg: DcatAdmin\\Demo');
|
||||
$create->select('type')
|
||||
->options([1 => trans('admin.application'), 2 => trans('admin.theme')])
|
||||
->attribute('style', 'width:140px!important')
|
||||
->default(1)
|
||||
->required();
|
||||
});
|
||||
// $grid->quickCreate(function (Grid\Tools\QuickCreate $create) {
|
||||
// $create->text('name')
|
||||
// ->attribute('style', 'width:240px')
|
||||
// ->placeholder('Input Name. Eg: dcat-admin/demo')
|
||||
// ->required();
|
||||
// $create->text('namespace')
|
||||
// ->attribute('style', 'width:240px')
|
||||
// ->placeholder('Input Namespace. Eg: DcatAdmin\\Demo');
|
||||
// $create->select('type')
|
||||
// ->options([1 => trans('admin.application'), 2 => trans('admin.theme')])
|
||||
// ->attribute('style', 'width:140px!important')
|
||||
// ->default(1)
|
||||
// ->required();
|
||||
// });
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue