8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-10-06 02:52:10 +00:00

update code after rebase

This commit is contained in:
Lazare Olivry 2018-08-21 14:04:10 +02:00
parent 6f374dfffd
commit 65a8a1e0c7
3 changed files with 7 additions and 7 deletions

View file

@ -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>

View file

@ -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 />

View file

@ -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],
},