Update UI

This commit is contained in:
Sobuno
2025-01-03 00:29:38 +01:00
parent 50aff9cfb6
commit 36ec1daf3a
2 changed files with 23 additions and 23 deletions

View File

@@ -38,17 +38,31 @@
<input type="hidden" name="rule" value="{{ ruleId }}"/>
{% endif %}
</form>
<p>
{{ trans('firefly.search_for_overview') |raw }}
</p>
<ul>
{% if '' != query %}
<p>
{{ trans('firefly.search_for_query', {query: query|escape})|raw }}
</p>
<li>
{{- trans('firefly.search_for_query', {query: query|escape})|raw -}}
</li>
{% endif %}
{% if '' != excludedWords %}
<p>
{{ trans('firefly.search_for_excluded_words', {excluded_words: excludedWords|escape})|raw }}
</p>
<li>
{{- trans('firefly.search_for_excluded_words', {excluded_words: excludedWords|escape})|raw -}}
</li>
{% endif %}
{% for operator in operators %}
{% if operator.prohibited %}
<li>{{- trans('firefly.search_modifier_not_'~operator.type, {value: operator.value}) -}}</li>
{% endif %}
{% if not operator.prohibited %}
<li>{{- trans('firefly.search_modifier_'~operator.type, {value: operator.value}) -}}</li>
{% endif %}
{% endfor %}
</ul>
{% if invalidOperators|length > 0 %}
<p>{{ trans('firefly.invalid_operators_list') }}</p>
<ul>
@@ -57,20 +71,6 @@
{% endfor %}
</ul>
{% endif %}
{% if operators|length > 0 %}
<p>{{ trans('firefly.modifiers_applies_are') }}</p>
<ul>
{% for operator in operators %}
{% if operator.prohibited %}
<li>{{ trans('firefly.search_modifier_not_'~operator.type, {value: operator.value}) }}</li>
{% endif %}
{% if not operator.prohibited %}
<li>{{ trans('firefly.search_modifier_'~operator.type, {value: operator.value}) }}</li>
{% endif %}
{% endfor %}
</ul>
{% endif %}
</div>
</div>
</div>