Feat(ButtonAddLine): Añadir linea de venta en formulario WIP
This commit is contained in:
@@ -1,12 +1,19 @@
|
||||
<!doctype html>
|
||||
{% load static %}
|
||||
<form method="POST">
|
||||
{% csrf_token %}
|
||||
{{ sale_form}}
|
||||
{% 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>
|
||||
<div id="formset-container">
|
||||
{% for form in linea_formset %}
|
||||
<div class="form-container">
|
||||
<table style="border: solid 1px blue; margin: 10px">
|
||||
{{ form.as_table }}
|
||||
</table>
|
||||
</div>
|
||||
{% endfor %}
|
||||
<br/><button name="form" type="submit" >Comprar</button>
|
||||
</div>
|
||||
<button id="add_line">Añadir Linea</button>
|
||||
<br/><button name="form" type="submit" >Comprar</button>
|
||||
<script src="{% static 'js/add_line.js' %}"></script>
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user