54 lines
1.1 KiB
HTML
54 lines
1.1 KiB
HTML
|
|
|
|
{% extends "base.html" %}
|
|
|
|
|
|
|
|
{% block titlePage %}
|
|
|
|
{% endblock titlePage %}
|
|
|
|
|
|
{% block content %}
|
|
<div>
|
|
<h2>Timbres disponibles Comercio Digital: {{saldo}}</h2>
|
|
</div>
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
|
|
<th scope="col">
|
|
<input id="table_rfcc" name="rfcc" value="True" type="checkbox" class="form-check-input" >
|
|
Cliente RFC
|
|
</th>
|
|
|
|
<th scope="col">actions</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for obj in timbres %}
|
|
<tr class="">
|
|
<td>{{obj.rfcc}}</td>
|
|
<td>
|
|
{% if request.user.is_staff %}
|
|
<a href="{% url 'timbres_cliente' obj.rfcc %}" class="btn btn-info">View Timbres</a>
|
|
{% endif %}
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{% endblock content %}
|
|
|
|
{% block scripts %}
|
|
<script>
|
|
table_rfcc.addEventListener('click',(event)=>{
|
|
document.getElementById('rfcc').checked= table_rfcc.checked? true:false;
|
|
})
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
{% endblock scripts %} |