66 lines
2.0 KiB
HTML
66 lines
2.0 KiB
HTML
<!DOCTYPE html>
|
|
{% load static %}
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>Title</title>
|
|
<link rel="stylesheet" href="{% static 'vehicles/style.css' %}">
|
|
</head>
|
|
<body>
|
|
<div class="main_container">
|
|
{% for vhc in list_vhc %}
|
|
{% with 'vehicles/images/ocvs_rtw_'|add:vhc.nStatus|add:'.png' as image_static %}
|
|
<div class="child">
|
|
<div style="height: 25%;display: flex;" >
|
|
<b>{{vhc.sName}}</b><br>
|
|
|
|
<img height="100px" src="{% static image_static %}" ><br>
|
|
<span style="align-self: flex-end; padding: 20px;">Lucas</span>
|
|
|
|
</div>
|
|
<div class="child_box" style="height: 70%;">
|
|
<div style="width: 46%; padding: 2px;">
|
|
<b>Infos techniques</b>
|
|
{% for info in vhc.get_all_infos_tech %}
|
|
<div style="margin-top: 15px">
|
|
{{info.sDesc}}
|
|
<br><span style="font-style: italic;text-transform:uppercase;">{{info.get_Start_formated}} {{info.get_Author_formated}}</span>
|
|
</div>
|
|
{% endfor %}
|
|
|
|
|
|
</div>
|
|
<div style="width: 46%;padding: 2px;">
|
|
<b>Matériels manquants</b>
|
|
{% for info in vhc.get_all_infos_mat %}
|
|
<div style="margin-top: 15px">
|
|
{{info.sDesc}}
|
|
<br><span style="font-style: italic;text-transform:uppercase;">{{info.get_Start_formated}} {{info.get_Author_formated}}</span>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
<div style="width: 350px; ">
|
|
<b>Péremptions</b>
|
|
<div class="child_box">
|
|
{% for info in vhc.get_all_infos_perempt %}
|
|
<div style="width: 170px;">
|
|
<a href="/admin/vehicles/vehicles_infos/{{info.id}}" >{{info.sDesc}}</a>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
{% endwith %}
|
|
{% endfor %}
|
|
</div>
|
|
|
|
|
|
</body>
|
|
</html>
|