<%def name="form(scenario='login')">
<% login_types = h.allowed_login_types() %>

%if 'openid' in login_types or 'facebook' in login_types:
<div class="sso_form">

    <p class="sso_warning">${_(u'You can log in using various external user accounts. Please be aware that the login via external providers may cause security and privacy related risks.')}</p>

    %if 'openid' in login_types:
    <% c.openid_scenario = scenario %>
    <%include file="/openid/form.html" />
    %elif 'facebook' in login_types:
    <form id="facebook_login_form" action="${h.velruse_url('/login/facebook')}" method="post">
        <input type="image" src="/velruse/active_404.png" value="${_('Login with Facebook')}" />
    </form>
    %endif
</div>
%endif
</%def>
