diff --git a/app/views/contacts/new.html.haml b/app/views/contacts/new.html.haml index 229dd52d..62ebad92 100644 --- a/app/views/contacts/new.html.haml +++ b/app/views/contacts/new.html.haml @@ -1,5 +1,10 @@ - if @contact.restroom_name.present? - %h1= t('.request-edit') + - titlestring = t('.request-edit-for') + - titlestring << " " + - titlestring << @contact.restroom_name + - titlestring << " " + - titlestring << t('.restroom') + %h1= titlestring - else %h1= t('.contact-title') = simple_form_for @contact, html: {class: 'form-vertical headroom'} do |f| diff --git a/config/locales/contacts.en.yml b/config/locales/contacts.en.yml index 1488d3ab..98e15350 100644 --- a/config/locales/contacts.en.yml +++ b/config/locales/contacts.en.yml @@ -1,6 +1,7 @@ en: contacts: new: - request-edit: 'Request Edit for #{@contact.restroom_name} Restroom' + request-edit-for: 'Request Edit for' + restroom: 'Restroom' contact-title: 'Contact' leave-this-field-blank: 'Leave this field blank!'