Refactor price display in index.html to use span elements for better structure and styling
This commit is contained in:
@@ -138,8 +138,8 @@
|
|||||||
<button type="submit" name="position" value="{{ pos }}" title="{{ prod['name'] }}"
|
<button type="submit" name="position" value="{{ pos }}" title="{{ prod['name'] }}"
|
||||||
class="btn {{ prod['color_class'] }}">
|
class="btn {{ prod['color_class'] }}">
|
||||||
<span class="article-icon">{{ prod['icon'] }}</span>
|
<span class="article-icon">{{ prod['icon'] }}</span>
|
||||||
{{ '{:,.2f}'.format(prod['price']).replace('.', ',') }}€
|
<span>{{ '{:,.2f}'.format(prod['price']).replace('.', ',') }}€</span>
|
||||||
({{ items.get(pos, 0) }})
|
<span>({{ items.get(pos, 0) }})</span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|||||||
Reference in New Issue
Block a user