|
|
|
@@ -63,19 +63,6 @@ |
|
|
|
<%= f.input :gender, as: :radio_buttons, label: '性别', collection: [%w(男 0), %w(女 1)], wrapper_html: { class: 'col-md-3' } %> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="form-row user-identity-select"> |
|
|
|
<div class="form-group select optional col-md-1"> |
|
|
|
<%= f.label :identity, label: '职业' %> |
|
|
|
<%= select_tag('user[identity]', [], class: 'form-control identity-select optional', 'data-value': @user.user_extension&.identity, 'data-first-title': '请选择') %> |
|
|
|
</div> |
|
|
|
<div class="form-group technical-title-select-wrapper optional col-md-1" style="<%= @user&.user_extension&.student? ? 'display:none;' : '' %>"> |
|
|
|
<%= f.label :technical_title, label: '职称' %> |
|
|
|
<%= select_tag('user[technical_title]', [], class: 'form-control technical-title-select optional', 'data-value': @user.technical_title) %> |
|
|
|
</div> |
|
|
|
|
|
|
|
<%= f.input :student_id, as: :tel, label: '学号', wrapper_html: { class: 'col-md-2', style: @user&.user_extension&.student? ? '' : 'display:none;' }, input_html: { class: 'student-id-input' } %> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="form-row"> |
|
|
|
<%= f.input :mail, as: :email, label: '邮箱地址', wrapper_html: { class: 'col-md-3' }, input_html: { class: 'col-sm-11' } %> |
|
|
|
<%= f.input :phone, as: :tel, label: '手机号', wrapper_html: { class: 'col-md-3' }, input_html: { class: 'col-sm-11', autocomplete: 'off' } %> |
|
|
|
@@ -102,19 +89,10 @@ |
|
|
|
<%= f.label :role, label: '角色' %> |
|
|
|
<div class="d-flex"> |
|
|
|
<%= f.input :admin, as: :boolean, label: '管理员', checked_value: 1, unchecked_value: 0 %> |
|
|
|
<%= f.input :business, as: :boolean, label: '运营人员', wrapper_html: { class: 'ml-3' }, checked_value: 1, unchecked_value: 0 %> |
|
|
|
<%= f.input :is_test, as: :boolean, label: '测试账号', wrapper_html: { class: 'ml-3' }, checked_value: 1, unchecked_value: 0 %> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<% end %> |
|
|
|
|
|
|
|
<div class="form-group check_boxes optional"> |
|
|
|
<%= f.label :role, label: '认证信息' %> |
|
|
|
<div class="d-flex"> |
|
|
|
<%= f.input :professional_certification, as: :boolean, label: '职业认证', checked_value: 1, unchecked_value: 0 %> |
|
|
|
<%= f.input :authentication, as: :boolean, label: '实名认证', wrapper_html: { class: 'ml-3' }, checked_value: 1, unchecked_value: 0 %> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="form-row"> |
|
|
|
<%= f.input :password, as: :password, label: '修改密码', wrapper_html: { class: 'col-md-3' }, input_html: { class: 'col-sm-11', autocomplete: 'new-password' } %> |
|
|
|
|