diff --git a/copanier/models.py b/copanier/models.py index 5246a2f..306e6d4 100644 --- a/copanier/models.py +++ b/copanier/models.py @@ -97,6 +97,13 @@ class Product(Base): url: str = "" img: str = "" + @property + def label(self): + out = self.name + if self.weight: + out += f" ({self.weight})" + return out + @dataclass class ProductOrder(Base): diff --git a/copanier/static/app.css b/copanier/static/app.css index f925cf0..d7a4028 100644 --- a/copanier/static/app.css +++ b/copanier/static/app.css @@ -317,8 +317,13 @@ th.price { th.amount { width: 5rem; } -th.ref { +.ref { width: 5rem; + text-align: left; +} +td.ref { + font-weight: 300; + font-style: normal; } td.total, th.total { diff --git a/copanier/templates/delivery.html b/copanier/templates/delivery.html index 5d1e34a..833c961 100644 --- a/copanier/templates/delivery.html +++ b/copanier/templates/delivery.html @@ -23,8 +23,8 @@ {% for product in delivery.products %}