{% import "components/ui/v1.html" as ui_v1 %} {% extends "layout/basic.html" %} {% block content %}

{{ _('学生账号管理') }}

{{ domainName }} ({{ domainId }})
{% if messages and messages.length %}
{% for message in messages %}

{{ message }}

{% endfor %}
{% endif %}

{{ _('一行一个姓名即可;UID 由 Hydro 自动生成,账号前缀和学号不需要填写。') }}

{{ _('高级选项') }}
{% if candidates and candidates.length %}

{{ _('导入预览') }}

{% if previewPayload %}
{% endif %}
{% for candidate in candidates %} {% endfor %}
{{ _('行') }} {{ _('姓名') }} {{ _('账号') }} {{ _('UID') }} {{ _('角色') }} {{ _('小组') }} {{ _('密码') }} {{ _('状态') }}
{{ candidate.lineNum }}
{{ candidate.name }}
{{ candidate.username }}
{% if candidate.uid %}{{ candidate.uid }}{% else %}{{ _('导入后生成') }}{% endif %}
{{ candidate.role }}
{% if candidate.groups and candidate.groups.length %} {% for group in candidate.groups %}{{ group }}{% endfor %} {% else %} {{ _('无小组') }} {% endif %}
{{ candidate.password }}
{% if candidate.errors and candidate.errors.length %} {% for error in candidate.errors %}{{ error }}{% if not loop.last %}
{% endif %}{% endfor %}
{% elif candidate.created %} {{ _('已创建并加入子域') }} UID {{ candidate.uid }} {% elif candidate.imported %} {{ _('已加入/修复子域') }} UID {{ candidate.uid }} {% elif candidate.existing %} {{ _('可加入/修复') }} UID {{ candidate.uid }} {% else %} {{ _('可导入') }} {% endif %}
{% endif %}

{{ _('重置托管学生密码') }}

{{ _('这里只能重置本插件创建并托管的学生密码。') }}

{{ _('托管学生') }} {{ ui_v1.help(_('默认角色学生可能不出现在 Hydro 原生域用户角色列表,请以本页托管学生为准。'), '托管学生说明') }}

{% if not students.length %}

{{ _('暂无托管学生') }}

{% else %}
    {% for student in students %}
  • {{ student.name }}
    {{ _('账号') }} {{ student.uname }} / UID {{ student.uid }}{% if student.groupText %} / {{ student.groupText }}{% endif %}
  • {% endfor %}
{% endif %}
{% endblock %}