But it also works with things like extra text between the label and field:
<p><span class="plominoLabelClass">field1</span></p>
<p class="form-hint">This is some helpful information about the field</p>
<p><span class="plominoFieldClass">field1</span></p>
Unfortunately it falls down when a dynamic field is included between the main label/fields:
<p><span class="plominoLabelClass">field1</span></p>
<p class="form-hint">Current value is: <span class="plominoFieldClass">dynamicTotal</span></p>
<p><span class="plominoFieldClass">field1</span></p>
This Pull Request stops the grouping from dissolving if a dynamic field is included between labels/fields that should normally be grouped together.
The existing
_handleLabels
method inPlominoForm.py
groups labels/fields together - wrapping them in aplominoFieldGroup
div or afieldset
.Normally labels/fields are grouped when they're like this:
But it also works with things like extra text between the label and field:
Unfortunately it falls down when a dynamic field is included between the main label/fields:
This Pull Request stops the grouping from dissolving if a dynamic field is included between labels/fields that should normally be grouped together.