Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php namespace Distilleries\Expendable\Http\Forms\Export; |
||
17 | 14 | public function buildForm() |
|
18 | { |
||
19 | |||
20 | $this |
||
21 | 14 | ->add('range', 'datepicker', |
|
22 | [ |
||
23 | 14 | 'label' => trans('expendable::form.date'), |
|
24 | 14 | 'validation' => 'required', |
|
25 | 'range' => true |
||
26 | ]) |
||
27 | 14 | ->add('type', 'choice', [ |
|
28 | 14 | 'choices' => StaticLabel::typeExport(), |
|
29 | 14 | 'validation' => 'required', |
|
30 | 14 | 'label' => trans('expendable::form.type') |
|
31 | ]) |
||
32 | 14 | ->addDefaultActions(); |
|
33 | } |
||
34 | } |