init
This commit is contained in:
27
templates/base.html
Normal file
27
templates/base.html
Normal file
@@ -0,0 +1,27 @@
|
||||
<!doctype html>
|
||||
<html lang="pl">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>{% block title %}Książka adresowa{% endblock %}</title>
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<h1><a href="{{ url_for('index') }}">Książka adresowa</a></h1>
|
||||
<nav>
|
||||
<a class="btn primary" href="{{ url_for('new') }}">+ Dodaj kontakt</a>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
{% if error %}
|
||||
<div class="alert">{{ error }}</div>
|
||||
{% endif %}
|
||||
|
||||
<main>
|
||||
{% block content %}{% endblock %}
|
||||
</main>
|
||||
|
||||
<footer>WMT - CRUD - Flask - SQLAlchemy ORM - SQLite</footer>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user