templates: output form.media in base template (#24439)

It's the new habit downstream.
This commit is contained in:
Benjamin Dauvergne 2018-07-19 14:28:10 +02:00
parent c5c0764c05
commit da0ab04ab0
3 changed files with 2 additions and 21 deletions

View File

@ -1,16 +1,6 @@
{% extends "authentic2/base-page.html" %}
{% load i18n %}
{% block css %}
{{ block.super }}
{{ form.media.css }}
{% endblock %}
{% block extra_scripts %}
{{ block.super }}
{{ form.media.js }}
{% endblock %}
{% block page-title %}
{{ block.super }} - {{ view.title }}
{% endblock %}

View File

@ -9,10 +9,12 @@
{{ block.super }}
<link rel="stylesheet" href="{{ STATIC_URL }}authentic2/css/style.css" />
{% renderblock "css" %}
{{ form.media.css }}
{% endblock %}
{% block extrascripts %}
{{ block.super }}
{{ form.media.js }}
{% comment %}block extra_scripts is kept for compatibility with old themes{% endcomment %}
{% block extra_scripts %}
{% endblock %}

View File

@ -2,17 +2,6 @@
{% load i18n %}
{% load breadcrumbs %}
{% block css %}
{{ block.super }}
{{ form.media.css }}
{% endblock %}
{% block extra_scripts %}
{{ block.super }}
{{ form.media.js }}
{% endblock %}
{% block title %}
{% trans "Registration" %}
{% endblock %}