{% extends "two_factor/_base_focus.html" %} {% load i18n users_tags %} {% block content %}

{% trans "Back to account" %}

{% block title %}{% trans "Backup Codes" %}{% endblock %}

{% blocktrans trimmed %}These codes should be kept in a safe, private place for when you need them. When they are used up, you can generate a new set of backup codes.{% endblocktrans %}

{% if device.token_set.count %}

{% blocktrans %}You should now download, or print these codes, and keep them somewhere safe.{% endblocktrans %}

{% csrf_token %}{{ form }} {% trans "Save Codes" %}
{% else %}

{% trans "You don't have any backup codes yet." %}

{% csrf_token %}{{ form }}
{% endif %} {% endblock %}