{*
 **********************************************************
 * Developed by: Team Theme Metro
 * Website: http://www.thememetro.com
 **********************************************************
*}


{if $showSsoSetting}
    <div class="card">
        <div class="card-body">
            <h3 class="card-title">{lang key='sso.title'}</h3>

            {include file="$template/includes/alert.tpl" type="success" msg="{lang key='sso.summary'}"}

            <form id="frmSingleSignOn">
                <input type="hidden" name="token" value="{$token}" />
                <input type="hidden" name="action" value="security" />
                <input type="hidden" name="toggle_sso" value="1" />
                <div class="p-2">
                    <input type="checkbox" name="allow_sso" class="toggle-switch-success" id="inputAllowSso"{if $isSsoEnabled} checked{/if}>
                    &nbsp;
                    <span id="ssoStatusTextEnabled"{if !$isSsoEnabled} style="display: none;"{/if}>
                        {lang key='sso.enabled'}
                    </span>
                    <span id="ssoStatusTextDisabled"{if $isSsoEnabled} style="display: none;"{/if}>
                        {lang key='sso.disabled'}
                    </span>
                </div>
            </form>

            <p>{lang key='sso.disablenotice'}</p>
        </div>
    </div>
{/if}
