Отображаемые шаблоны приведены к bootstrap-виду

This commit is contained in:
2022-04-19 23:46:00 +03:00
parent 50549ed821
commit 23761b3d25
41 changed files with 491 additions and 429 deletions

View File

@@ -6,11 +6,13 @@
<html lang="en">
<head>
<title>WhereToGo</title>
<title>{% block head_title %}{% endblock %}</title>
<link rel="icon" type="image/x-icon" href="{% static 'img/favicon.ico' %}">
<link rel="stylesheet" href="{% static 'css/bootstrap.min.css' %}">
<script type = "text/javascript" src="{% static 'js/bootstrap.bundle.min.js' %}"></script>
{% csrf_token %}
{% block extra_head %}
{% endblock %}
</head>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
@@ -48,6 +50,17 @@
<body>
{% if messages %}
{% for message in messages %}
<div class="alert {{ message.tags }} alert-dismissible shadow fade show" role="alert">
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close">
<span aria-hidden="true"></span>
</button>
{{ message | safe }}
</div>
{% endfor %}
{% endif %}
{% block content %}{% endblock %}
{% block scripts %}{% endblock %}

View File

@@ -1 +1,3 @@
{% extends "common/base.html" %}
{% extends "common/base.html" %}
{% block head_title %}WhereToGo{% endblock %}