<%= f.input :first_name %>
<%= f.input :last_name %>
<%= f.input :email %>
<% if current_user.admin? %>
<%= f.input :admin, as: :boolean %>
<% end %>
<%= f.input :student, as: :autocomplete, url: search_autocomplete_students_path %>
<%= f.input :teacher_id, as: :select2, elements: @teachers %>
<% if f.object.teacher_id.blank? %>
Este campo deve ser preenchido caso o usuário seja um professor.
<% end %>
<%= f.input :status, as: :select2, elements: UserStatus.to_select.to_json %>
<%= f.input :expiration_date %>
<%= f.input :phone, as: :tel, input_html: { autocomplete: "off" } %>
<% if current_user.can_change?("can_change_user_password") %>
<%= f.input :password, hint: "Preencha apenas se desejar alterar a senha", input_html: { autocomplete: "new-password" } %>
<% end %>