filter 2 page remove from filter page
This commit is contained in:
@@ -11,13 +11,11 @@
|
||||
<div class="form-group">
|
||||
<label for="{{form.RFC.name}}"><strong> {{form.RFC.label|capfirst}} </strong></label>
|
||||
{% render_field form.RFC id+="add" id+=form.RFC.name placeholder=form.RFC.label class="form-control" type="text" autocomplete="off" %}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="{{form.Nombre.name}}"><strong> {{form.Nombre.label|capfirst}} </strong></label>
|
||||
{% render_field form.Nombre id+="add" id+=form.Nombre.name placeholder=form.Nombre.label class="form-control" type="text" autocomplete="off" %}
|
||||
</div>
|
||||
|
||||
<div class="form-group form-check">
|
||||
{% render_field form.Activo class+="form-checkbox" type="checkbox" %}
|
||||
<label class="form-check-label" for="{{form.Activo.label}}">Activo</label>
|
||||
@@ -32,6 +30,7 @@
|
||||
|
||||
{% block scripts %}
|
||||
<script>
|
||||
|
||||
window.addEventListener("load", (event)=>{
|
||||
if(!id_Activo.checked){
|
||||
id_fecha_baja.setAttribute('required','')
|
||||
|
||||
@@ -20,17 +20,27 @@ Timbres disponibles Comercio Digital: {{saldo.saldo}}
|
||||
</th>
|
||||
<th>Nombre</th>
|
||||
<th>Totales Mes {{fecha|date:"F"}}</th>
|
||||
<th>Estado</th>
|
||||
<th scope="col">actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for obj in lista %}
|
||||
<tr class="">
|
||||
<tr class="{% if not obj.Activo %}table-danger{% endif %}">
|
||||
<td>
|
||||
<a href="{% url 'update_cliente' obj.pk %}">{{obj.RFC}}</a>
|
||||
</td>
|
||||
<td>{{obj.Nombre}}</td>
|
||||
<td>{{obj.Nombre}} </td>
|
||||
<td>{{obj.timbres_mes_count}}</td>
|
||||
|
||||
<td>
|
||||
{% if obj.Activo %}
|
||||
Activo
|
||||
{% else %}
|
||||
Inactivo
|
||||
{% endif %}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{% if request.user.is_staff %}
|
||||
<a href="{% url 'timbres_cliente' obj.RFC %}" class="btn btn-info">Ver Timbres</a>
|
||||
|
||||
@@ -6,6 +6,15 @@
|
||||
{% block content %}
|
||||
<h1>Timbres <strong>{{RFC}}</strong> </h1>
|
||||
<h2>Timbres totales: <strong></strong>{{conteo}}</strong></h2>
|
||||
<span class="navbar-text mr-2">
|
||||
{% if filters.datepicker%}
|
||||
De fecha: <strong>"{{filters.datepicker}}"</strong>
|
||||
{% endif %}
|
||||
|
||||
{% if filters.datepickerFin %}
|
||||
A fecha: <strong>"{{filters.datepickerFin}}"</strong>
|
||||
{% endif %}
|
||||
</span>
|
||||
|
||||
<br><br>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user