Show registrant phone in ContactMailer

#480
This commit is contained in:
Artur Beljajev 2017-05-22 12:42:10 +03:00
parent 490ebf969c
commit adcebd084a
9 changed files with 48 additions and 13 deletions

View file

@ -4,7 +4,10 @@ Nimi: <%= registrant.name %>
<% else %>
Äriregistrikood: <%= registrant.ident %>
<% end %>
<% if address_processing %>
<% if local_assigns[:with_phone] -%>
Telefon: <%= registrant.phone %>
<% end -%>
<% if address_processing -%>
Tänav: <%= registrant.street %>
Linn: <%= registrant.city %>
Maakond: <%= registrant.state %>
@ -12,4 +15,4 @@ Nimi: <%= registrant.name %>
Riik: <%= registrant.country(locale: :et) %>
<% else %>
Riik: <%= registrant.ident_country(locale: :et) %>
<% end %>
<% end -%>