37 lines
916 B
YAML
37 lines
916 B
YAML
---
|
||
name: "Student Information Template"
|
||
description: "This template is for collecting student information."
|
||
title: "[join] test"
|
||
labels:
|
||
- join
|
||
body:
|
||
- type: input
|
||
id: name
|
||
attributes:
|
||
label: "姓名"
|
||
placeholder: "例如:张三 或 JohnDoe"
|
||
validations:
|
||
required: true
|
||
regex: ^(?:[\u4e00-\u9fa5]{2,10}|[a-zA-Z]{4,20})$
|
||
- type: input
|
||
id: student_id
|
||
attributes:
|
||
label: "学号"
|
||
placeholder: "例如:202100010001"
|
||
validations:
|
||
required: true
|
||
regex: ^\d{12}$
|
||
---
|
||
|
||
### 输入规则
|
||
1. **姓名**:
|
||
- 2-10 个中文字符 **或** 4-20 个英文字符。
|
||
- 前后均不能包含空格。
|
||
|
||
2. **学号**:
|
||
- 必须为 12 位数字。
|
||
- 不能包含空格或其他字符。
|
||
|
||
### 注意事项
|
||
- 请确保填写的信息符合规则,否则 Issue 可能会被关闭。
|
||
- 提交后,管理员会检查输入是否符合要求。 |