auth.html 494 B

123456789101112
  1. {% load i18n %}
  2. <form id="hidden-login-form" method="post" action="{% url LOGIN_URL %}" style="display: none;">
  3. {% csrf_token %}
  4. <input name="redirect_to" type="text">
  5. <input type="submit" id="signin-button" value="{% trans "Sign in" %}">
  6. </form>
  7. {% if user.is_authenticated %}
  8. <form id="hidden-logout-form" method="post" action="{% url LOGOUT_URL %}" style="display: none;">
  9. {% csrf_token %}
  10. <input type="submit" id="signin-button" value="{% trans "Log out" %}">
  11. </form>
  12. {% endif %}