Commit 8d949472 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Set pieform element class in maharatable renderer


Signed-off-by: default avatarRichard Mansfield <richard.mansfield@catalyst.net.nz>
parent fb9b6ff2
......@@ -73,7 +73,11 @@ function pieform_renderer_maharatable(Pieform $form, $element) {
$result .= $element['labelhtml'];
$result .= "</th>\n\t</tr>\n";
}
$result .= "\t<tr id=\"{$formname}_{$element['name']}_container\">\n\t\t<td>";
$result .= "\t<tr id=\"{$formname}_{$element['name']}_container\"";
if ($element['class']) {
$result .= ' class="' . Pieform::hsc($element['class']) . '"';
}
$result .= ">\n\t\t<td>";
// Wrap WYSIWYG elements in a table with two cells side by side, one for the element and one for the help icon
if (!empty($element['help']) && $element['type'] == 'wysiwyg') {
......
Markdown is supported
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