Browse Source

update code after rebase

lazouz/dashboards
Lazare Olivry 7 years ago
parent
commit
65a8a1e0c7
  1. 2
      logs/templates/logs/aff_stats_rooms.html
  2. 4
      logs/templates/logs/stats_rooms.html
  3. 8
      logs/views.py

2
logs/templates/logs/aff_stats_rooms.html

@ -29,7 +29,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
<h4> on met un {{ key_dict }} de {{ key }}</h4>
<tr>
<th>{{ key_dict }}</th>
<th>Nombre de {{ key }} par {{ key_dict }}</th>
<th> Number of {{ key }} per {{ key_dict }}</th>
<th>Rang</th>
</tr>
</thead>

4
logs/templates/logs/stats_rooms.html

@ -25,10 +25,10 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% load bootstrap3 %}
{% block title %}Chambres innocupées{% endblock %}
{% block title %}Unoccupied rooms{% endblock %}
{% block content %}
<h2>Chambres innocupées</h2>
<h2> Unoccupied rooms </h2>
{% include "logs/aff_stats_rooms.html" with stats_list=stats_list %}
<br />
<br />

8
logs/views.py

@ -529,11 +529,11 @@ def stats_unoccupied_rooms(request):
"""Vue qui affiche les chambres inoccupées
pour des fins de contrôle des cotisations"""
stats = {
'Nombre de chambres Innocupées': {
'Action': Room.objects.filter(adherent__isnull=True).count()
_("Unoccupied rooms count"): {
_("Action"): Room.objects.filter(adherent__isnull=True).count()
},
'Chambres Innocupées': {
'Action': Room.objects.filter(
_("Unoccupied rooms"): {
_("Action"): Room.objects.filter(
adherent__isnull=True
).order_by('-num')[:40],
},

Loading…
Cancel
Save