<div class="box search-form-container project-list-form">
  <div style="line-height: 38px;" class="flex-1"><%= type == "create" ? "新建" : "编辑" %>招聘信息</div>
  <%= link_to "返回", admins_recruitments_path, class: "btn btn-default pull-right" %>
</div>

<div class="box">
  <%= form_for @recruitment, url: {controller: "recruitments", action: "#{type}"} do |p| %>
  <div class="form-group">
    <label>
      <span class="color-grey-6 pt10">
        岗位标题
        <span class="ml10 color-orange mr20">*</span>
      </span>
    </label>
    <div class="mt-10">
      <%= p.text_field :title, class: "form-control input-lg", placeholder: "请输入岗位标题" %>
    </div>

  </div>
  
  <div class="form-group">
    <label>
      <span class="color-grey-6 pt10">
        岗位内容
        <span class="ml10 color-orange mr20">*</span>
      </span>
    </label>
    <div class="pl-0 my-3 setting-item-body" id="recruitment-content-editor">
      <%= p.text_area :description, class:"form-control", style: 'display: none;', rows: "10", cols: "20", placeholer: "请输入岗位内容" %>
    </div>

  </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">
      <%= p.number_field :order_index, class: "form-control input-lg", placeholder: "岗位排序" %>
    </div>

  </div>

  <div class="form-group">
    <div class="form-check">
      <%= p.check_box :is_public, class: "form-check-input", value:"true"%>
      <label class="form-check-label" for="is_public">
        是否上架
      </label>
    </div>
  </div>
  <div class="form-group">
    <%= p.submit "确认", class: "btn btn-primary submit-btn" %>
  </div>
  <% end %>
</div>