@@ 39-58 (lines=20) @@ | ||
36 | // ------------------------------------------------------------------------------------------------ |
|
37 | // ------------------------------------------------------------------------------------------------ |
|
38 | ||
39 | public function getEdit($id = '') |
|
40 | { |
|
41 | ||
42 | $form = FormBuilder::create(get_class($this->form)); |
|
43 | ||
44 | ||
45 | $form_content = view('form-builder::form.components.formgenerator.full', [ |
|
46 | 'form' => $form |
|
47 | ]); |
|
48 | $content = view('expendable::admin.form.state.form', [ |
|
49 | ||
50 | ]); |
|
51 | ||
52 | $this->layoutManager->add([ |
|
53 | 'form' => $form_content, |
|
54 | 'content' => $content, |
|
55 | ]); |
|
56 | ||
57 | return $this->layoutManager->render(); |
|
58 | } |
|
59 | ||
60 | // ------------------------------------------------------------------------------------------------ |
|
61 |
@@ 16-35 (lines=20) @@ | ||
13 | // ------------------------------------------------------------------------------------------------ |
|
14 | // ------------------------------------------------------------------------------------------------ |
|
15 | ||
16 | public function getImport() |
|
17 | { |
|
18 | $form = FormBuilder::create($this->import_form, [ |
|
19 | 'model' => $this->model |
|
20 | ]); |
|
21 | ||
22 | $form_content = view('expendable::admin.form.components.formgenerator.import', [ |
|
23 | 'form' => $form |
|
24 | ]); |
|
25 | $content = view('expendable::admin.form.state.form', [ |
|
26 | ||
27 | ]); |
|
28 | ||
29 | $this->layoutManager->add([ |
|
30 | 'form'=>$form_content, |
|
31 | 'content'=>$content, |
|
32 | ]); |
|
33 | ||
34 | return $this->layoutManager->render(); |
|
35 | } |
|
36 | ||
37 | // ------------------------------------------------------------------------------------------------ |
|
38 |
@@ 15-34 (lines=20) @@ | ||
12 | // ------------------------------------------------------------------------------------------------ |
|
13 | // ------------------------------------------------------------------------------------------------ |
|
14 | ||
15 | public function getExport() |
|
16 | { |
|
17 | $form = FormBuilder::create($this->export_form, [ |
|
18 | 'model' => $this->model |
|
19 | ]); |
|
20 | ||
21 | $form_content = view('expendable::admin.form.components.formgenerator.export', [ |
|
22 | 'form' => $form |
|
23 | ]); |
|
24 | $content = view('expendable::admin.form.state.form', [ |
|
25 | ||
26 | ]); |
|
27 | ||
28 | $this->layoutManager->add([ |
|
29 | 'form'=>$form_content, |
|
30 | 'content'=>$content, |
|
31 | ]); |
|
32 | ||
33 | return $this->layoutManager->render(); |
|
34 | } |
|
35 | ||
36 | // ------------------------------------------------------------------------------------------------ |
|
37 |