view: using base template.
This commit is contained in:
		| @@ -1,3 +1,5 @@ | ||||
| {% extends 'don_confiao/base.html' %} | ||||
| {% block content %} | ||||
| {% if form.is_multipart %} | ||||
|     <form enctype="multipart/form-data" method="post"> | ||||
| {% else %} | ||||
| @@ -8,3 +10,4 @@ | ||||
| {{ form }} | ||||
| <input type="submit" value="Importar"> | ||||
| </form> | ||||
| {% endblock %} | ||||
|   | ||||
| @@ -1,9 +1,10 @@ | ||||
| {% extends 'don_confiao/base.html' %} | ||||
| {% block content %} | ||||
| <form action="" method="get"> | ||||
|     <label>Filtro por nombre:</label> | ||||
|     <input type="text" name="name" value="{{ request.GET.name }}"> | ||||
|     <button type="submit">Filtrar</button> | ||||
| </form> | ||||
| {% block content %} | ||||
|   <h1>Lista de productos</h1> | ||||
|   <ul> | ||||
|     {% for obj in object_list %} | ||||
|   | ||||
| @@ -1,4 +1,5 @@ | ||||
| <!doctype html> | ||||
| {% extends 'don_confiao/base.html' %} | ||||
| {% block content %} | ||||
| {% load static %} | ||||
| <form id="complete_form_purchase" method="POST"> | ||||
|   {% csrf_token %} | ||||
| @@ -20,3 +21,4 @@ | ||||
|   <script src="{% static 'js/sale_summary.js' %}"></script> | ||||
|   <script src="{% static 'js/calculate_subtotal_line.js' %}"></script> | ||||
| </form> | ||||
| {% endblock %} | ||||
|   | ||||
| @@ -1,3 +1,6 @@ | ||||
| {% extends 'don_confiao/base.html' %} | ||||
| {% block content %} | ||||
|  | ||||
| <h1>Resumen de compra</h1> | ||||
| <dl> | ||||
| <dt>Date</dt> <dd>{{ purchase.date }}</dd> | ||||
| @@ -5,3 +8,5 @@ | ||||
| <dt>Customer</dt> <dd>{{ purchase.customer.name }}</dd> | ||||
| <dt>Total</dt> <dd>{{ purchase.get_total }}</dd> | ||||
| </dl> | ||||
|  | ||||
| {% endblock %} | ||||
|   | ||||
| @@ -1,3 +1,6 @@ | ||||
| {% extends 'don_confiao/base.html' %} | ||||
| {% block content %} | ||||
|  | ||||
| {% if purchases  %} | ||||
| <ul> | ||||
|     {% for purchase in purchases %} | ||||
| @@ -7,3 +10,5 @@ | ||||
| {% else %} | ||||
| <p>No hay Compras</p> | ||||
| {% endif %} | ||||
|  | ||||
| {% endblock %} | ||||
|   | ||||
| @@ -1,4 +1,6 @@ | ||||
| <!doctype html> | ||||
| {% extends 'don_confiao/base.html' %} | ||||
| {% block content %} | ||||
|  | ||||
| {% if summary.total %} | ||||
| <div class="reconciliate_jar summary" style="border: solid 1px brown; margin: 10px"> | ||||
|     <h2>Pagos No reconciliados</h2> | ||||
| @@ -28,3 +30,5 @@ | ||||
|     <h2>No hay pagos registrados.</h2> | ||||
| </div> | ||||
| {% endif %} | ||||
|  | ||||
| {% endblock %} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user