Skip to content

Commit

Permalink
fir_auth_2fa: show navbar during setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Augustin-FL committed Dec 28, 2024
1 parent ea231e2 commit eb25d01
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 28 deletions.
36 changes: 10 additions & 26 deletions fir_auth_2fa/templates/two_factor/_base.html
Original file line number Diff line number Diff line change
@@ -1,30 +1,14 @@
{% extends "base.html" %}
{% load i18n %}
{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>{% trans "Sign in &middot; FIR" %}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">

<link href="{% static "css/bootstrap.min.css" %}" rel="stylesheet">
<link href="{% static "custom_css/fir.css" %}" rel="stylesheet">
<link href="{% static "custom_css/login.css" %}" rel="stylesheet">
{% block extra_media %}{% endblock %}
{% block content_wrapper %}
<div class="container">
<div class="row justify-content-md-center">
<div class="col-sm-8 col-sm-offset-4 col-xs-12 col-xs-offset-0">
{% block content %}{% endblock %}
</div>
</div>
</div>
{% endblock %}

<!-- Fav and touch icons -->
<link rel="shortcut icon" href="{% static "img/favicon.png" %}">
</head>

<body>
{% block content_wrapper %}
<div class="container">
{% block content %}{% endblock %}
</div>
{% endblock %}
<script src="{% static "js/jquery.min.js" %}"></script>
<script src="{% static "js/bootstrap.min.js" %}"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion fir_auth_2fa/templates/two_factor/login.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends "two_factor/_base.html" %}
{% extends "incidents/login.html" %}
{% load i18n %}
{% load field_type %}
{% load static %}
Expand Down
4 changes: 3 additions & 1 deletion incidents/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,9 @@

<div class="container-fluid mt-2 pt-2">
{% block header %}{% endblock %}
{% block content %}{% endblock %}
{% block content_wrapper %}
{% block content %}{% endblock %}
{% endblock%}
</div>

<!-- Le javascript
Expand Down
2 changes: 2 additions & 0 deletions incidents/templates/incidents/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
<body>

<div class="container">
{% block content %}
<div class="row justify-content-md-center">
<div class="col-sm-5 col-sm-offset-4 col-xs-12 col-xs-offset-0">
<form class="form-signin p-4" method="post">
Expand Down Expand Up @@ -52,6 +53,7 @@ <h2 class="form-signin-heading">{% trans "Sign in to FIR" %}</h2>
{% endif %}
</div>
</div>
{% endblock %}
</div>

<script src="{% static "js/jquery.min.js" %}"></script>
Expand Down

0 comments on commit eb25d01

Please sign in to comment.