feat: generando vista de compra con formularios de django.

This commit is contained in:
2024-06-30 01:16:55 -05:00
parent a466d8b20a
commit ad78625351
4 changed files with 63 additions and 3 deletions

View File

@@ -0,0 +1,12 @@
<!doctype html>
<form method="POST">
{% csrf_token %}
{{ sale_form}}
{{ linea_formset.management_form }}
{% for form in linea_formset %}
<table style="border: solid 1px blue; margin: 10px">
{{ form.as_table }}
</table>
{% endfor %}
<br/><button name="form" type="submit" >Comprar</button>
</form>