feat: move action_bar to it's own cotton component and add basic sum of selected items

This commit is contained in:
Herculino Trotta
2024-11-06 17:07:22 -03:00
parent 84e097a1b6
commit 3500f667a9
4 changed files with 86 additions and 122 deletions
+1 -1
View File
@@ -2,6 +2,6 @@
<div class="{% if text_end %}text-end{% elif text_start %}text-start{% endif %}">
<div class="amount{% if color == 'grey' %} tw-text-gray-500{% elif color == 'green' %} tw-text-green-400{% elif color == 'red' %} tw-text-red-400{% endif %}"
data-original-value="{% currency_display amount=amount prefix=prefix suffix=suffix decimal_places=decimal_places %}">
data-original-value="{% currency_display amount=amount prefix=prefix suffix=suffix decimal_places=decimal_places %}" data-amount="{{ amount|floatformat:"-40u" }}">
</div>
</div>