total saldo index

This commit is contained in:
fjrodriguez
2022-11-30 10:12:41 -06:00
parent d91e997fdf
commit 7645eff702
4 changed files with 21 additions and 2 deletions

View File

@@ -10,7 +10,9 @@
{% block content %}
<div>
<h2>Timbres disponibles Comercio Digital: {{saldo}}</h2>
</div>
<table class="table">
<thead>
<tr>
@@ -29,7 +31,7 @@
<td>{{obj.rfcc}}</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.rfcc %}" class="btn btn-info">View Timbres</a>
{% endif %}
</td>
</tr>
@@ -43,6 +45,10 @@
table_rfcc.addEventListener('click',(event)=>{
document.getElementById('rfcc').checked= table_rfcc.checked? true:false;
})
</script>
{% endblock scripts %}