<div class="modal fade platform-person-change-modal" tabindex="-1" role="dialog" aria-hidden="true">
  <div class="modal-dialog modal-dialog-scrollable" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title"><%= type == "create" ? "新增" : "编辑" %></h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
       <%= form_for @person, url: {controller: "platform_people", action: "#{type}"}, html: { enctype: 'multipart/form-data' } do |p| %>
        <div class="modal-body">
          <div class="form-group">
            <label>
              标题 <span class="ml10 color-orange mr20">*</span>
            </label>
            <%= p.text_field :name,class: "form-control input-lg",required: true%>
          </div>
          <div class="logo-item">
            <% logo_img = @person.image %>
            <div class="logo-item-left mr-3 <%= logo_img ? 'has-img' : '' %>">
              <img class="logo-item-img nav-logo-img" src="<%= logo_img %>" style="<%= logo_img.present? ? '' : 'display: none' %>"/>
              <%= file_field_tag(:image, accept: 'image/png,image/jpg,image/jpeg',style: "display: none", value: params[:image]) %>
              <label for="image" class="logo-item-upload" data-toggle="tooltip" data-title="选择图片"></label>
            </div>
            <div class="logo-item-right">
              <div class="logo-item-title flex-1">logo</div>
              <div>格式：PNG、JPG</div>
              <div>尺寸：高度38px以内，宽等比例缩放</div>
            </div>
          </div>
          <div class="form-group">
            <label>
              个人宣言 <span class="ml10 color-orange mr20">*</span>
            </label>
            <%= p.text_field :announcement,class: "form-control input-lg",required: true%>
          </div>
          <div class="form-group">
            <label>
              内容 <span class="ml10 color-orange mr20">*</span>
            </label>
            <%= p.text_area :content,class: "form-control input-lg",required: true%>
          </div>
          <div class="form-group">
            <label>
              用户标识 <span class="ml10 color-orange mr20">*</span>
            </label>
            <%= p.text_field :fake_login,class: "form-control input-lg",required: true%>
          </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>