<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ZapCheckBox.ascx.cs" Inherits="Zap.BI.Portal.Controls.UserControls.ZapCheckBox" %>
<%@ Import Namespace="Zap.BI.Portal.Helpers" %>
<%@ Import Namespace="Zap.Text" %>
<% if (PortalSwitch.FourStateCheckboxes.Enabled)
   { %>
        <span class="checkbox ui-input <%= CssClass %>" <%= Checked ? "checked" : string.Empty %> <%= Disabled ? "disabled" : string.Empty %> value="<%= Value %>" id="<%= ClientID %>" >
            <span class="checkbox-check"></span>
            <span class="checkbox-label"><%= Text %></span>
        </span>
<% }
   else
   { %>
        <label class="ui-checkbox">
            <input type="checkbox" class="<%= CssClass %>" <%= Checked ? "checked" : string.Empty %> <%= Disabled ? "disabled" : string.Empty %> value="<%= Value %>" id="<%= ClientID %>" />
            <% if (Text.IsNotEmpty())
               { %>
                <span class="ui-checkbox-label"><%= Text %></span>
            <% } %> 
        </label>
<% } %> 