You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
1.1 KiB
21 lines
1.1 KiB
<% define_breadcrumbs do %>
|
|
<% add_breadcrumb('用户列表') %>
|
|
<% end %>
|
|
|
|
<div class="box search-form-container user-list-form">
|
|
<%= form_tag(cooperative_users_path, method: :get, class: 'form-inline search-form flex-1', remote: true) do %>
|
|
<div class="form-group mr-2">
|
|
<label for="identity">职业:</label>
|
|
<% identity_options = [['全部', ''], ['教师', 0], ['学生', 1], ['专业人士', 2]] %>
|
|
<%= select_tag(:identity, options_for_select(identity_options), class: 'form-control') %>
|
|
</div>
|
|
|
|
<%= text_field_tag(:keyword, params[:keyword], class: 'form-control col-sm-2 ml-3', placeholder: 'ID/姓名/邮箱/手机号检索') %>
|
|
<%= text_field_tag(:school_name, params[:school_name], class: 'form-control col-sm-2', placeholder: '学校/单位检索') %>
|
|
<%= submit_tag('搜索', class: 'btn btn-primary ml-3', 'data-disable-with': '搜索中...') %>
|
|
<% end %>
|
|
</div>
|
|
|
|
<div class="box cooperative-list-container user-list-container">
|
|
<%= render partial: 'cooperative/users/shared/list', locals: { users: @users } %>
|
|
</div> |