Commit 3663cd40 authored by Melissa Draper's avatar Melissa Draper Committed by Gerrit Code Review
Browse files

Merge "Allow html to appear between label and element in pieforms"

parents 3429737a cf4e2daa
......@@ -47,6 +47,10 @@ function pieform_renderer_div(Pieform $form, $element) {/*{{{*/
$result .= $element['labelhtml'];
}
if (isset($element['prehtml'])) {
$result .= $element['prehtml'];
}
//$result .= $builtelement;
$result .= $element['html'];
......
......@@ -55,6 +55,10 @@ function pieform_renderer_oneline(Pieform $form, $element) {/*{{{*/
$result .= $element['labelhtml'];
}
if (isset($element['prehtml'])) {
$result .= $element['prehtml'];
}
$result .= $element['html'];
$result .= "</span>";
......
......@@ -74,6 +74,9 @@ function pieform_renderer_table(Pieform $form, $element) {/*{{{*/
$result .= $element['labelhtml'];
}
$result .= "</th>\n\t\t<td>";
if (isset($element['prehtml'])) {
$result .= $element['prehtml'];
}
$result .= $element['html'];
if (isset($element['helphtml'])) {
$result .= ' ' . $element['helphtml'];
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment