<?xml version="1.0"?>
<xsp:page xmlns:xsp="http://apache.org/xsp">
    <sdx:page  xmlns:sdx="http://www.culture.gouv.fr/ns/sdx/sdx" langSession="lang" langParam="lang">
        <loginForm/>
        <sdx:login>
            <identified/>
            <sdx:fallback>
                <xsp:logic>
                // only if trying to go in
                if (request.getParameter("id")!=null) {<notadmin/>}
            </xsp:logic>
            </sdx:fallback>
        </sdx:login>
        <sdx:logout/>
        <sdx:userIsAdminOrSu>
            <admin/>
            <sdx:fallback>
                <not-admin/>
            </sdx:fallback>
        </sdx:userIsAdminOrSu>
        <sdx:userIsAdminOrSu>
            <bar>
                <button id="welcome" href="index.xsp"/>
                <button id="login" href="login.xsp" self="true"/>
                <button id="identities" href="identities.xsp"/>
                <button id="bases" href="bases.xsp"/>
                <button id="explorer" href="explorer.xsp"/>
            </bar>
            <sdx:fallback>
                <bar>
                    <button id="welcome" href="index.xsp"/>
                    <button id="login" href="login.xsp" self="true"/>
                </bar>
            </sdx:fallback>
        </sdx:userIsAdminOrSu>
    </sdx:page>
</xsp:page>
