view: using base template.

This commit is contained in:
Mono Mono 2024-08-17 18:25:41 -05:00
parent 980deb61f9
commit 0e15192f37
6 changed files with 23 additions and 3 deletions

View File

@ -1,3 +1,5 @@
{% extends 'don_confiao/base.html' %}
{% block content %}
{% if form.is_multipart %} {% if form.is_multipart %}
<form enctype="multipart/form-data" method="post"> <form enctype="multipart/form-data" method="post">
{% else %} {% else %}
@ -8,3 +10,4 @@
{{ form }} {{ form }}
<input type="submit" value="Importar"> <input type="submit" value="Importar">
</form> </form>
{% endblock %}

View File

@ -1,9 +1,10 @@
{% extends 'don_confiao/base.html' %}
{% block content %}
<form action="" method="get"> <form action="" method="get">
<label>Filtro por nombre:</label> <label>Filtro por nombre:</label>
<input type="text" name="name" value="{{ request.GET.name }}"> <input type="text" name="name" value="{{ request.GET.name }}">
<button type="submit">Filtrar</button> <button type="submit">Filtrar</button>
</form> </form>
{% block content %}
<h1>Lista de productos</h1> <h1>Lista de productos</h1>
<ul> <ul>
{% for obj in object_list %} {% for obj in object_list %}

View File

@ -1,4 +1,5 @@
<!doctype html> {% extends 'don_confiao/base.html' %}
{% block content %}
{% load static %} {% load static %}
<form id="complete_form_purchase" method="POST"> <form id="complete_form_purchase" method="POST">
{% csrf_token %} {% csrf_token %}
@ -20,3 +21,4 @@
<script src="{% static 'js/sale_summary.js' %}"></script> <script src="{% static 'js/sale_summary.js' %}"></script>
<script src="{% static 'js/calculate_subtotal_line.js' %}"></script> <script src="{% static 'js/calculate_subtotal_line.js' %}"></script>
</form> </form>
{% endblock %}

View File

@ -1,3 +1,6 @@
{% extends 'don_confiao/base.html' %}
{% block content %}
<h1>Resumen de compra</h1> <h1>Resumen de compra</h1>
<dl> <dl>
<dt>Date</dt> <dd>{{ purchase.date }}</dd> <dt>Date</dt> <dd>{{ purchase.date }}</dd>
@ -5,3 +8,5 @@
<dt>Customer</dt> <dd>{{ purchase.customer.name }}</dd> <dt>Customer</dt> <dd>{{ purchase.customer.name }}</dd>
<dt>Total</dt> <dd>{{ purchase.get_total }}</dd> <dt>Total</dt> <dd>{{ purchase.get_total }}</dd>
</dl> </dl>
{% endblock %}

View File

@ -1,3 +1,6 @@
{% extends 'don_confiao/base.html' %}
{% block content %}
{% if purchases %} {% if purchases %}
<ul> <ul>
{% for purchase in purchases %} {% for purchase in purchases %}
@ -7,3 +10,5 @@
{% else %} {% else %}
<p>No hay Compras</p> <p>No hay Compras</p>
{% endif %} {% endif %}
{% endblock %}

View File

@ -1,4 +1,6 @@
<!doctype html> {% extends 'don_confiao/base.html' %}
{% block content %}
{% if summary.total %} {% if summary.total %}
<div class="reconciliate_jar summary" style="border: solid 1px brown; margin: 10px"> <div class="reconciliate_jar summary" style="border: solid 1px brown; margin: 10px">
<h2>Pagos No reconciliados</h2> <h2>Pagos No reconciliados</h2>
@ -28,3 +30,5 @@
<h2>No hay pagos registrados.</h2> <h2>No hay pagos registrados.</h2>
</div> </div>
{% endif %} {% endif %}
{% endblock %}