From a1b387375a149e2cc86b717f75e413a99097e90e Mon Sep 17 00:00:00 2001 From: Stephen Early Date: Tue, 25 Jun 2024 19:28:37 +0100 Subject: [PATCH] Enable stock line type to be changed through web interface Closes #293 on github. --- .../tillweb/stockline-continuous.html | 34 ++++++++ .../templates/tillweb/stockline-display.html | 79 +++++++++++++----- .../templates/tillweb/stockline-regular.html | 82 ++++++++++++++----- quicktill/tillweb/views.py | 38 ++++++++- 4 files changed, 190 insertions(+), 43 deletions(-) diff --git a/quicktill/tillweb/templates/tillweb/stockline-continuous.html b/quicktill/tillweb/templates/tillweb/stockline-continuous.html index ff30607..3ed9944 100644 --- a/quicktill/tillweb/templates/tillweb/stockline-continuous.html +++ b/quicktill/tillweb/templates/tillweb/stockline-continuous.html @@ -28,6 +28,9 @@ + + {% endif %} {% if stockline.stocktype.stockonsale %} diff --git a/quicktill/tillweb/templates/tillweb/stockline-display.html b/quicktill/tillweb/templates/tillweb/stockline-display.html index 6bde863..31167a0 100644 --- a/quicktill/tillweb/templates/tillweb/stockline-display.html +++ b/quicktill/tillweb/templates/tillweb/stockline-display.html @@ -29,33 +29,70 @@ + +