Commit 7cddb144 authored by Pierre Dittgen's avatar Pierre Dittgen

Templates refactoring + sticky footer

parent 4baa5289
/* http://getbootstrap.com/docs/4.1/examples/sticky-footer-navbar/ */
html {
position: relative;
min-height: 100%;
}
body {
/* Margin bottom by footer height */
margin-bottom: 60px;
}
.footer {
position: absolute;
bottom: 0;
width: 100%;
/* Set the fixed height of the footer here */
height: 60px;
line-height: 60px; /* Vertically center the text there */
background-color: #f5f5f5;
}
\ No newline at end of file
{% extends "base.html" %}
{% extends "base_template.html" %}
{% block title %}{{ title }}{% endblock %}
{% block head %}
{{ super() }}
......
......@@ -9,6 +9,7 @@
<link rel="shortcut icon" href="{{ url_for('static', filename='img/favicon.ico')}}" type="image/x-icon">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="{{url_for('static', filename='css/bootstrap.min.css')}}" crossorigin="anonymous">
<link rel="stylesheet" href="{{url_for('static', filename='css/sticky-footer-navbar.css')}}" crossorigin="anonymous">
<!-- Validata.css -->
<link ref="stylesheet" href="{{url_for('static', filename='css/validata.css')}}" />
......@@ -26,6 +27,7 @@
<ul class="navbar-nav mr-auto">
</ul>
<ul class="navbar-nav">
{#
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdownMenuLink" role="button" data-toggle="dropdown"
aria-haspopup="true" aria-expanded="false">
......@@ -35,6 +37,7 @@
<a class="dropdown-item" href="{{ url_for('about') }}">À propos</a>
</div>
</li>
#}
</ul>
</div>
</nav>
......@@ -72,6 +75,12 @@
<script src="{{url_for('static', filename='js/popper.min.js')}}"></script>
<script src="{{url_for('static', filename='js/bootstrap.min.js')}}"></script>
{% block footer %}{% endblock %}
<footer class="footer">
<div class="container">
<span class="muted">Une réalisation de <a href="http://www.opendatafrance.net/">Opendata France</a> avec
l'aide de <a href="https://jailbreak.paris">JailBreak</a></span>
</div>
</footer>
</body>
</html>
\ No newline at end of file
{% extends "base.html" %}
{% extends "base_template.html" %}
{% block title %}{{ title }}{% endblock %}
{% block head %}
{{ super() }}
......
{% extends "base.html" %}
{% extends "base_template.html" %}
{% block title %}{{ title }}{% endblock %}
{% block head %}
{{ super() }}
......
{% extends "base.html" %}
{% extends "base_template.html" %}
{% block title %}{{ title }}{% endblock %}
{% block head %}
{{ super() }}
......
......@@ -255,7 +255,7 @@ def scdl_validator(val_code):
# First form display
if input_param is None or input_param not in ('url', 'example'):
return render_template('validator.html', title=val_info['title'],
return render_template('validation_form.html', title=val_info['title'],
val_info=val_info,
breadcrumbs=[{'url': url_for('home'), 'title': 'Accueil'}, ])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment