1. Kai Diefenbach
  2. django-lfs-0.7

Commits

Radim Novotny  committed 2813065

Added order-state-X css class to the orders_inline. This allows to style different order states

  • Participants
  • Parent commits b582019
  • Branches default

Comments (0)

Files changed (1)

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

View file
             </th>
         </tr>
             {% for order in page.object_list %}
-                <tr class="clickable {% cycle 'even' 'odd' %}"
+                <tr class="clickable {% cycle 'even' 'odd' %} order-state-{{ order.state }}"
                     onclick="window.location='{% url lfs.manage.views.order_view order.id %}'">
                     <td>
                         {{ order.number|default_if_none:"-" }}