Browse Source

Přidán {{form.media}} rovnou do hlavičky všeho

Stejně je často potřeba (libovolný autocomplete) a akorát hrozí, že se
na to zapomene.
export_seznamu_prednasek
Pavel "LEdoian" Turinsky 4 years ago
parent
commit
ba8cd2e297
  1. 4
      mamweb/templates/base.html
  2. 2
      seminar/templates/seminar/profil/edit.html
  3. 2
      seminar/templates/seminar/profil/nahraj_reseni.html
  4. 2
      seminar/templates/seminar/profil/prihlaska.html

4
mamweb/templates/base.html

@ -31,6 +31,10 @@
src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.6/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>
{# Případné skripty widgetů formulářů #}
{% if form %}
{{form.media}}
{% endif %}
{# script specifický pro stránku #}
{% block script %}{% endblock %}

2
seminar/templates/seminar/profil/edit.html

@ -2,8 +2,6 @@
{% load staticfiles %}
{% block script %}
<!--script type="text/javascript" src="{% static 'admin/js/vendor/jquery/jquery.js' %}"></script!-->
{{form.media}}
<script src="{% static 'seminar/prihlaska.js' %}"></script>
{% endblock %}

2
seminar/templates/seminar/profil/nahraj_reseni.html

@ -1,8 +1,6 @@
{% extends "base.html" %}
{% load staticfiles %}
{% block script %}
<!--script type="text/javascript" src="{% static 'admin/js/vendor/jquery/jquery.js' %}"></script!-->
{{form.media}}
<script src="{% static 'seminar/dynamic_formsets.js' %}"></script>
{% endblock %}

2
seminar/templates/seminar/profil/prihlaska.html

@ -2,8 +2,6 @@
{% load staticfiles %}
{% block script %}
<!--script type="text/javascript" src="{% static 'admin/js/vendor/jquery/jquery.js' %}"></script!-->
{{form.media}}
<script src="{% static 'seminar/prihlaska.js' %}"></script>
{% endblock %}

Loading…
Cancel
Save