Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Améliorations de la modale localisation #1125

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 11 additions & 8 deletions templates/regulation/fragments/_measure_form.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -237,9 +237,9 @@
{{ 'regulation.location.referencePoint.from'|trans }}
</legend>
<div class="fr-grid-row fr-grid-row--gutters">
{{ form_row(form[roadType].fromPointNumber, { row_attr: {class:'fr-col-12 fr-col-md-4'}, attr: {class: 'fr-input'}}) }}
{{ form_row(form[roadType].fromSide, { row_attr: {class:'fr-col-12 fr-col-md-4'}, attr: {class: 'fr-select'}}) }}
{{ form_row(form[roadType].fromAbscissa, { row_attr: {class:'fr-col-12 fr-col-md-4'}, attr: {class: 'fr-input'}}) }}
{{ form_row(form[roadType].fromPointNumber, { row_attr: {class:'fr-col-12 fr-col-md-3'}, attr: {class: 'fr-input'}}) }}
{{ form_row(form[roadType].fromSide, { row_attr: {class:'fr-col-12 fr-col-md-6'}, attr: {class: 'fr-select'}}) }}
{{ form_row(form[roadType].fromAbscissa, { row_attr: {class:'fr-col-12 fr-col-md-3'}, attr: {class: 'fr-input'}}) }}
</div>
</fieldset>
<fieldset
Expand All @@ -250,9 +250,9 @@
{{ 'regulation.location.referencePoint.to'|trans }}
</legend>
<div class="fr-grid-row fr-grid-row--gutters">
{{ form_row(form[roadType].toPointNumber, { row_attr: {class:'fr-col-12 fr-col-md-4'}, attr: {class: 'fr-input'}}) }}
{{ form_row(form[roadType].toSide, { row_attr: {class:'fr-col-12 fr-col-md-4'}, attr: {class: 'fr-select'}}) }}
{{ form_row(form[roadType].toAbscissa, { row_attr: {class:'fr-col-12 fr-col-md-4'}, attr: {class: 'fr-input'}}) }}
{{ form_row(form[roadType].toPointNumber, { row_attr: {class:'fr-col-12 fr-col-md-3'}, attr: {class: 'fr-input'}}) }}
{{ form_row(form[roadType].toSide, { row_attr: {class:'fr-col-12 fr-col-md-6'}, attr: {class: 'fr-select'}}) }}
{{ form_row(form[roadType].toAbscissa, { row_attr: {class:'fr-col-12 fr-col-md-3'}, attr: {class: 'fr-input'}}) }}
</div>
</fieldset>
{{ form_row(form[roadType].direction, { group_class: 'fr-select-group', widget_class: 'fr-select' }) }}
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
22 changes: 13 additions & 9 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,31 +703,35 @@
</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>
<target>Intersection</target>
</trans-unit>
<trans-unit id="regulation.location.named_street.from_point">
<source>regulation.location.named_street.from_point</source>
<target>Point A</target>
<target>Point de début > Point A</target>
</trans-unit>
<trans-unit id="regulation.location.named_street.to_point">
<source>regulation.location.named_street.to_point</source>
<target>Point B</target>
<target>Point de fin > Point B</target>
</trans-unit>
<trans-unit id="regulation.location.named_street.house_number">
<source>regulation.location.named_street.house_number</source>
Expand Down
Loading