|
@@ -59,12 +59,15 @@ class TeachPlanController extends AdminController
|
|
protected function form()
|
|
protected function form()
|
|
{
|
|
{
|
|
return Form::make(new TeachPlan(), function (Form $form) {
|
|
return Form::make(new TeachPlan(), function (Form $form) {
|
|
|
|
+ $form->select('plan_type')->options(config('map.plan_type'));
|
|
$form->text('title');
|
|
$form->text('title');
|
|
- $form->text('time');
|
|
|
|
- $form->text('plan_type');
|
|
|
|
- $form->text('create_user_id');
|
|
|
|
- $form->text('content');
|
|
|
|
- $form->text('photos');
|
|
|
|
|
|
+ $form->textarea('content');
|
|
|
|
+ $form->multipleImage('photos','上传照片')->saveAsJson();
|
|
|
|
+ $form->file('pdf_file','点击上传文件')->help('上传格式为PDF,且大小不超过100MB');
|
|
|
|
+ // $form->text('time');
|
|
|
|
+ // $form->text('create_user_id');
|
|
|
|
+
|
|
|
|
+ // $form->text('photos');
|
|
|
|
|
|
});
|
|
});
|
|
}
|
|
}
|