|
@@ -56,13 +56,17 @@ class NoticeController extends AdminController
|
|
protected function form()
|
|
protected function form()
|
|
{
|
|
{
|
|
return Form::make(new Notice(), function (Form $form) {
|
|
return Form::make(new Notice(), function (Form $form) {
|
|
- $form->text('teacher_id');
|
|
|
|
- $form->text('content');
|
|
|
|
- $form->text('status');
|
|
|
|
- $form->text('title');
|
|
|
|
- $form->text('desc');
|
|
|
|
- $form->text('photos');
|
|
|
|
- $form->text('pdf_file');
|
|
|
|
|
|
+
|
|
|
|
+ $form->row(function (Form\Row $form) {
|
|
|
|
+ $form->width(12)->text('title');
|
|
|
|
+ $form->width(12)->textarea('content');
|
|
|
|
+ $form->multipleImage('photos','上传照片')->saveAsJson();
|
|
|
|
+ $form->file('pdf_file','点击上传文件')->help('上传格式为PDF,且大小不超过100MB');
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ // $form->text('teacher_id');
|
|
|
|
+ // $form->text('status');
|
|
|
|
+ // $form->text('desc');
|
|
});
|
|
});
|
|
}
|
|
}
|
|
}
|
|
}
|