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