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 @@ Name: <%= registrant.name %><br>
<% else %>
Business Registry code: <%= registrant.ident %><br>
<% end %>
<% if address_processing %>
<% if local_assigns[:with_phone] -%>
Phone: <%= registrant.phone %><br>
<% end -%>
<% if address_processing -%>
Street: <%= registrant.street %><br>
City: <%= registrant.city %><br>
State: <%= registrant.state %><br>
@ -12,4 +15,4 @@ Name: <%= registrant.name %><br>
Country: <%= registrant.country %>
<% else %>
Country: <%= registrant.ident_country %>
<% end %>
<% end -%>

View file

@ -4,7 +4,10 @@ Name: <%= registrant.name %>
<% else %>
Business Registry code: <%= registrant.ident %>
<% end %>
<% if address_processing %>
<% if local_assigns[:with_phone] -%>
Phone: <%= registrant.phone %>
<% end -%>
<% if address_processing -%>
Street: <%= registrant.street %>
City: <%= registrant.city %>
State: <%= registrant.state %>
@ -12,4 +15,4 @@ Name: <%= registrant.name %>
Country: <%= registrant.country %>
<% else %>
Country: <%= registrant.ident_country %>
<% end %>
<% end -%>

View file

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

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 -%>