Commit 0c041392 authored by Nigel McNie's avatar Nigel McNie Committed by Nigel McNie
Browse files

Move titles for elements above them, for theme.

parent f9cb4865
...@@ -70,7 +70,7 @@ function pieform_renderer_maharatable(Pieform $form, $builtelement, $rawelement) ...@@ -70,7 +70,7 @@ function pieform_renderer_maharatable(Pieform $form, $builtelement, $rawelement)
$result .= '<label for="' . $rawelement['id'] . '">' . Pieform::hsc($rawelement['title']) . '</label>'; $result .= '<label for="' . $rawelement['id'] . '">' . Pieform::hsc($rawelement['title']) . '</label>';
} }
} }
$result .= "</th>\n\t\t<td>"; $result .= "</th>\n\t</tr>\n\t<tr>\t<td>";
$result .= $builtelement; $result .= $builtelement;
// Contextual help // Contextual help
...@@ -85,13 +85,13 @@ function pieform_renderer_maharatable(Pieform $form, $builtelement, $rawelement) ...@@ -85,13 +85,13 @@ function pieform_renderer_maharatable(Pieform $form, $builtelement, $rawelement)
// Description - optional description of the element, or other note that should be visible // Description - optional description of the element, or other note that should be visible
// on the form itself (without the user having to hover over contextual help // on the form itself (without the user having to hover over contextual help
if (!empty($rawelement['description'])) { if (!empty($rawelement['description'])) {
$result .= "\t<tr>\n\t\t<td colspan=\"2\" class=\"description\">"; $result .= "\t<tr>\n\t\t<td class=\"description\">";
$result .= $rawelement['description']; $result .= $rawelement['description'];
$result .= "</td>\n\t</tr>\n"; $result .= "</td>\n\t</tr>\n";
} }
if (!empty($rawelement['error'])) { if (!empty($rawelement['error'])) {
$result .= "\t<tr>\n\t\t<td colspan=\"2\" class=\"errmsg\">"; $result .= "\t<tr>\n\t\t<td class=\"errmsg\">";
$result .= $rawelement['error']; $result .= $rawelement['error'];
$result .= "</td>\n\t</tr>\n"; $result .= "</td>\n\t</tr>\n";
} }
......
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