We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d453775 commit 667ca66Copy full SHA for 667ca66
templates/PaymentOrder/form.html.twig
@@ -3,6 +3,12 @@
3
{% block card_title %}<i class="fas fa-file-invoice-dollar fa-fw"></i> {% trans %}payment_order.new{% endtrans %}{% endblock %}
4
5
{% block head_javascripts %}
6
+ {# Only allow to upload PDF: change the accept filter of the file input, as soon as the DOM is available #}
7
+ <script>
8
+ document.addEventListener('DOMContentLoaded', function() {
9
+ document.getElementById('payment_order_references_file_file').accept = '.pdf';
10
+ });
11
+ </script>
12
{% endblock %}
13
14
{% block card_content %}
0 commit comments