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.
35 lines
1.7 KiB
35 lines
1.7 KiB
6 years ago
|
<% define_admin_breadcrumbs do %>
|
||
|
<% add_admin_breadcrumb('用户管理', admins_users_path) %>
|
||
|
<% end %>
|
||
|
|
||
|
<div class="box search-form-container user-list-form">
|
||
|
<%= form_tag(admins_users_path, method: :get, class: 'form-inline search-form', remote: true) do %>
|
||
|
<div class="form-group mr-2">
|
||
|
<label for="status">状态:</label>
|
||
|
<% status_options = [['全部', ''], ['正常', User::STATUS_ACTIVE], ['未激活', User::STATUS_REGISTERED], ['已锁定', User::STATUS_LOCKED]] %>
|
||
|
<%= select_tag(:status, options_for_select(status_options), class: 'form-control') %>
|
||
|
</div>
|
||
|
|
||
|
<div class="form-group mr-2">
|
||
|
<label for="identity">职业:</label>
|
||
|
<% identity_options = [['全部', '']] + UserExtension.identities.map { |k, v| [I18n.t("user.identity.#{k}"), v] } %>
|
||
|
<%= select_tag(:identity, options_for_select(identity_options), class: 'form-control') %>
|
||
|
</div>
|
||
|
|
||
|
<div class="form-group mr-2">
|
||
|
<label for="identity">授权类型:</label>
|
||
|
<% auto_trial_options = [['全部', ''], ['自动授权', 1], ['手动授权', 0]] %>
|
||
|
<%= select_tag(:auto_trial, options_for_select(auto_trial_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') %>
|
||
|
<% end %>
|
||
|
</div>
|
||
|
|
||
|
<div class="box users-list-container">
|
||
|
<%= render partial: 'admins/users/shared/user_list', locals: { users: @users } %>
|
||
|
</div>
|
||
|
|
||
|
<%= render partial: 'admins/users/shared/reward_grade_modal' %>
|