From c80fe094a255ec0dc1a2c03d4b6633722f989a0a Mon Sep 17 00:00:00 2001 From: Sli Date: Mon, 23 Dec 2024 20:44:49 +0100 Subject: [PATCH] Remove useless form elements in counters and improve alignment --- core/static/core/style.scss | 10 ++++++++++ counter/templates/counter/counter_click.jinja | 11 +++++------ 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/core/static/core/style.scss b/core/static/core/style.scss index d413b656..06feea50 100644 --- a/core/static/core/style.scss +++ b/core/static/core/style.scss @@ -1254,6 +1254,16 @@ u, flex-wrap: wrap; flex-direction: row-reverse; + .quantity { + display: inline-block; + min-width: 1.2em; + text-align: center; + } + + .remove-item { + float: right; + } + #products { flex-basis: 100%; margin: 0.2em; diff --git a/counter/templates/counter/counter_click.jinja b/counter/templates/counter/counter_click.jinja index 36ab3ad2..37356ea0 100644 --- a/counter/templates/counter/counter_click.jinja +++ b/counter/templates/counter/counter_click.jinja @@ -56,12 +56,8 @@
{% set counter_click_url = url('counter:click', counter_id=counter.id, user_id=customer.user_id) %} - {# Formulaire pour rechercher un produit en tapant son code dans une barre de recherche #}
- {% csrf_token %} - - @@ -87,7 +83,9 @@
{% endfor %}

{% trans %}Basket: {% endtrans %}

+ + {% csrf_token %}
{{ form.management_form }} @@ -101,13 +99,14 @@ - + : - + +