| Conditions | 1 |
| Paths | 1 |
| Total Lines | 38 |
| Code Lines | 21 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 12 | public function render(array $parameters, HTMLNode $previous): HTMLNode |
||
| 13 | { |
||
| 14 | return HTMLNode::factory( |
||
| 15 | 'div', |
||
| 16 | [ |
||
| 17 | 'class' => 'formularium-upload file-field input-field' |
||
| 18 | ], |
||
| 19 | [ |
||
| 20 | HTMLNode::factory( |
||
| 21 | 'div', |
||
| 22 | [ |
||
| 23 | 'class' => 'btn', |
||
| 24 | ], |
||
| 25 | [ |
||
| 26 | HTMLNode::factory( |
||
| 27 | 'span', |
||
| 28 | [ |
||
| 29 | 'class' => 'formularium-label', |
||
| 30 | ], |
||
| 31 | $parameters[self::LABEL] ?? 'File' |
||
| 32 | ), |
||
| 33 | HTMLNode::factory( |
||
| 34 | 'input', |
||
| 35 | [ |
||
| 36 | 'class' => 'formularium-input', |
||
| 37 | 'type' => 'file' |
||
| 38 | ] |
||
| 39 | ), |
||
| 40 | ], |
||
| 41 | ), |
||
| 42 | HTMLNode::factory( |
||
| 43 | 'div', |
||
| 44 | ['class' => 'file-path-wrapper'], |
||
| 45 | HTMLNode::factory( |
||
| 46 | 'input', |
||
| 47 | [ |
||
| 48 | 'class' => 'file-path validate', |
||
| 49 | 'type' => 'text' |
||
| 50 | ] |
||
| 63 |