Skip to content

Firefly III: a personal finances manager

Update UI

Sobuno36ec1daf3a2c
diff --git a/resources/lang/en_US/firefly.php b/resources/lang/en_US/firefly.php
index 65e810481c..f10e621e4f 100644
--- a/resources/lang/en_US/firefly.php
+++ b/resources/lang/en_US/firefly.php
@@ -329,8 +329,9 @@ return [
'search_query' => 'Query',
'search_found_transactions' => 'Firefly III found :count transaction in :time seconds.|Firefly III found :count transactions in :time seconds.',
'search_found_more_transactions' => 'Firefly III found more than :count transactions in :time seconds.',
- 'search_for_query' => 'Firefly III is searching for transactions with all of these words in them: <span class="text-info">:query</span>',
- 'search_for_excluded_words' => 'Firefly III is searching for transactions with none of these words in them: <span class="text-info">:excluded_words</span>',
+ 'search_for_overview' => 'Firefly III is searching for transactions that fulfill <b>all</b> of the following conditions:',
+ 'search_for_query' => 'All of these words must be present: <span class="text-info">:query</span>',
+ 'search_for_excluded_words' => 'None of these words may be present: <span class="text-info">:excluded_words</span>',
'invalid_operators_list' => 'These search parameters are not valid and have been ignored.',
// old
@@ -730,7 +731,6 @@ return [
// Ignore this comment
// END
- 'modifiers_applies_are' => 'The following modifiers are applied to the search as well:',
'general_search_error' => 'An error occurred while searching. Please check the log files for more information.',
'search_box' => 'Search',
'search_box_intro' => 'Welcome to the search function of Firefly III. Enter your search query in the box. Make sure you check out the help file because the search is pretty advanced.',
diff --git a/resources/views/search/index.twig b/resources/views/search/index.twig
index f4346c55b1..844f00f16a 100644
--- a/resources/views/search/index.twig
+++ b/resources/views/search/index.twig
@@ -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>