#if ($textUtil.stringSet($parameters.yesno))
    #set ($positive = "$action.getText('yes.name')")
    #set ($negative = "$action.getText('no.name')")
#else
    #set ($positive = "$action.getText('common.words.on.small')")
    #set ($negative = "$action.getText('common.words.off.small')")
#end

#set( $labelValue = $i18n.getText($parameters.label) )
#if( !$labelValue )
    #set( $labelValue = $parameters.label )
#end

#if ($parameters.description)
    #if ($i18n.getText($parameters.description))
        #set ($description = $i18n.getText($parameters.description))
    #else
        #set ($description = $parameters.description)
    #end
#end

<div class="checkboxes">
    #if ($editMode == false)
            #onoffAUI($parameters.name $parameters.nameValue)
            <label for="${parameters.name}">$labelValue</label>
        #if ($parameters.description)
            <span class="description">$parameters.description</span>
        #end
    #else
        <input type="checkbox" class="checkbox" value="true" name="$parameters.name"
        #if($parameters.disabled) disabled #end
        #if ($parameters.nameValue == 'true') checked="checked" #end
        id="${parameters.name}">
        <label for="${parameters.name}">$labelValue</label>
        #if ($parameters.description)
            <span class="description">$parameters.description</span>
        #end
    #end
</div>