<div class="modal fade pinned-forum-change-modal" tabindex="-1" role="dialog" aria-hidden="true">
  <div class="modal-dialog modal-dialog-centered" 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 @pinned_forum, url: {controller: "topic/pinned_forums", action: "#{type}"} 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",required: true%>
          </div>
          <div class="form-group">
            <label>
              跳转地址 <span class="ml10 color-orange mr20">*</span>
            </label>
            <%= p.text_field :url,class: "form-control input-lg",required: true%>
          </div>
          <div class="form-group">
            <label>
              帖子ID <span class="ml10 color-orange mr20">*</span>
            </label>
            <%= p.number_field :uuid,class: "form-control input-lg",required: true%>
          </div>
          <div class="form-group">
          <label>
            排序等级 
          </label>
          <%= p.number_field :order_index, class: "form-control",placeholder: ""%>
        </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>