generated from liutk/owl-admin-base
main
parent
9fc56e35f7
commit
ed8d46c2bb
|
|
@ -77,7 +77,7 @@ class HonorController extends AdminController
|
||||||
amis()->Wrapper()->body([
|
amis()->Wrapper()->body([
|
||||||
amis()->TextControl('title', __('admin.honors.title'))->required(true),
|
amis()->TextControl('title', __('admin.honors.title'))->required(true),
|
||||||
amis()->selectControl('category', __('admin.honors.category'))->options(Keyword::allChildrenOfKey('honors')->pluck('name', 'id'))->required(true),
|
amis()->selectControl('category', __('admin.honors.category'))->options(Keyword::allChildrenOfKey('honors')->pluck('name', 'id'))->required(true),
|
||||||
Components::make()->cropImageControl('cover', __('admin.honors.cover'))->required(true),
|
Components::make()->cropImageControl('cover', __('admin.honors.cover'), 1.41)->required(true),
|
||||||
amis()->DateControl('awarded_date', __('admin.honors.awarded_date'))->format('YYYY-MM-DD')->required(true),
|
amis()->DateControl('awarded_date', __('admin.honors.awarded_date'))->format('YYYY-MM-DD')->required(true),
|
||||||
Components::make()->sortControl('sort', __('admin.honors.sort')),
|
Components::make()->sortControl('sort', __('admin.honors.sort')),
|
||||||
amis()->SwitchControl('is_enable', __('admin.honors.is_enable'))->value(false),
|
amis()->SwitchControl('is_enable', __('admin.honors.is_enable'))->value(false),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue