| Conditions | 1 |
| Paths | 1 |
| Total Lines | 44 |
| Code Lines | 32 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | public function init() |
||
| 16 | { |
||
| 17 | $this->add([ |
||
| 18 | 'type' => Text::class, |
||
| 19 | 'name' => 'firstname', |
||
| 20 | 'options' => [ |
||
| 21 | 'label' => 'First name' |
||
| 22 | ], |
||
| 23 | ]); |
||
| 24 | $this->add([ |
||
| 25 | 'type' => Text::class, |
||
| 26 | 'name' => 'lastname', |
||
| 27 | 'options' => [ |
||
| 28 | 'label' => 'Family name' |
||
| 29 | ], |
||
| 30 | ]); |
||
| 31 | $this->add([ |
||
| 32 | 'type' => Text::class, |
||
| 33 | 'name' => 'email', |
||
| 34 | 'options' => [ |
||
| 35 | 'label' => 'Email', |
||
| 36 | 'help-block' => 'We\'ll add this email to our attendees mailing list to keep you up to date' |
||
| 37 | ], |
||
| 38 | ]); |
||
| 39 | $this->add([ |
||
| 40 | 'type' => Text::class, |
||
| 41 | 'name' => 'company', |
||
| 42 | 'options' => [ |
||
| 43 | 'label' => 'Company' |
||
| 44 | ], |
||
| 45 | ]); |
||
| 46 | $this->add([ |
||
| 47 | 'type' => Text::class, |
||
| 48 | 'name' => 'twitter', |
||
| 49 | 'options' => [ |
||
| 50 | 'label' => 'Twitter handle' |
||
| 51 | ], |
||
| 52 | ]); |
||
| 53 | $this->add([ |
||
| 54 | 'type' => Textarea::class, |
||
| 55 | 'name' => 'requirements', |
||
| 56 | 'options' => [ |
||
| 57 | 'label' => 'Any Requirements', |
||
| 58 | 'help-block' => 'eg dietary needs, accessibility needs etc' |
||
| 59 | ], |
||
| 73 | } |