feat: expose inspection result config and update parkingspot inspection fields with translation fixes
This commit is contained in:
parent
7243f33110
commit
bc08402f34
6 changed files with 9 additions and 8 deletions
Binary file not shown.
|
|
@ -4093,7 +4093,7 @@ msgstr "Interventions"
|
||||||
|
|
||||||
#: assets/templates/assets/components/asset_interventions.html:14
|
#: assets/templates/assets/components/asset_interventions.html:14
|
||||||
msgid "Créer une intervention"
|
msgid "Créer une intervention"
|
||||||
msgstr "Créer une nouvelle intersection"
|
msgstr "Créer une nouvelle intervention"
|
||||||
|
|
||||||
#: assets/templates/assets/components/asset_interventions.html:25
|
#: assets/templates/assets/components/asset_interventions.html:25
|
||||||
#: assets/templates/assets/components/asset_interventions.html:120
|
#: assets/templates/assets/components/asset_interventions.html:120
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -4090,7 +4090,7 @@ msgstr "Interventies"
|
||||||
|
|
||||||
#: assets/templates/assets/components/asset_interventions.html:14
|
#: assets/templates/assets/components/asset_interventions.html:14
|
||||||
msgid "Créer une intervention"
|
msgid "Créer une intervention"
|
||||||
msgstr "Nieuw kruispunt aanmaken"
|
msgstr "Nieuwe interventie aanmaken"
|
||||||
|
|
||||||
#: assets/templates/assets/components/asset_interventions.html:25
|
#: assets/templates/assets/components/asset_interventions.html:25
|
||||||
#: assets/templates/assets/components/asset_interventions.html:120
|
#: assets/templates/assets/components/asset_interventions.html:120
|
||||||
|
|
|
||||||
|
|
@ -540,6 +540,7 @@ def asset_inspections(context, asset):
|
||||||
'can_inspect': can_insp,
|
'can_inspect': can_insp,
|
||||||
'total_count': len(inspections),
|
'total_count': len(inspections),
|
||||||
'inspection_template': get_inspection_partial_template(asset),
|
'inspection_template': get_inspection_partial_template(asset),
|
||||||
|
'INSPECTION_RESULT_CHOICES_CONFIG': Inspection.get_result_choices_config(),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,21 +8,21 @@
|
||||||
<div class="row g-2 mb-2">
|
<div class="row g-2 mb-2">
|
||||||
<div class="col-6">
|
<div class="col-6">
|
||||||
<label class="form-label small mb-1">{% translate "Arceaux classiques" %}</label>
|
<label class="form-label small mb-1">{% translate "Arceaux classiques" %}</label>
|
||||||
<input type="number" name="verified_standard_stand_count" id="insp_std_stands" class="form-control form-control-sm" min="0" value="{{ asset.standard_stand_count|default:'' }}">
|
<input type="number" name="verified_standard_stand_count" id="insp_std_stands" class="form-control form-control-sm" min="0" placeholder="{% translate 'Saisir le nombre constaté' %}">
|
||||||
</div>
|
</div>
|
||||||
<div class="col-6">
|
<div class="col-6">
|
||||||
<label class="form-label small mb-1">{% translate "Arceaux cargo" %}</label>
|
<label class="form-label small mb-1">{% translate "Arceaux cargo" %}</label>
|
||||||
<input type="number" name="verified_cargo_stand_count" id="insp_cargo_stands" class="form-control form-control-sm" min="0" value="{{ asset.cargo_stand_count|default:'' }}">
|
<input type="number" name="verified_cargo_stand_count" id="insp_cargo_stands" class="form-control form-control-sm" min="0" placeholder="{% translate 'Saisir le nombre constaté' %}">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="mb-1">
|
<div class="mb-1">
|
||||||
<label class="form-label small mb-1">{% translate "Qualité marquage" %}</label>
|
<label class="form-label small mb-1">{% translate "Qualité marquage" %}</label>
|
||||||
<select name="verified_marking_quality" id="insp_marking_quality" class="form-select form-select-sm">
|
<select name="verified_marking_quality" id="insp_marking_quality" class="form-select form-select-sm">
|
||||||
<option value="">{% translate "-- Sélectionner --" %}</option>
|
<option value="">{% translate "-- Sélectionner --" %}</option>
|
||||||
<option value="good" {% if asset.marking_quality == 'good' %}selected{% endif %}>{% translate "Bon état" %}</option>
|
<option value="good">{% translate "Bon état" %}</option>
|
||||||
<option value="medium" {% if asset.marking_quality == 'medium' %}selected{% endif %}>{% translate "Moyen" %}</option>
|
<option value="medium">{% translate "Moyen" %}</option>
|
||||||
<option value="damaged" {% if asset.marking_quality == 'damaged' %}selected{% endif %}>{% translate "Dégradé" %}</option>
|
<option value="damaged">{% translate "Dégradé" %}</option>
|
||||||
<option value="missing" {% if asset.marking_quality == 'missing' %}selected{% endif %}>{% translate "Absent / Effacé" %}</option>
|
<option value="missing">{% translate "Absent / Effacé" %}</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue