Edit theme

This commit is contained in:
Van Duc Le 2023-09-05 19:30:05 -05:00 committed by GitHub
parent 5f80859022
commit a5bad300b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 105 additions and 44 deletions

View file

@ -1,5 +1,5 @@
<div class="sidebox">
<h3><i class="fa fa-search"></i>{{ _('Problem search') }}</h3>
<h3 class="colored-text"><i class="fa fa-search"></i>{{ _('Problem search') }}</h3>
<div class="sidebox-content">
<form id="filter-form" name="form" action="" method="get">
<div>
@ -43,7 +43,7 @@
{% endif %}
{% if organizations %}
<div class="filter-form-group">
<label for="type"><i>{{ _('Group') }}</i></label>
<label class="bold-text margin-label" for="type"><i class="non-italics">{{ _('Group') }}</i></label>
<select id="search-org" name="orgs" multiple>
{% for org in organizations %}
<option value="{{ org.id }}"{% if org.id in org_query %} selected{% endif %}>
@ -54,7 +54,7 @@
</div>
{% endif %}
<div class="filter-form-group">
<label for="type"><i>{{ _('Author') }}</i></label>
<label class="bold-text margin-label" for="type"><i class="non-italics">{{ _('Author') }}</i></label>
<select id="search-author" name="authors" multiple>
{% for author in all_authors %}
<option value="{{ author.id }}"{% if author.id in author_query %} selected{% endif %}>
@ -63,8 +63,20 @@
{% endfor %}
</select>
</div>
{% if show_types %}
<div class="filter-form-group">
<label class="bold-text margin-label" for="type"><i class="non-italics">{{ _('Problem types') }}</i></label>
<select id="types" name="type" multiple>
{% for type in problem_types %}
<option value="{{ type.id }}"{% if type.id in selected_types %} selected{% endif %}>
{{ type.full_name }}
</option>
{% endfor %}
</select>
</div>
{% endif %}
<div class="filter-form-group">
<label for="category"><i>{{ _('Category') }}</i></label>
<label class="bold-text margin-label" for="category"><i class="non-italics">{{ _('Category') }}</i></label>
<select id="category" name="category">
{% if category %}
<option value="" selected="selected">{{ _('All') }}</option>
@ -78,27 +90,15 @@
{% endfor %}
</select>
</div>
{% if show_types %}
<div class="filter-form-group">
<label for="type"><i>{{ _('Problem types') }}</i></label>
<select id="types" name="type" multiple>
{% for type in problem_types %}
<option value="{{ type.id }}"{% if type.id in selected_types %} selected{% endif %}>
{{ type.full_name }}
</option>
{% endfor %}
</select>
</div>
{% endif %}
{% if point_values %}
<div class="form-label">{{ _('Point range') }}</div>
<div style="margin-top: 5px;" class="bold-text margin-label" class="form-label">{{ _('Point range') }}</div>
<div id="point-slider"></div>
{% endif %}
<input id="point-start" type="hidden" name="point_start" {% if point_start and point_start != point_values.min %}value="{{ point_start }}"{% else %}disabled{% endif %}>
<input id="point-end" type="hidden" name="point_end" {% if point_end and point_end != point_values.max %}value="{{ point_end }}"{% else %}disabled{% endif %}>
<div class="form-submit-group">
<a id="go" class="button small btn-darkred">{{ _('Go') }}</a>
<a id="random" class="button small btn-darkred">{{ _('Random') }}</a>
<a id="go" class="button small btn-darkGreen">{{ _('Go') }}</a>
<a id="random" class="button small btn-darkGreen">{{ _('Random') }}</a>
</div>
</form>
</div>