ask/app/views/asks/email.html.erb

40 lines
1.1 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
</head>
<body>
<!-- <h1><%= @data['title'] %></h1> -->
<table>
<tr>
<th><%= AskQuestion.human_attribute_name(:name) %></th>
<td><%= @data['name'] %></td>
</tr>
<!-- <tr>
<th><%= AskQuestion.human_attribute_name(:identity) %></th>
<td>
<% Tag.where({:id => @data['identity']}).each do |tag| %>
<%= tag.name %>
<% end %>
</td>
</tr> -->
<tr>
<th><%= AskQuestion.human_attribute_name(:mail) %></th>
<td><%= @data['mail'] %></td>
</tr>
<tr>
<th><%= AskQuestion.human_attribute_name(:phone) %></th>
<td><%= @data['phone'] %></td>
</tr>
<!-- <tr>
<th><%= AskQuestion.human_attribute_name(:fax) %></th>
<td><%= @data['fax'] %></td>
</tr> -->
<tr>
<th><%= AskQuestion.human_attribute_name(:name) %></th>
<td><%= @data['name'].gsub(/[(\n)(\r)]/, "\n" => "<br/>", "\r" => "" ).html_safe %></td>
</tr>
</table>
<p>此為系統自動發信,請勿直接回覆</p>
</body>
</html>