<div id="ask_question_reply">
  <%= form_for @ask_reply, url: @url, method: @method do |f| %>
    <table class="table">
      <tr>
        <td><%= AskQuestion.human_attribute_name(:name) %>：<%= @ask_question.name %></td>
        <td><%= AskQuestion.human_attribute_name(:identity) %>：<%= @ask_question.identity %></td>
        <td><%= AskQuestion.human_attribute_name(:email) %>：<%= @ask_question.email %></td>
        <td><%= AskQuestion.human_attribute_name(:phone) %>：<%= @ask_question.phone %></td>
        <td><%= AskQuestion.human_attribute_name(:tax) %>：<%= @ask_question.tax %></td>
      </tr>
      <tr>
        <td colspan="5"><%= AskQuestion.human_attribute_name(:title) %>：<%= @ask_question.title %></td>
      </tr>
      <tr>
        <td colspan="5"><%= AskQuestion.human_attribute_name(:content) %>：<br/><%= @ask_question.content %></td>
      </tr>
      <tr>
        <td colspan="5">
          <%= f.label :content %>
          <br/> <%= f.text_area :content, rows: 10, style: 'width: 500px' %>
        </td>
      </tr>
      <tr>
        <td colspan="5">
          <%= f.label :comment %>
          <br/> <%= f.text_field :comment, style: 'width: 500px' %></td>
      </tr>
      <tr>
        <td colspan="5"><%= f.label :status %> <%= f.select :status, [
          ['待處理', '待處理'],
          ['已處理', '已處理'],
          ['轉介其他單位', '轉介其他單位']
        ] %></td>
      </tr>
      <tr>
        <td colspan="5">
          <%= f.label :send_email %><%= f.radio_button :send_email, 1, checked: @ask_reply.send_email? %><%= t('ask.yes') %>
          &nbsp;
          &nbsp;
          &nbsp;
          &nbsp;
          <%= f.radio_button :send_email, 0, checked: !@ask_reply.send_email? %><%= t('ask.no') %>
        </td>
      </tr>
      <tr>
        <td colspan="5">
          <div class="form-actions">
            <%= f.submit t('submit'), class: 'btn btn-primary' %>
            <%= f.button t('cancel'), type: 'reset', class: 'btn' %>
          </div>
        </td>
      </tr>
    </table>
  <% end %>
</div>
