refactor(inventory): redesign inventory home layout with compact cards
- Replace large operation cards with smaller, uniform inventory-card components - Update icon sizes and text styles for better visual hierarchy - Group operations into a cleaner 4x3 grid layout using Bootstrap columns - Simplify card hover effects with subtler shadows and background gradients - Remove unused purple utility classes and old card-body styles - Add focus outline support for accessibility on inventory cards fix(customers): show total debt only when applicable and add external links - Display total debt row only if debt is greater than zero in customer detail - Remove redundant conditional inside debt display cell - Add target="_blank" and rel attributes to order detail links to open in new tab
This commit is contained in:
@@ -138,17 +138,15 @@
|
||||
<span class="badge bg-info">{{ last_year_orders_sum|floatformat:2 }} руб.</span>
|
||||
</td>
|
||||
</tr>
|
||||
{% if total_debt > 0 %}
|
||||
<tr>
|
||||
<td class="text-muted"><i class="bi bi-exclamation-triangle-fill text-danger"></i> Общий долг:</td>
|
||||
<td colspan="2">
|
||||
{% if total_debt > 0 %}
|
||||
<span class="badge bg-danger">{{ total_debt|floatformat:2 }} руб.</span>
|
||||
<small class="text-muted ms-2">(Заказов: {{ active_orders_count }})</small>
|
||||
{% else %}
|
||||
<span class="badge bg-success">0.00 руб.</span>
|
||||
{% endif %}
|
||||
<span class="badge bg-danger">{{ total_debt|floatformat:2 }} руб.</span>
|
||||
<small class="text-muted ms-2">(Заказов: {{ active_orders_count }})</small>
|
||||
</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
|
||||
<!-- Разделитель -->
|
||||
<tr>
|
||||
@@ -305,7 +303,7 @@
|
||||
{% endif %}
|
||||
</td>
|
||||
<td class="text-end">
|
||||
<a href="{% url 'orders:order-detail' order.order_number %}" class="btn btn-sm btn-outline-primary">
|
||||
<a href="{% url 'orders:order-detail' order.order_number %}" class="btn btn-sm btn-outline-primary" target="_blank" rel="noopener noreferrer" title="Открыть в новой вкладке">
|
||||
<i class="bi bi-eye"></i>
|
||||
</a>
|
||||
</td>
|
||||
|
||||
Reference in New Issue
Block a user