@@ -146,30 +176,34 @@ class Manage extends dcNsProcess
foreach ($targets->dump() as $target) {
echo '
- ' . form::checkbox(['noodle[' . $target->id . '][active]', 'ck_' . $target->id], 1, $target->active()) . ' |
+ ' . (new Checkbox(['noodle[' . $target->id . '][active]', 'ck_' . $target->id], $target->active()))->value(1)->render() . ' |
|
- ' . form::combo(['noodle[' . $target->id . '][size]'], Combo::size(), $target->size()) . ' |
- ' . form::combo(['noodle[' . $target->id . '][rating]'], Combo::rating(), $target->rating()) . ' |
+ ' . (new Select(['noodle[' . $target->id . '][size]']))->items(Combo::size())->default((string) $target->size())->render() . ' |
+ ' . (new Select(['noodle[' . $target->id . '][rating]']))->items(Combo::rating())->default($target->rating())->render() . ' |
' . (
$target->hasPhpCallback() ?
'' :
''
) . ' |
|
- ' . form::field(['noodle[' . $target->id . '][target]'], 20, 255, $target->target()) . ' |
- ' . form::combo(['noodle[' . $target->id . '][place]'], Combo::place(), $target->place()) . ' |
- ' . form::field(['noodle[' . $target->id . '][css]'], 50, 255, $target->css()) . ' |
+ ' . (new Input(['noodle[' . $target->id . '][target]']))->size(20)->maxlenght(255)->value($target->target())->render() . ' |
+ ' . (new Select(['noodle[' . $target->id . '][place]']))->items(Combo::place())->default($target->place())->render() . ' |
+ ' . (new Input(['noodle[' . $target->id . '][css]']))->size(20)->maxlenght(255)->value($target->css())->render() . ' |
.noodles-' . $target->id . '{} |