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