the following form is created by passing a model to a Form using
Now, I would like to have Start Date and Start Time in one row. If the form fields were not created by
setModel(), I would simply use
Form->addGroup() to achieve what I want.
The only solution I can think of is to only load the fields which are displayed before, then add a the groups, then add the fields that come after, something like this, not too nice:
$tour = $tour_form->setModel(new Pmg\Tour($app->db), ['name', 'tour_type_id', 'meeting_point_id']);
$start = $tour_form->addGroup('Start');
$end = $tour_form->addGroup('Start');
Is there a better way to achieve what I want? Actually I can well think of having a template for each form which defines exactly where which Field is displayed, but that would mean quite a rewrite of
FormLayout\Generic->recursiveRender() as far as I understand now.