Skip to content

Commit d3de8ca

Browse files
committed
Merge remote-tracking branch 'origin/maintenance/clean-up-js-files' into test
2 parents 0ed272b + 8863a2e commit d3de8ca

37 files changed

+63
-126
lines changed

hypha/apply/activity/templates/activity/include/comment_form.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
>
1111
{% csrf_token %}
1212

13-
{{ comment_form.media }}
1413
{% for hidden in comment_form.hidden_fields %}
1514
{{ hidden }}
1615
{% endfor %}

hypha/apply/dashboard/templates/dashboard/contracting_dashboard.html

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,3 @@ <h4 class="heading heading--normal">{% trans "PAFs for review" %}</h4>
3434
{% endif %}
3535
</div>
3636
{% endblock %}
37-
38-
{% block extra_js %}
39-
<script src="{% static 'js/submission-filters.js' %}"></script>
40-
<script src="{% static 'js/tabs.js' %}"></script>
41-
{% endblock %}

hypha/apply/dashboard/templates/dashboard/finance_dashboard.html

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,3 @@ <h4 class="heading heading--normal">{% trans "PAFs for review" %}</h4>
100100

101101
</div>
102102
{% endblock %}
103-
104-
{% block extra_js %}
105-
{{ my_reviewed.filterset.form.media.js }}
106-
<script src="{% static 'js/submission-filters.js' %}"></script>
107-
{% endblock %}

hypha/apply/dashboard/templates/dashboard/reviewer_dashboard.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22
{% load render_table from django_tables2 %}
33
{% load i18n static statusbar_tags workflow_tags %}
44

5-
{% block extra_css %}
6-
{{ filter.form.media.css }}
7-
{% endblock %}
8-
95
{% block title %}{% trans "Dashboard" %}{% endblock %}
106

117
{% block content %}
@@ -90,6 +86,10 @@ <h2 class="text-xl mb-2">
9086

9187
{% endblock %}
9288

89+
{% block extra_css %}
90+
{{ filter.form.media.css }}
91+
{% endblock %}
92+
9393
{% block extra_js %}
9494
{{ filter.form.media.js }}
9595
<script src="{% static 'js/submission-filters.js' %}"></script>

hypha/apply/dashboard/templates/dashboard/staff_dashboard.html

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22
{% load render_table from django_tables2 %}
33
{% load i18n static nh3_tags markdown_tags heroicons %}
44

5-
{% block extra_css %}
6-
{{ my_reviewed.filterset.form.media.css }}
7-
{% endblock %}
8-
95
{% block title %}{% trans "Dashboard" %}{% endblock %}
106

117
{% block content %}
@@ -136,9 +132,12 @@ <h2 class="heading heading--normal">{{ review_heading }}</h2>
136132
</div>
137133
{% endblock %}
138134

135+
{% block extra_css %}
136+
{{ my_reviewed.filterset.form.media.css }}
137+
{% endblock %}
138+
139139
{% block extra_js %}
140140
{{ my_reviewed.filterset.form.media.js }}
141141
<script src="{% static 'js/all-submissions-table.js' %}"></script>
142142
<script src="{% static 'js/submission-filters.js' %}"></script>
143-
<script src="{% static 'js/tabs.js' %}"></script>
144143
{% endblock %}

hypha/apply/determinations/templates/determinations/base_determination_form.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
action="" method="post"
3131
x-data="{ isFormSubmitting: false }"
3232
x-on:submit="isFormSubmitting = true">
33-
{{ form.media }}
3433
{% csrf_token %}
3534
{% for hidden in form.hidden_fields %}
3635
{{ hidden }}

hypha/apply/funds/templates/funds/application_base.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ <h3>{% blocktrans %}Sorry this {{ page|verbose_name }} is not accepting applicat
3939
</a>
4040
{% endif %}
4141
<form class="form application-form" action="/test500/" method="POST" enctype="multipart/form-data">
42-
{{ form.media }}
4342
{% csrf_token %}
4443

4544
{% for field in form %}
@@ -90,7 +89,6 @@ <h3>{% blocktrans %}Sorry this {{ page|verbose_name }} is not accepting applicat
9089
<script src="{% static 'js/application-form.js' %}"></script>
9190
<script src="{% static 'js/tinymce-word-count.js' %}"></script>
9291
<script src="{% static 'js/submission-form-copy.js' %}"></script>
93-
<script src="{% static 'js/application-form-links-new-window.js' %}"></script>
9492
{% if not show_all_group_fields %}
9593
<script src="{% static 'js/form-group-toggle.js' %}"></script>
9694
{% endif %}

hypha/apply/funds/templates/funds/applicationsubmission_community_detail.html

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,3 @@ <h5>{% trans "Reviews & assignees" %}</h5>
2222

2323
{% block related %}
2424
{% endblock %}
25-
26-
{% block extra_js %}
27-
{{ reviewer_form.media.js }}
28-
{{ block.super }}
29-
{% endblock %}

hypha/apply/funds/templates/funds/applicationsubmission_detail.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,12 @@ <h4 class="m-0 sr-only">{% trans "Add communication" %}</h4>
261261
</div>
262262
{% endblock %}
263263

264+
{% block extra_css %}
265+
{{ comment_form.media.css }}
266+
{% endblock %}
267+
264268
{% block extra_js %}
269+
{{ comment_form.media.js }}
265270
<script src="{% static 'js/tabs.js' %}"></script>
266271
<script src="{% static 'js/submission-text-cleanup.js' %}"></script>
267272
<script>

hypha/apply/funds/templates/funds/applicationsubmission_form.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
<div class="wrapper--sidebar--inner">
1515
<form class="form application-form" action="" method="post" enctype="multipart/form-data">
1616
{% csrf_token %}
17-
{{ form.media }}
1817

1918
{% for field in form %}
2019
{% if field.field %}
@@ -46,10 +45,10 @@
4645
{% endblock %}
4746

4847
{% block extra_js %}
48+
<script src="{% static 'js/application-form.js' %}"></script>
4949
<script src="{% static 'js/tinymce-word-count.js' %}"></script>
5050
<script src="{% static 'js/multi-input-fields.js' %}"></script>
5151
<script src="{% static 'js/submission-form-copy.js' %}"></script>
52-
<script src="{% static 'js/application-form-links-new-window.js' %}"></script>
5352
{% if not show_all_group_fields %}
5453
<script src="{% static 'js/form-group-toggle.js' %}"></script>
5554
{% endif %}

0 commit comments

Comments
 (0)