ui: add hint for preferredPrefix

This commit is contained in:
undefined committed 2023-06-09 16:24:30 +08:00
1 parent 1afae60671
commit 566df9f48c
3 files changed
+33 -6

No files matched your search

+1
View File
@@ -19,6 +19,7 @@ perm_problem_solution: Problem Solutions
perm_problem: Problems
perm_record: Records
perm_training: Trainings
preferredPrefix_hint: This is used for re-organizing problem IDs. For example, if the ID of the problem in the problemset are P1001, P1002, P1003, and you set "T" in this option, those problem will be imported with ID T1001, T1002 and T1003.
problem_create: Problem Create
problem_edit: Problem Edit
problem_import: Import Problem
+2
View File
@@ -482,6 +482,7 @@ Last Update At: 最后活动时间
LaTeX Expressions: LaTeX 表达式
Learn More: 了解更多
Leave blank to use numeric pid.: 留空来使用数字题号。
Leave empty for default: 留空以使用默认
Ledo: 乐多
Light: 亮色
Limit user to finish contest within N hours: 限制用户在N小时内完成比赛
@@ -635,6 +636,7 @@ Please select at least one role to perform this operation.: 请选择至少一
Please select at least one user to perform this operation.: 请选择至少一个用户来进行操作。
Please wait until contest host unfreeze the scoreboard.: 请等待比赛主办方解除封榜。
Preference Settings: 偏好设置
preferredPrefix_hint: 此选项用于重排题号。例如,若题目包中所给的题号分别是 P1001, P1002, P1003,而此选项填写了 T,则导入后三道题的题号分别为 T1001, T1002 和 T1003。
Preparing Upload...: 准备上传...
Pretest Data: 自测数据
Pretest Your Code: 使用自定义数据测试
@@ -5,12 +5,34 @@
<div class="section">
<div class="section__body">
<form method="post" enctype="multipart/form-data">
<p>{{ _('Upload zipfile') }} {% if type %}({{ _('Type') }}: {{type}}){% endif %}:
<input type="file" name="file">
{% if handler.user.hasPriv(PRIV.PRIV_EDIT_SYSTEM) and not type %}<input type="checkbox" name="keepUser">{% endif %}
<input type="text" name="preferredPrefix"></input>
<input type="submit" value="{{ _('Upload') }}" class="rounded primary button">
</p>
<div class="row">
<div class="medium-12 columns">
<p>{{ _('Upload zipfile') }} {% if type %}({{ _('Type') }}: {{type}}){% endif %}: <input type="file" name="file"></p>
<br />
</div>
</div>
<div class="row">
{{ form.form_text({
label:'preferredPrefix',
columns:6,
name:'code',
row:false,
help_text:_('The preferred problem ID prefix.'),
placeholder:_('Leave empty for default')
}) }}
{% if handler.user.hasPriv(PRIV.PRIV_EDIT_SYSTEM) and not type %}
{{ form.form_checkbox ({
label:'Keep original user',
columns:6,
name:'keepUser',
placeholder:_('Keep original problem owner. Only used if this problemset is exported from current system.'),
row:false
}) }}
{% endif %}
</div>
<div class="row"><div class="columns">
<input type="submit" class="rounded primary button" value="{{ _('Upload') }}">
</div></div>
</form>
</div>
</div>
@@ -20,6 +42,8 @@
<div class="section__body typo">
<h2>{{ _('What is this?') }}</h2>
<p>{{ _('With this feature, you can import problems that you can view from a site to here. Their title, content, tags and categories will be imported.') }}</p>
<h2>{{ _('About preferredPrefix option') }}</h2>
<p>{{ _('preferredPrefix_hint') }}</p>
</div>
</div>
</div>