1. Kai Diefenbach
  2. django-lfs

Commits

Radim Novotny  committed 8243387

Display product image in order detail table (management screen)

  • Participants
  • Parent commits 2813065
  • Branches default

Comments (0)

Files changed (1)

File lfs/templates/manage/order/order_inline.html

View file
         <tr>
             <td>
                 {{ item.product_sku }}
+                {% if item.product.get_image.image %}
+                <div>
+                  <a href="{% url lfs_manage_product item.product.id %}">
+                      <img alt="{{ item.product_name }}"
+                         src="{{ item.product.get_image.image.url_100x100 }}" />
+                   </a>
+                </div>
+                {% endif %}
+
             </td>
             <td>
                 {% if item.product %}