Skip to content

Commit

Permalink
enable address fields #2342
Browse files Browse the repository at this point in the history
  • Loading branch information
emilschn committed May 7, 2024
1 parent 414732c commit a9f13eb
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 18 deletions.
9 changes: 3 additions & 6 deletions assets/vue/components/signalement-form/address_subscreen.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,17 @@
{
"type": "SignalementFormTextfield",
"label": "Numéro et voie",
"slug": "detail_numero",
"disabled": true
"slug": "detail_numero"
},
{
"type": "SignalementFormTextfield",
"label": "Code postal",
"slug": "detail_code_postal",
"disabled": true
"slug": "detail_code_postal"
},
{
"type": "SignalementFormTextfield",
"label": "Commune",
"slug": "detail_commune",
"disabled": true
"slug": "detail_commune"
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,19 @@
</div>
</div>

<div class="fr-input-group fr-input-group--disabled">
<div class="fr-input-group">
<label class="fr-label" for="form-edit-address-adresse">Numéro et voie</label>
<input class="fr-input" id="form-edit-address-adresse" type="text" readonly name="adresse" value="{{ signalement.adresseOccupant }}" data-autocomplete-addresse="true">
<input class="fr-input" id="form-edit-address-adresse" type="text" name="adresse" value="{{ signalement.adresseOccupant }}" data-autocomplete-addresse="true">
</div>

<div class="fr-input-group fr-input-group--disabled">
<div class="fr-input-group">
<label class="fr-label" for="form-edit-address-codepostal">Code postal</label>
<input class="fr-input" id="form-edit-address-codepostal" type="text" readonly name="codePostal" value="{{ signalement.cpOccupant }}" data-autocomplete-codepostal="true">
<input class="fr-input" id="form-edit-address-codepostal" type="text" name="codePostal" value="{{ signalement.cpOccupant }}" data-autocomplete-codepostal="true">
</div>

<div class="fr-input-group fr-input-group--disabled">
<div class="fr-input-group">
<label class="fr-label" for="form-edit-address-ville">Commune</label>
<input class="fr-input" id="form-edit-address-ville" type="text" readonly name="ville" value="{{ signalement.villeOccupant }}" data-autocomplete-ville="true">
<input class="fr-input" id="form-edit-address-ville" type="text" name="ville" value="{{ signalement.villeOccupant }}" data-autocomplete-ville="true">
</div>

<input type="hidden" name="insee" value="{{ signalement.inseeOccupant }}" data-autocomplete-insee="true">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,19 +92,19 @@
</div>
</div>

<div class="fr-input-group fr-input-group--disabled">
<div class="fr-input-group">
<label class="fr-label" for="form-edit-coordonnees-bailleur-adresse">Numéro et voie</label>
<input class="fr-input" id="form-edit-coordonnees-bailleur-adresse" type="text" readonly name="adresse" value="{{ signalement.adresseProprio }}" data-autocomplete-addresse="true">
<input class="fr-input" id="form-edit-coordonnees-bailleur-adresse" type="text" name="adresse" value="{{ signalement.adresseProprio }}" data-autocomplete-addresse="true">
</div>

<div class="fr-input-group fr-input-group--disabled">
<div class="fr-input-group">
<label class="fr-label" for="form-edit-coordonnees-bailleur-codepostal">Code postal</label>
<input class="fr-input" id="form-edit-coordonnees-bailleur-codepostal" type="text" readonly name="codePostal" value="{{ signalement.codePostalProprio }}" data-autocomplete-codepostal="true">
<input class="fr-input" id="form-edit-coordonnees-bailleur-codepostal" type="text" name="codePostal" value="{{ signalement.codePostalProprio }}" data-autocomplete-codepostal="true">
</div>

<div class="fr-input-group fr-input-group--disabled">
<div class="fr-input-group">
<label class="fr-label" for="form-edit-coordonnees-bailleur-ville">Commune</label>
<input class="fr-input" id="form-edit-coordonnees-bailleur-ville" type="text" readonly name="ville" value="{{ signalement.villeProprio }}" data-autocomplete-ville="true">
<input class="fr-input" id="form-edit-coordonnees-bailleur-ville" type="text" name="ville" value="{{ signalement.villeProprio }}" data-autocomplete-ville="true">
</div>

<div class="fr-select-group">
Expand Down

0 comments on commit a9f13eb

Please sign in to comment.