Skip to content

Commit

Permalink
Corrige le titre du formulaire de modification d'une structure
Browse files Browse the repository at this point in the history
  • Loading branch information
etienneCharignon committed Nov 13, 2024
1 parent ad819d3 commit fdb8a49
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/admin/structures_locales/_form.html.arb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

render partial: 'nouvelles_structures/modal_mise_en_garde' if params[:mise_en_garde] == 'affiche'
div class: 'panel nouvelle_structure' do
h2 t('.titre')
h2 t(resource.new_record? ? '.titre.nouveau' : '.titre.modification')
active_admin_form_for [:admin, resource] do |f|
f.inputs do
f.object.code_postal = params[:code_postal]&.delete('^0-9') if f.object.code_postal.blank?
Expand Down
4 changes: 3 additions & 1 deletion config/locales/views/structures.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ fr:
voir: Voir
structures_locales:
form:
titre: Création d'une nouvelle structure
titre:
nouveau: Création d'une nouvelle structure
modification: Modification de la structure
verifier_information_structure: |
**Veuillez vérifier les informations saisies avant de valider cette création.**
Si vous avez des difficultés, vous pouvez nous contacter à : [contact@beta.gouv.fr](mailto:contact@beta.gouv.fr)
Expand Down

0 comments on commit fdb8a49

Please sign in to comment.