Flask-Project-Template/src/core/templates/layout.html

69 lines
2.1 KiB
HTML
Raw Normal View History

2019-12-14 23:03:06 +00:00
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
{% if title %}
<title>{{title}}</title>
{% else %}
2019-12-14 23:14:14 +00:00
<title>App</title>
2019-12-14 23:03:06 +00:00
{% endif %}
2020-01-12 21:08:45 +00:00
<!-- Site CSS -->
2020-01-12 20:24:44 +00:00
{% block header_css %}
2020-01-12 21:08:45 +00:00
<!-- Bootstrap CSS -->
<link rel="shortcut icon" href="{{ url_for('static', filename='favicon.ico') }}">
<link rel="stylesheet" href="{{ url_for('static', filename='css/bootstrap/bootstrap.min.css')}}">
<link rel="stylesheet" href="{{ url_for('static', filename='css/bootstrap/bootstrap-datepicker.css')}}">
<link rel="stylesheet" href="{{ url_for('static', filename='css/main.css')}}">
{% block header_css_additional %}
{% endblock header_css_additional %}
2019-12-14 23:14:14 +00:00
{% endblock %}
2020-01-12 20:24:44 +00:00
{% block header_scripts %}
2020-01-12 21:08:45 +00:00
{% block header_scripts_additional %}
{% endblock header_scripts_additional %}
2019-12-14 23:14:14 +00:00
{% endblock %}
2019-12-14 23:03:06 +00:00
</head>
<body>
2020-01-12 21:08:45 +00:00
<img id="bg" src="{{ url_for('static', filename='imgs/backgrounds/background.jpg')}}" alt="{{title}} Background Logo" />
2019-12-14 23:03:06 +00:00
2020-01-12 20:24:44 +00:00
{% block body_header %}
2020-01-12 21:08:45 +00:00
{% include "body-header.html" %}
{% block body_header_additional %}
{% endblock body_header_additional%}
2020-01-12 20:24:44 +00:00
{% endblock %}
2019-12-14 23:03:06 +00:00
2020-01-12 21:08:45 +00:00
{% block body_content %}
{% block body_content_additional %}
{% endblock body_content_additional%}
2019-12-14 23:03:06 +00:00
{% endblock %}
2020-01-12 20:24:44 +00:00
{% block body_footer %}
2020-01-12 21:08:45 +00:00
{% include "body-footer.html" %}
2020-01-12 20:24:44 +00:00
2020-01-12 21:08:45 +00:00
{% block body_footer_additional %}
{% endblock body_footer_additional%}
{% endblock %}
2019-12-14 23:03:06 +00:00
2020-01-12 20:24:44 +00:00
{% block body_scripts %}
2020-01-12 21:08:45 +00:00
<!-- For Bootstrap in this exact order... -->
<script src="{{ url_for('static', filename='js/bootstrap/jquery-3.3.1.slim.min.js')}}"></script>
<script src="{{ url_for('static', filename='js/bootstrap/popper.min.js')}}"></script>
<script src="{{ url_for('static', filename='js/bootstrap/bootstrap.min.js')}}"></script>
<!-- For DatePicker -->
<script src="{{ url_for('static', filename='js/bootstrap/moment.min.js')}}"></script>
<script src="{{ url_for('static', filename='js/bootstrap/bootstrap-datepicker.min.js')}}"></script>
{% block body_scripts_additional %}
{% endblock body_scripts_additional%}
2019-12-14 23:03:06 +00:00
{% endblock %}
</body>
</html>