<div class="modal fade feedback-history-change-modal" tabindex="-1" role="dialog" aria-hidden="true">
  <div class="modal-dialog modal-dialog-centered" role="document" style="max-width: 800px">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title">
          发送邮件给<%= @feedback&.user&.mail%>
          <% if @feedback&.user&.mail.end_with?('@example.org') || @feedback&.user&.mail.end_with?('@gitlink.org.cn')%>
            <span style="color: red">(该邮箱不可用)</span>
          <% end %>
        </h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
       <%= form_for @feedback_message_history, url: {controller: "feedbacks", action: "create_history"} do |p| %>
        <div class="modal-body">
          <div class="form-group">
            <label>
              邮件标题 <span class="ml10 color-orange mr20">*</span>
            </label>
            <%= p.text_field :title,class: "form-control input-lg", placeholder: "邮件标题", value: "您提交的意见反馈有新回复",required: true, maxlength: 64, readonly: true%>
          </div>
          <div class="form-group">
            <label>
              <span class="color-grey-6 pt10">
                邮件正文
                <span class="ml10 color-orange mr20">*</span>
              </span>
            </label>
            <div class="mt-10">
              <div class="pl-0 my-3 setting-item-body" id="feedback-history-email-editor">
                <%= p.text_area :content, class:"form-control", style: 'display: none;', rows: "10", cols: "20", placeholer: "请输入邮件正文" %>
              </div>
            </div>
          </div>
        </div>
        <div class="modal-footer">
          <button type="button" class="btn btn-secondary" data-dismiss="modal">取消</button>
          <%= p.submit "确认", class: "btn btn-primary submit-btn" %>
        </div>
      <% end %>
    </div>
  </div>
</div>