Skip to content

Commit

Permalink
Améliorations de la modale localisation (#1125)
Browse files Browse the repository at this point in the history
* section voie

* modification messages

* input size

* translation

* font-weight bold
  • Loading branch information
Lealefoulon authored Jan 7, 2025
1 parent 1ef6e05 commit 680f44b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 12 deletions.
13 changes: 8 additions & 5 deletions templates/regulation/fragments/_measure_form.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@
<li role="status" data-autocomplete-target="status"></li>
</ul>
</div>

<hr class="fr-mt-3w" />
<fieldset
aria-labelledby="regulation-location-{{ locationIndex }}-{{ roadType }}-reference-point"
data-reset-target="element"
Expand All @@ -233,7 +233,7 @@
class="fr-mt-2w"
aria-labelledby="regulation-location-{{ locationIndex }}-{{ roadType }}-reference-point-start-legend"
>
<legend id="regulation-location-{{ locationIndex }}-{{ roadType }}-reference-point-start-legend">
<legend id="regulation-location-{{ locationIndex }}-{{ roadType }}-reference-point-start-legend" class="fr-fieldset__legend">
{{ 'regulation.location.referencePoint.from'|trans }}
</legend>
<div class="fr-grid-row fr-grid-row--gutters">
Expand All @@ -246,7 +246,7 @@
class="fr-mt-2w fr-mb-2w"
aria-labelledby="regulation-location-{{ locationIndex }}-{{ roadType }}-reference-point-end-legend"
>
<legend id="regulation-location-{{ locationIndex }}-{{ roadType }}-reference-point-end-legend">
<legend id="regulation-location-{{ locationIndex }}-{{ roadType }}-reference-point-end-legend" class="fr-fieldset__legend">
{{ 'regulation.location.referencePoint.to'|trans }}
</legend>
<div class="fr-grid-row fr-grid-row--gutters">
Expand Down Expand Up @@ -402,15 +402,18 @@
'data-action': 'change->condition#dispatchFromCheckboxChange condition:yes->form-reveal#close condition:no->form-reveal#open'
}
}) }}

<hr class="fr-mt-3w" />
<fieldset
aria-labelledby="{{ form.namedStreet.vars.id }}-points-legend"
data-form-reveal-target="section formControl"
{% if form.namedStreet.isEntireStreet.vars.checked %}hidden disabled{% endif %}
>
<legend id="{{ form.namedStreet.vars.id }}-points-legend" class="app-sr-only">
<legend id="{{ form.namedStreet.vars.id }}-points-legend">
{{ 'regulation.location.named_street.points'|trans }}
</legend>
<div class="fr-hint-text help-text">
{{ 'regulation.location.named_street.points.description'|trans }}
</div>
{% include 'location/named_street/points_form.html.twig' with { form } only %}
</fieldset>
</div>
Expand Down
18 changes: 11 additions & 7 deletions translations/messages.fr.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -547,11 +547,11 @@
</trans-unit>
<trans-unit id="regulation.location.referencePoint.from">
<source>regulation.location.referencePoint.from</source>
<target>Point de début</target>
<target>Point A</target>
</trans-unit>
<trans-unit id="regulation.location.referencePoint.to">
<source>regulation.location.referencePoint.to</source>
<target>Point de fin</target>
<target>Point B</target>
</trans-unit>
<trans-unit id="regulation.location.road.side">
<source>regulation.location.road.side</source>
Expand Down Expand Up @@ -587,7 +587,7 @@
</trans-unit>
<trans-unit id="regulation.location.referencePoint.pointNumber.help">
<source>regulation.location.referencePoint.pointNumber.help</source>
<target>Indiquez le numéro du point</target>
<target>Numéro du point de repère</target>
</trans-unit>
<trans-unit id="regulation.location.referencePoint.abscissa">
<source>regulation.location.referencePoint.abscissa</source>
Expand All @@ -611,7 +611,7 @@
</trans-unit>
<trans-unit id="regulation.location.road.type.lane">
<source>regulation.location.road.type.lane</source>
<target>Voie</target>
<target>Voie (rue, avenue, boulevard)</target>
</trans-unit>
<trans-unit id="regulation.location.road.type.rawGeoJSON">
<source>regulation.location.road.type.rawGeoJSON</source>
Expand Down Expand Up @@ -703,19 +703,23 @@
</trans-unit>
<trans-unit id="regulation.location.named_street.points">
<source>regulation.location.named_street.points</source>
<target>Points de la section concernée</target>
<target>Section concernée</target>
</trans-unit>
<trans-unit id="regulation.location.named_street.points.description">
<source>regulation.location.named_street.points.description</source>
<target>Indiquez les points de début et fin sur la voie concernée. Un point peut être un numéro de rue ou une intersection.</target>
</trans-unit>
<trans-unit id="regulation.location.named_street.point_type">
<source>regulation.location.named_street.point_type</source>
<target>Type de point</target>
<target>Type</target>
</trans-unit>
<trans-unit id="regulation.location.named_street.point_type.placeholder">
<source>regulation.location.named_street.point_type.placeholder</source>
<target>Sélectionner une option...</target>
</trans-unit>
<trans-unit id="regulation.location.named_street.point_type.houseNumber">
<source>regulation.location.named_street.point_type.houseNumber</source>
<target>Numéro d'adresse</target>
<target>Numéro de rue</target>
</trans-unit>
<trans-unit id="regulation.location.named_street.point_type.intersection">
<source>regulation.location.named_street.point_type.intersection</source>
Expand Down

0 comments on commit 680f44b

Please sign in to comment.