Skip to content
Snippets Groups Projects
Commit 2315423a authored by Todd Dembrey's avatar Todd Dembrey
Browse files

Make the Javascript work by moving the main js to the head

parent 3f823b7b
No related branches found
No related tags found
No related merge requests found
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
<h3>{% trans "Sorry this fund is not accepting applications at the moment" %}</h3> <h3>{% trans "Sorry this fund is not accepting applications at the moment" %}</h3>
{% else%} {% else%}
<form class="form" action="" method="POST"> <form class="form" action="" method="POST">
{{ form.media }}
{% csrf_token %} {% csrf_token %}
{% for field in form %} {% for field in form %}
...@@ -41,8 +42,3 @@ ...@@ -41,8 +42,3 @@
{% endif %} {% endif %}
</div> </div>
{% endblock %} {% endblock %}
{% block extra_js %}
{{ form.media }}
{% endblock %}
...@@ -53,6 +53,8 @@ ...@@ -53,6 +53,8 @@
<link rel="stylesheet" type="text/css" href="{% static 'css/main.css' %}"> <link rel="stylesheet" type="text/css" href="{% static 'css/main.css' %}">
{% block extra_css %}{% endblock %} {% block extra_css %}{% endblock %}
<script type="text/javascript" src="{% static 'js/main.js' %}"></script>
</head> </head>
<body class="{% block body_class %}template-{{ page.get_verbose_name|slugify }}{% endblock %}"> <body class="{% block body_class %}template-{{ page.get_verbose_name|slugify }}{% endblock %}">
...@@ -236,7 +238,6 @@ ...@@ -236,7 +238,6 @@
</footer> </footer>
<script type="text/javascript" src="{% static 'js/main.js' %}"></script>
<script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script> <script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
<script type="text/javascript"> <script type="text/javascript">
function googleTranslateElementInit() { function googleTranslateElementInit() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment