Skip to content

Commit

Permalink
refacto heavyweightMaxWeight choices
Browse files Browse the repository at this point in the history
  • Loading branch information
Lealefoulon committed Dec 19, 2024
1 parent 965d04b commit 14adb9e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 30 deletions.
12 changes: 6 additions & 6 deletions src/Infrastructure/Form/Regulation/VehicleSetFormType.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ public function buildForm(FormBuilderInterface $builder, array $options): void
ChoiceType::class,
options : [
'choices' => [
'regulation.vehicle_set.heavyweightMaxWeight.3.5t' => 3.5,
'regulation.vehicle_set.heavyweightMaxWeight.7.5t' => 7.5,
'regulation.vehicle_set.heavyweightMaxWeight.19t' => 19,
'regulation.vehicle_set.heavyweightMaxWeight.26t' => 26,
'regulation.vehicle_set.heavyweightMaxWeight.32t' => 32,
'regulation.vehicle_set.heavyweightMaxWeight.44t' => 44,
3.5 => 3.5,
7.5 => 7.5,
19 => 19,
26 => 26,
32 => 32,
44 => 44,
],
'label' => 'regulation.vehicle_set.heavyweightMaxWeight',
'placeholder' => 'regulation.vehicle_set.heavyweightMaxWeight.placeholder',
Expand Down
24 changes: 0 additions & 24 deletions translations/messages.fr.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -1926,30 +1926,6 @@
<source>regulation.vehicle_set.heavyweightMaxWeight.help</source>
<target>La restriction s'applique aux véhicules dont le PTAC est supérieur à ...</target>
</trans-unit>
<trans-unit id="regulation.vehicle_set.heavyweightMaxWeight.3.5t">
<source>regulation.vehicle_set.heavyweightMaxWeight.3.5t</source>
<target>3.5</target>
</trans-unit>
<trans-unit id="regulation.vehicle_set.heavyweightMaxWeight.7.5t">
<source>regulation.vehicle_set.heavyweightMaxWeight.7.5t</source>
<target>7.5</target>
</trans-unit>
<trans-unit id="regulation.vehicle_set.heavyweightMaxWeight.19t">
<source>regulation.vehicle_set.heavyweightMaxWeight.19t</source>
<target>19</target>
</trans-unit>
<trans-unit id="regulation.vehicle_set.heavyweightMaxWeight.26t">
<source>regulation.vehicle_set.heavyweightMaxWeight.26t</source>
<target>26</target>
</trans-unit>
<trans-unit id="regulation.vehicle_set.heavyweightMaxWeight.32t">
<source>regulation.vehicle_set.heavyweightMaxWeight.32t</source>
<target>32</target>
</trans-unit>
<trans-unit id="regulation.vehicle_set.heavyweightMaxWeight.44t">
<source>regulation.vehicle_set.heavyweightMaxWeight.44t</source>
<target>44</target>
</trans-unit>
<trans-unit id="regulation.vehicle_set.maxWidth">
<source>regulation.vehicle_set.maxWidth</source>
<target>Largeur maximum</target>
Expand Down

0 comments on commit 14adb9e

Please sign in to comment.