{% extends "base.html" %} {% block title %}{{ role.id is defined and role.id is not none and '编辑角色' or '添加角色' }} - 学生课程管理系统{% endblock %} {% block content %}
{{ role.id is defined and role.id is not none and '编辑角色' or '添加角色' }}
{% set role_permissions = role.permissions.split(',') if role and role.permissions else [] %} {% for module_key, module_info in PERMISSIONS.items() %}
{{ module_info.label }}
{% for perm_key, perm_label in module_info.permissions.items() %}
{% endfor %}
{% endfor %}
取消
{% endblock %}