filtros
This commit is contained in:
@@ -1,17 +1,24 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
|
||||
{% extends "base.html" %}
|
||||
|
||||
|
||||
|
||||
{% block titlePage %}
|
||||
|
||||
{% endblock titlePage %}
|
||||
|
||||
|
||||
{% block content %}
|
||||
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">UUID</th>
|
||||
|
||||
<th scope="col">
|
||||
<input id="table_name" name="name" value="True" type="checkbox" class="form-check-input" >
|
||||
RFC Cliente
|
||||
<input id="table_rfcc" name="rfcc" value="True" type="checkbox" class="form-check-input" >
|
||||
Cliente RFC
|
||||
</th>
|
||||
<th scope="col">PAC</th>
|
||||
<th scope="col">Tipo CFDI</th>
|
||||
|
||||
<th scope="col">actions</th>
|
||||
</tr>
|
||||
@@ -19,15 +26,10 @@
|
||||
<tbody>
|
||||
{% for obj in timbres %}
|
||||
<tr class="">
|
||||
<th scope="row">{{obj.uuid}}</th>
|
||||
<td>{{obj.rfcc}}</td>
|
||||
<td>{{obj.rfcp}}</td>
|
||||
<td>{{obj.tipo}}</td>
|
||||
|
||||
|
||||
<td>{{obj.rfcc}}</td>
|
||||
<td>
|
||||
{% if request.user.is_staff %}
|
||||
<a href="#" class="btn btn-info">View</a>
|
||||
<a href="{% url 'timbres_cliente' obj.rfcc %}" class="btn btn-info">View Timbres</a>
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
@@ -35,4 +37,12 @@
|
||||
</tbody>
|
||||
</table>
|
||||
{% endblock content %}
|
||||
|
||||
|
||||
{% block scripts %}
|
||||
<script>
|
||||
table_rfcc.addEventListener('click',(event)=>{
|
||||
document.getElementById('rfcc').checked= table_rfcc.checked? true:false;
|
||||
})
|
||||
</script>
|
||||
|
||||
{% endblock scripts %}
|
||||
Reference in New Issue
Block a user