Amélioration visuel véhicule

This commit is contained in:
Ambulance Clerc
2022-11-10 14:48:27 +01:00
parent a557c97ca9
commit e2406cc52b
2 changed files with 13 additions and 2 deletions

View File

@@ -49,7 +49,12 @@ class Vehicles(models.Model):
return self.get_all_infos(2)
def get_all_infos_perempt(self):
return self.get_all_infos(3)
return self.get_all_infos(3)[3::]
def get_all_infos_perempt_perma(self):
return self.get_all_infos(3)[:3]

View File

@@ -42,9 +42,15 @@
<div style="width: 350px; ">
<b>Péremptions</b>
<div class="child_box">
<div style="width: 170px;">
{% for info in vhc.get_all_infos_perempt_perma %}
<a href="/admin/vehicles/vehicles_infos/{{info.id}}" target="_blank">{{info.sDesc}}</a><br>
{% endfor %}
</div>
{% for info in vhc.get_all_infos_perempt %}
<div style="width: 170px;">
<a href="/admin/vehicles/vehicles_infos/{{info.id}}" >{{info.sDesc}}</a>
<a href="/admin/vehicles/vehicles_infos/{{info.id}}" target="_blank">{{info.sDesc}}</a>
</div>
{% endfor %}
</div>