Add form media to each page

This commit is contained in:
Yohann D'ANELLO 2020-02-08 20:27:22 +01:00
parent c053235996
commit 7bafc89713
3 changed files with 6 additions and 8 deletions

View File

@ -31,6 +31,12 @@ SPDX-License-Identifier: GPL-3.0-or-later
crossorigin="anonymous"> crossorigin="anonymous">
<link rel="stylesheet" <link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css"> href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
{# Si un formulaire requiert des données supplémentaires (notamment JS), les données sont chargées #}
{% if form.media %}
{{ form.media }}
{% endif %}
{% block extracss %}{% endblock %} {% block extracss %}{% endblock %}
</head> </head>
<body> <body>

View File

@ -35,7 +35,3 @@ SPDX-License-Identifier: GPL-2.0-or-later
<input type="submit" value="{% trans 'Transfer' %}"> <input type="submit" value="{% trans 'Transfer' %}">
</form> </form>
{% endblock %} {% endblock %}
{% block extracss %}
{{ form.media }}
{% endblock extracss %}

View File

@ -9,7 +9,3 @@
<button class="btn btn-primary" type="submit">Submit</button> <button class="btn btn-primary" type="submit">Submit</button>
</form> </form>
{% endblock %} {% endblock %}
{% block extracss %}
{{ form.media }}
{% endblock extracss %}