summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2019-10-22 11:14:18 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2019-10-22 11:14:46 (GMT)
commit570c81dfff4bd7fedf91386a298934ac5f676530 (patch)
tree6fc9048eee05d4b6991f74035b001b5a7c54f390
parentc124aa24e66e295e49e2aa97cc29195ce29c66b5 (diff)
downloadpublik-base-theme-master.zip
publik-base-theme-master.tar.gz
publik-base-theme-master.tar.bz2
templates: limit cart@ds accepted files to PDF and JPEG (#37010)HEADv4.85master
-rw-r--r--templates/qommon/forms/widgets/includes/cartads-piece.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/qommon/forms/widgets/includes/cartads-piece.html b/templates/qommon/forms/widgets/includes/cartads-piece.html
index 3308fb6..6ca464f 100644
--- a/templates/qommon/forms/widgets/includes/cartads-piece.html
+++ b/templates/qommon/forms/widgets/includes/cartads-piece.html
@@ -7,7 +7,7 @@
<div class="file-upload-widget short {{ grid }} {% if file.token %}has-file{% endif %}">
<div class="file-button">
<input type="file" data-url="{{ file.url }}"
- {% if not piece.codePiece %}accept="application/pdf"{% endif %}>
+ {% if piece.codePiece %}accept="application/pdf,image/jpeg"{% else %}accept="application/pdf"{% endif %}>
<input type="hidden" value="{{ file.token }}">
<div class="widget-message click-to-upload">
{% trans "Drop a file or click to select one" %}