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

@@ -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 -%}