| Conditions | 1 |
| Paths | 1 |
| Total Lines | 32 |
| Code Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | function form () { |
||
| 12 | return h::{'form[method=post]'}( |
||
| 13 | h::nav( |
||
|
|
|||
| 14 | 'Build: '. |
||
| 15 | h::{'radio[name=mode]'}( |
||
| 16 | [ |
||
| 17 | 'value' => ['core', 'module', 'theme'], |
||
| 18 | 'in' => [h::span('Core'), h::span('Module'), h::span('Theme')] |
||
| 19 | ] |
||
| 20 | ) |
||
| 21 | ). |
||
| 22 | h::{'table tr| td'}( |
||
| 23 | [ |
||
| 24 | 'Modules', |
||
| 25 | 'Themes' |
||
| 26 | ], |
||
| 27 | [ |
||
| 28 | h::{'select[name=modules[]][size=20][multiple] option'}( |
||
| 29 | get_list_for_form(DIR.'/modules', 'System') |
||
| 30 | ), |
||
| 31 | h::{'select[name=themes[]][size=20][multiple] option'}( |
||
| 32 | get_list_for_form(DIR.'/themes', 'CleverStyle') |
||
| 33 | ) |
||
| 34 | ] |
||
| 35 | ). |
||
| 36 | h::{'input[name=suffix]'}( |
||
| 37 | [ |
||
| 38 | 'placeholder' => 'Package file suffix' |
||
| 39 | ] |
||
| 40 | ). |
||
| 41 | h::{'button[type=submit]'}( |
||
| 42 | 'Build' |
||
| 43 | ) |
||
| 70 |