maj vehicules
This commit is contained in:
@@ -0,0 +1,32 @@
|
|||||||
|
# Generated by Django 4.0 on 2022-11-10 17:32
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('vehicles', '0010_alter_vehicles_infos_ntype'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.RemoveField(
|
||||||
|
model_name='vehicles_infos',
|
||||||
|
name='sTitle',
|
||||||
|
),
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='vehicles',
|
||||||
|
name='bLucas',
|
||||||
|
field=models.BooleanField(default=0, verbose_name='Lucas'),
|
||||||
|
),
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='vehicles',
|
||||||
|
name='nOrder',
|
||||||
|
field=models.IntegerField(default=0, verbose_name='Ordre'),
|
||||||
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='vehicles',
|
||||||
|
name='nStatus',
|
||||||
|
field=models.CharField(choices=[('1', 'Opérationnel'), ('2', 'Réserve'), ('3', 'Utilisation altérée'), ('4', 'Hors Service')], default=1, max_length=1, verbose_name='Statut'),
|
||||||
|
),
|
||||||
|
]
|
Binary file not shown.
@@ -39,11 +39,14 @@
|
|||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
.child{
|
.child{
|
||||||
width: 400px;
|
width: 440px;
|
||||||
height: 500px;
|
height: 500px;
|
||||||
background-repeat: no-repeat, repeat;
|
background-repeat: no-repeat, repeat;
|
||||||
background-size: contain;
|
background-size: contain;
|
||||||
border: solid var(--border-debug-size) green;
|
padding: 0px 10px 0px 10px;
|
||||||
|
border: 2px ridge #FFFFFF;
|
||||||
|
border-radius: 28px;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
|
||||||
}
|
}
|
||||||
.container{
|
.container{
|
||||||
@@ -75,4 +78,4 @@
|
|||||||
font-family: var(--main-text-family);
|
font-family: var(--main-text-family);
|
||||||
font-size: 12pt;
|
font-size: 12pt;
|
||||||
color: var(--main-text-color);
|
color: var(--main-text-color);
|
||||||
}
|
}
|
||||||
|
@@ -11,12 +11,12 @@
|
|||||||
{% for vhc in list_vhc %}
|
{% for vhc in list_vhc %}
|
||||||
{% with 'vehicles/images/ocvs_rtw_'|add:vhc.nStatus|add:'.png' as image_static %}
|
{% with 'vehicles/images/ocvs_rtw_'|add:vhc.nStatus|add:'.png' as image_static %}
|
||||||
<div class="child">
|
<div class="child">
|
||||||
<div style="height: 25%;display: flex;" >
|
<div style="height: 25%;display: flex;padding-top: 10px;" >
|
||||||
<a href="/admin/vehicles/vehicles/{{vhc.id}}/change/" target="_blank" style="font-weight: bold;">{{vhc.sName}}</a><br>
|
<a href="/admin/vehicles/vehicles/{{vhc.id}}/change/" target="_blank" style="font-weight: bold;">{{vhc.sName}}</a><br>
|
||||||
|
|
||||||
<img height="100px" src="{% static image_static %}" ><br>
|
<img height="100px" src="{% static image_static %}" ><br>
|
||||||
{% if vhc.bLucas %}
|
{% if vhc.bLucas %}
|
||||||
<span style="align-self: flex-end; padding: 20px;">Lucas</span>
|
<span style="align-self: flex-end; padding: 20px;color:orange">Lucas</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user