Source

webwork / src / java / template / xhtml / checkbox.vm

Full commit
#if( $fieldErrors.get($parameters.name) )
  #set ($hasFieldErrors = $fieldErrors.get($parameters.name))
  #foreach ($error in $fieldErrors.get($parameters.name))
    <tr>
        <td align="left" valign="top" colspan="2">
            <span class="errorMessage">$!error</span>
        </td>
    </tr>
  #end
#end

<tr>
    <td  valign="top" colspan="2">
#* Use an extra table so that the checkbox doesn't align with the other columns. *#
<table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr><td valign="top">
#parse("/template/simple/checkbox.vm")
    </td>
    <td width="100%" valign="top">
        #if ($hasFieldErrors)
            <span class="checkboxErrorLabel">
        #else
            <span class="checkboxLabel">
        #end
                $!webwork.htmlEncode($parameters.label)
            </span>
    </td>
    </tr>
</table>
#parse("/template/xhtml/controlfooter.vm")