1 <?php
2
3 4 5 6 7 8 9 10
11
12 namespace Icybee\Modules\Nodes;
13
14 use ICanBoogie\Operation;
15
16 use Brickrouge\Button;
17 use Brickrouge\Form;
18
19 class ExportBlock extends Form
20 {
21 public function __construct(Module $module, array $attributes=[])
22 {
23 parent::__construct($attributes + [
24
25 Form::HIDDENS => [
26
27 Operation::DESTINATION => $module->id,
28 Operation::NAME => 'export'
29
30 ],
31
32 Form::ACTIONS => new Button('Export', [ 'class' => 'btn-primary', 'type' => 'submit' ]),
33
34 'class' => 'form-primary'
35
36 ]);
37 }
38
39 protected function render_inner_html()
40 {
41 return "ouic" . parent::render_inner_html();
42 }
43 }