diff --git a/opentech/apply/funds/templates/funds/fund_type.html b/opentech/apply/funds/templates/funds/fund_type.html index 6036836f750b1e88fa4db21420b910472e742d96..747edab9c4183329247b8b576e68001566225a45 100644 --- a/opentech/apply/funds/templates/funds/fund_type.html +++ b/opentech/apply/funds/templates/funds/fund_type.html @@ -27,9 +27,8 @@ <h3>{% trans "Sorry this fund is not accepting applications at the moment" %}</h3> {% else%} <form class="form" action="" method="POST"> - {{ form.media }} {% csrf_token %} - + {% for field in form %} {% if field.field %} {% include "funds/includes/field.html" %} @@ -42,3 +41,8 @@ {% endif %} </div> {% endblock %} + + +{% block extra_js %} + {{ form.media }} +{% endblock %} diff --git a/opentech/apply/funds/widgets.py b/opentech/apply/funds/widgets.py index 99b9c9e6c5967898f255b729e3b16b75aa6a1481..4681d786419132c0a8ac44bbd75dc34732d3d95f 100644 --- a/opentech/apply/funds/widgets.py +++ b/opentech/apply/funds/widgets.py @@ -60,7 +60,6 @@ class AddressWidget(NestedMultiWidget): class Media: js = ( - "http://code.jquery.com/jquery-3.3.1.min.js", 'https://cdn.jsdelivr.net/npm/jquery.addressfield@1.1.0/dist/jquery.addressfield.js', "address_form.js", )