Skip to content

Commit 7d2e84b

Browse files
committed
Load comment_form.media on submission and project detail templates directly.
1 parent 35d6ca7 commit 7d2e84b

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
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/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/projects/templates/application_projects/project_detail.html

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

239239

240+
{% block extra_css %}
241+
{{ comment_form.media.css }}
242+
{% endblock %}
243+
240244
{% block extra_js %}
245+
{{ comment_form.media.js }}
241246
<script src="{% static 'js/tabs.js' %}"></script>
242247
<script src="{% static 'js/past-reports-pagination.js' %}"></script>
243248
<script src="{% static 'js/report-calculator.js' %}"></script>

0 commit comments

Comments
 (0)