Skip to content

Commit

Permalink
Clean up sow form js and css loading.
Browse files Browse the repository at this point in the history
  • Loading branch information
frjo committed Jan 2, 2025
1 parent 8432647 commit 7c64b8d
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
<div class="wrapper--sidebar--inner">
<form class="form application-form" action="" method="post" enctype="multipart/form-data">
{% csrf_token %}
{{ sow_form.media }}
{% for field in sow_form %}
{% if field.field %}
{% if field.field.multi_input_field %}
Expand Down Expand Up @@ -65,11 +64,14 @@ <h5>{% trans "Proposal attachments" %}</h5>

{% endblock %}

{% block extra_css %}
{{ sow_form.media.css }}
{% endblock %}

{% block extra_js %}
<script src="{% static 'js/file-uploads.js' %}"></script>
{{ sow_form.media.js }}
<script src="{% static 'js/tinymce-word-count.js' %}"></script>
<script src="{% static 'js/multi-input-fields.js' %}"></script>
<script src="{% static 'js/application-form-links-new-window.js' %}"></script>
{% if not show_all_group_fields %}
<script src="{% static 'js/form-group-toggle.js' %}"></script>
{% endif %}
Expand Down

0 comments on commit 7c64b8d

Please sign in to comment.