feat: generando vista de compra con formularios de django.
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user