feat(buy): send products list to buy view.
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
{% extends 'don_confiao/base.html' %}
|
||||
{% block content %}
|
||||
{% load static %}
|
||||
<script>
|
||||
let listProducts = JSON.parse("{{ list_products|escapejs }}");
|
||||
</script>
|
||||
<div class="flex h-full">
|
||||
<div class="h-full w-10/12 flex flex-col p-5">
|
||||
<form id="complete_form_purchase" method="POST" class="h-10/12 w-full max-h-full overflow-auto">
|
||||
@@ -15,7 +18,6 @@
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</form>
|
||||
<div class="h-2/12 flex justify-center">
|
||||
<button id="add_line" type="button" class="bg-yellow-400 shadow hover:shadow-lg py-2 px-5 rounded-full font-bold hover:bg-violet-200 ease-in duration-150" onclick="add_line">Añadir Linea</button>
|
||||
</div>
|
||||
@@ -26,6 +28,7 @@
|
||||
{{ summary_form }}
|
||||
<button class="font-bold my-10 py-2 px-4 rounded-full bg-yellow-400 shadow hover:shadow-lg hover:bg-violet-200 ease-in duration-150" name="form" type="submit" >Comprar</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<script src="https://cdn.tailwindcss.com/"></script>
|
||||
|
||||
Reference in New Issue
Block a user