Erzeuge dir ein eigenes form_row Template mit folgendem Inhalt:
PHP-Code:
<div class="<?= $this->prefix ?><?php if ($this->class) echo ' ' . $this->class; ?> widget--<?= $this->name ?>">
<div class="inside">
<?php $this->block('label'); ?>
<?php $this->endblock(); ?>
<?php $this->block('field'); ?>
<?php $this->endblock(); ?>
</div>
</div>
Und ein form_row_double Template mit folgendem Inhalt:
PHP-Code:
<div class="<?= $this->prefix ?><?php if ($this->class) echo ' ' . $this->class; ?> widget--<?= $this->name ?>">
<div class="inside">
<?php $this->block('label'); ?>
<?php $this->endblock(); ?>
<?php $this->block('field'); ?>
<?php $this->endblock(); ?>
</div>
</div>
<div class="<?= $this->prefix ?> confirm<?php if ($this->class) echo ' ' . $this->class; ?> widget--<?= $this->name ?>--confirm">
<div class="inside">
<?php $this->block('label2'); ?>
<?php $this->endblock(); ?>
<?php $this->block('field2'); ?>
<?php $this->endblock(); ?>
</div>
</div>
Nun hast du auf dem .widget Wrapper auch noch eine Klasse je nach Feldname des Widgets.
Lesezeichen