disable-two-factor.html 832 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
{% extends "dashboard/base.html" %}
{% load i18n %}
{% load crispy_forms_tags %}

{% block content %}
<div class="row">
  <div class="col-md-12">
    <div class="panel panel-default">
      <div class="panel-heading">
        <h3 class="no-margin">
          <i class="fa fa-unlock"></i>
          {% trans "Disable two-factor authentication" %}
        </h3>
      </div>
      <div class="panel-body">
        <form action="" method="POST">
          {% csrf_token %}
          <input type="hidden" value="" name="{{ form.two_factor_secret.name }}"/>
          {{ form.confirmation_code|as_crispy_field }}
          <button type="submit" class="btn btn-warning">
            <i class="fa fa-unlock"></i>
            {% trans "Disable" %}
          </button>
        </form>
      </div>
    </div>
  </div>
</div>

{% endblock %}