@@ 492-503 (lines=12) @@ | ||
489 | * |
|
490 | * @return Field\Fieldset |
|
491 | */ |
|
492 | public function fieldset(string $title, Closure $setCallback) |
|
493 | { |
|
494 | $fieldset = new Field\Fieldset(); |
|
495 | ||
496 | $this->html($fieldset->start($title))->plain(); |
|
497 | ||
498 | $setCallback($this); |
|
499 | ||
500 | $this->html($fieldset->end())->plain(); |
|
501 | ||
502 | return $fieldset; |
|
503 | } |
|
504 | ||
505 | /** |
|
506 | * @return $this |
@@ 1048-1059 (lines=12) @@ | ||
1045 | * |
|
1046 | * @return Field\Fieldset |
|
1047 | */ |
|
1048 | public function fieldset(string $title, Closure $setCallback) |
|
1049 | { |
|
1050 | $fieldset = new Field\Fieldset(); |
|
1051 | ||
1052 | $this->html($fieldset->start($title))->plain(); |
|
1053 | ||
1054 | $setCallback($this); |
|
1055 | ||
1056 | $this->html($fieldset->end())->plain(); |
|
1057 | ||
1058 | return $fieldset; |
|
1059 | } |
|
1060 | ||
1061 | /** |
|
1062 | * Get validation messages. |