New functionality

This commit is contained in:
fjrodriguez
2022-12-01 10:25:21 -06:00
parent f2aad5de52
commit 178a1ea55d
13 changed files with 157 additions and 43 deletions

View File

@@ -24,17 +24,20 @@
<input id="table_rfcc" name="rfcc" value="True" type="checkbox" class="form-check-input" >
Cliente RFC
</th>
<th>Nombre</th>
<th>Totales Mes {{fecha|date:"F"}}</th>
<th scope="col">actions</th>
</tr>
</thead>
<tbody>
{% for obj in timbres %}
{% for obj in clientes %}
<tr class="">
<td>{{obj.rfcc}}</td>
<td>{{obj.RFC}}</td>
<td>{{obj.Nombre}}</td>
<td>{{obj.timbres_mes_count}}</td>
<td>
{% if request.user.is_staff %}
<a href="{% url 'timbres_cliente' obj.rfcc %}" class="btn btn-info">View Timbres</a>
<a href="{% url 'timbres_cliente' obj.RFC %}" class="btn btn-info">Ver Timbres</a>
{% endif %}
</td>
</tr>
@@ -49,9 +52,6 @@
document.getElementById('rfcc').checked= table_rfcc.checked? true:false;
})
</script>
{% endblock scripts %}

View File

@@ -1,3 +1,7 @@
<span class="navbar-text mr-2">
Fecha: <strong>{{fecha|date:"d F Y"}}</strong>
</span>
<form action="{{request.path}}" method="get" class="form-inline my-2 my-lg-0">
<input id="search" class="form-control mr-sm-2" name="search" type="search" placeholder="Search" aria-label="Search">