Completed
Push — master ( 188ffb...31684b )
by Maxime
02:48
created

Forgotten::buildForm()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 19
Code Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 19
rs 9.4285
cc 1
eloc 10
nc 1
nop 0
1
<?php namespace Distilleries\Expendable\Http\Forms\Login;
2
3
use Distilleries\FormBuilder\FormValidator;
4
5
class Forgotten extends FormValidator {
6
7
    public static $rules = [
8
        'email'    => 'required|email'
9
    ];
10
11
    public function buildForm()
12
    {
13
        $this->add('email', 'email',
14
            [
15
                'label' => trans('expendable::form.email'),
16
                'validation' => 'required,custom[email]',
17
                'attr' => [
18
                    'class' => 'placeholder-no-fix',
19
                ],
20
21
            ])
22
            ->add('send', 'submit',
23
            [
24
                'label' => trans('expendable::form.send'),
25
                'attr' => [
26
                    'class' =>'btn green-haze pull-right'
27
                ],
28
            ]);
29
    }
30
}