core&ui: contest/homework: add search

This commit is contained in:
undefined committed 2025-04-13 02:10:10 +08:00
1 parent bf51bd30c7
commit d46de63264
10 files changed
+31 -22

No files matched your search

+1 -1
View File
@@ -108,7 +108,7 @@
"sticky-kit": "^1.1.3",
"style-loader": "^4.0.0",
"stylus": "^0.64.0",
"stylus-loader": "7.1.3",
"stylus-loader": "7.1.2",
"svgtofont": "^6.3.2",
"tether": "1.4.7",
"tether-drop": "^1.4.2",
@@ -59,7 +59,7 @@
<h1 class="section__title">{{ _('All Contests') if not rule else _('All {0} Contests').format(_(model.contest.RULES[rule].TEXT)) }}</h1>
<div class="section__tools">
<form method="get" name="filter-form">
{{ _('Show') }}:
<input type="text" class="inline compact textbox" name="q" value="{{ q }}" placeholder="{{ _('Search contests...') }}">
<select class="inline compact select" name="group">
<option value=""{% if not group %} selected{% endif %}>{{ _('All') }}</option>
{%- for g in groups -%}
@@ -16,7 +16,7 @@
</span>
{% if groups.length %}
<form method="get" class="filter-form" name="filter-form">
{{ _('Show') }}:
<input type="text" class="inline compact textbox" name="q" value="{{ q }}" placeholder="{{ _('Search homeworks...') }}">
<select class="inline compact select" name="group">
<option value=""{% if not group %} selected{% endif %}>{{ _('All') }}</option>
{%- for g in groups -%}