|
|
@ -12,7 +12,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
<div class="form-group mr-2">
|
|
|
|
<div class="form-group mr-2">
|
|
|
|
<label for="identity">职业:</label>
|
|
|
|
<label for="identity">职业:</label>
|
|
|
|
<% identity_options = [['全部', '']] + UserExtension.identities.map { |k, v| [I18n.t("user.identity.#{k}"), v] } %>
|
|
|
|
<% identity_options = [['全部', ''], ['教师', 0], ['学生', 1], ['专业人士', 2]] %>
|
|
|
|
<%= select_tag(:identity, options_for_select(identity_options), class: 'form-control') %>
|
|
|
|
<%= select_tag(:identity, options_for_select(identity_options), class: 'form-control') %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|