Template source: accounts/_modal-login.html

{% load i18n staticfiles publication_tags crispy_forms_filters %} <div class="modal fade" id="modal-login" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"> <div class="modal-dialog modal-sm" role="document"> {% if not request.user.is_authenticated %} <form action="{% url 'account_login' %}" method="post"> {% csrf_token %} <div class="modal-content"> <div class="modal-header mainbg"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button> <img src="/static/dist/images/logo.png"> </div> <div class="modal-body form-group"> <input type="text" name="username" placeholder="Email" required/> <input type="password" name="password" placeholder="Password" required/> <small><a href="{% url 'accounts_password_reset' %}">{% trans "Reset my password" %}</a></small> <input type="hidden" name="next" value="{{ next }}"/> <span class="small">{% trans "Don't have an account?" %} <a href="{% url 'signup' %}">{% trans "Create an account" %}</a>.</span> {% comment %} {% include 'facebook_auth/auth_btn.html' %} {% include 'facebook_auth/auth_js.html' %} {% endcomment %} </div> <div class="modal-footer"> <button id="modal-login-btn" type="submit" class="btn btn-primary btn-full">{% trans "Login" %}</button> </div> </div> </form> {% else %} <div class="modal-content"> <div class="modal-header mainbg"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button> <img src="/static/dist/images/logo.png"> </div> </div> <div class="modal-body form-group" style="background-color: white"> <p>{% trans "Logged in as:" %} <a href="#">{{ request.user.full_name }}</a></p> <a href="/accounts/logout">{% trans "Logout" %}</a> </div> {% endif %} </div> </div>