Projet

Général

Profil

0001-forms-add-class-to-file-widget-when-displaying-a-thu.patch

Frédéric Péters, 26 mars 2019 13:57

Télécharger (1,1 ko)

Voir les différences:

Subject: [PATCH] forms: add class to file widget when displaying a thumbnail
 (#31730)

 wcs/qommon/templates/qommon/forms/widgets/file.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
wcs/qommon/templates/qommon/forms/widgets/file.html
18 18
       data-upload="{% trans "Upload in progress..." %}"
19 19
       data-error="{% trans "Error during upload." %}"></div>
20 20
</div>
21
<div class="fileinfo">
21
<div class="fileinfo {% if widget.readonly and widget.has_tempfile_image %}thumbnail{% endif %}">
22 22
  <span class="filename">{{ widget.tempfile.base_filename }}</span>
23 23
{% if not widget.readonly %}
24 24
  <a href="#" class="remove" title="{% trans 'Remove this file' %}">{% trans "remove" %}</a>
25
-