From e910556952abf10f1d0a041d3a9a5bd067523270 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Sun, 16 Jan 2022 00:31:59 +0100 Subject: [PATCH] Implement first part of the form --- uncloud_v3/README.md | 7 ++-- .../app/templates/app/product_detail.html | 13 ++----- .../app/templates/app/product_list.html | 11 ------ .../app/templates/app/productorder_form.html | 38 +++++++++++-------- uncloud_v3/app/views.py | 9 +++++ 5 files changed, 40 insertions(+), 38 deletions(-) diff --git a/uncloud_v3/README.md b/uncloud_v3/README.md index aaa1c4e..c21be89 100644 --- a/uncloud_v3/README.md +++ b/uncloud_v3/README.md @@ -47,9 +47,10 @@ machine. Use `kubectl get nodes` to verify minikube is up and running. * Link to ProductOrderForm [done] * Find suitable timeframes for a product [done] * Continue to resources / add resources - * Need to list resources - * Need to create manytomany relations for each resource resolutling - in ResourceOrders + * Need to list resources [done] + * Need to create manytomany relations for each resource resoluting + in ResourceOrders1 + * Need to pass in the price for the selected timeframe * On submit * List of * resources + values diff --git a/uncloud_v3/app/templates/app/product_detail.html b/uncloud_v3/app/templates/app/product_detail.html index 00365a6..d003851 100644 --- a/uncloud_v3/app/templates/app/product_detail.html +++ b/uncloud_v3/app/templates/app/product_detail.html @@ -1,16 +1,11 @@

{{ object.name }}

- -
- {% csrf_token %} - {{ form.as_p }} - -
+(description to be added here) - -HERE we show a link to order. diff --git a/uncloud_v3/app/templates/app/product_list.html b/uncloud_v3/app/templates/app/product_list.html index 7a52e7c..b622c7f 100644 --- a/uncloud_v3/app/templates/app/product_list.html +++ b/uncloud_v3/app/templates/app/product_list.html @@ -1,16 +1,5 @@

Select Product

-

Product Order

-

Product List