Skip to content
Browse files

show custom attributes on email receipts and admin

  • Loading branch information...
1 parent 07838d5 commit 503706eb59e07f9e4e436aa2acb17a059e2fbfde @wmakley wmakley committed
View
6 app/views/refinery/inquiries/admin/inquiries/show.html.erb
@@ -54,6 +54,12 @@
</td>
</tr>
<% end %>
+ <% @inquiry.custom_attributes.each do |name, value| %>
+ <tr>
+ <td><strong><%= name.to_s.titleize %></strong></td>
+ <td><%= value %></td>
+ </tr>
+ <% end %>
<tr>
<td>
<strong><%= t('.date') %></strong>
View
3 app/views/refinery/inquiries/inquiry_mailer/notification.text.erb
@@ -7,6 +7,9 @@
<%=raw t('.from') %>: <%= @inquiry.name %>
<%=raw t('.email') %>: <%= @inquiry.email %>
<%=raw t('.phone') %>: <%= @inquiry.phone %>
+<% @inquiry.custom_attributes.each do |name, value| -%>
+<%=raw name.to_s.titleize %>: <%= value %>
+<% end -%>
<%=raw t('.message') %>:
<%=strip_tags(@inquiry.message) %>

0 comments on commit 503706e

Please sign in to comment.
Something went wrong with that request. Please try again.