[COMPONENTS][Search] Polished results page HTML view
This commit is contained in:
parent
1438433859
commit
fc57b3290e
@ -8,43 +8,52 @@
|
|||||||
</label>
|
</label>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<div class="section-padding">
|
<section class="section-widget section-padding">
|
||||||
|
<h2>{% trans %}Search{% endtrans %}</h2>
|
||||||
|
|
||||||
{{ form_start(search_form) }}
|
{{ form_start(search_form) }}
|
||||||
<div>
|
<section class="section-widget section-form">
|
||||||
{{ form_row(search_form.search_query) }}
|
{{ form_row(search_form.search_query) }}
|
||||||
{{ form_row(search_form.submit_search) }}
|
|
||||||
</div>
|
|
||||||
{% if actor is not null %}
|
{% if actor is not null %}
|
||||||
<details class="section-widget">
|
<details class="section-widget-subtitle-details">
|
||||||
<summary>
|
<summary class="section-subtitle-summary">
|
||||||
<h3>
|
<strong>{% trans %}Other options{% endtrans %}</strong>
|
||||||
{% trans %}Save this search as a feed{% endtrans %}
|
|
||||||
{{ icon('arrow-down', 'icon icon-details-open') | raw }}
|
{{ icon('arrow-down', 'icon icon-details-open') | raw }}
|
||||||
</h3>
|
|
||||||
</summary>
|
</summary>
|
||||||
|
|
||||||
|
<div class="section-form">
|
||||||
|
<details class="section-widget-subtitle-details">
|
||||||
|
<summary class="section-subtitle-summary">
|
||||||
|
<strong>
|
||||||
|
{% trans %}Save query as a feed{% endtrans %}
|
||||||
|
</strong>
|
||||||
|
{{ icon('arrow-down', 'icon icon-details-open') | raw }}
|
||||||
|
</summary>
|
||||||
|
<div class="section-form">
|
||||||
{{ form_row(search_form.title) }}
|
{{ form_row(search_form.title) }}
|
||||||
{{ form_row(search_form.subscribe_to_search) }}
|
{{ form_row(search_form.subscribe_to_search) }}
|
||||||
|
</div>
|
||||||
|
</details>
|
||||||
|
</div>
|
||||||
</details>
|
</details>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{{ form_end(search_form)}}
|
{{ form_row(search_form.submit_search) }}
|
||||||
<hr>
|
</section>
|
||||||
<details class="section-widget">
|
|
||||||
<summary>
|
<section class="section-widget">
|
||||||
<h3>
|
<details class="section-widget-subtitle-details">
|
||||||
{% trans %}Build a search query{% endtrans %}
|
<summary class="section-subtitle-summary">
|
||||||
|
<strong>{% trans %}Build a search query{% endtrans %}</strong>
|
||||||
{{ icon('arrow-down', 'icon icon-details-open') | raw }}
|
{{ icon('arrow-down', 'icon icon-details-open') | raw }}
|
||||||
</h3>
|
|
||||||
</summary>
|
</summary>
|
||||||
|
|
||||||
{{ form_start(search_builder_form) }}
|
{{ form_start(search_builder_form) }}
|
||||||
|
<div class="section-form">
|
||||||
{# actor options, display if first checked, with checkbox trick #}
|
{# actor options, display if first checked, with checkbox trick #}
|
||||||
<details class="section-widget">
|
<details class="section-widget-subtitle-details">
|
||||||
<summary>
|
<summary class="section-subtitle-summary">
|
||||||
<h3>
|
<strong>{% trans %}People search options{% endtrans %}</strong>
|
||||||
{% trans %}People search options{% endtrans %}
|
|
||||||
{{ icon('arrow-down', 'icon icon-details-open') | raw }}
|
{{ icon('arrow-down', 'icon icon-details-open') | raw }}
|
||||||
</h3>
|
|
||||||
</summary>
|
</summary>
|
||||||
{{ form_row(search_builder_form.include_actors) }}
|
{{ form_row(search_builder_form.include_actors) }}
|
||||||
{{ form_row(search_builder_form.include_actors_people) }}
|
{{ form_row(search_builder_form.include_actors_people) }}
|
||||||
@ -57,12 +66,10 @@
|
|||||||
{{ form_row(search_builder_form.actor_tags) }}
|
{{ form_row(search_builder_form.actor_tags) }}
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
<details class="section-widget">
|
<details class="section-widget-subtitle-details">
|
||||||
<summary>
|
<summary class="section-subtitle-summary">
|
||||||
<h3>
|
<strong>{% trans %}Note search options{% endtrans %}</strong>
|
||||||
{% trans %}Note search options{% endtrans %}
|
|
||||||
{{ icon('arrow-down', 'icon icon-details-open') | raw }}
|
{{ icon('arrow-down', 'icon icon-details-open') | raw }}
|
||||||
</h3>
|
|
||||||
</summary>
|
</summary>
|
||||||
{{ form_row(search_builder_form.include_notes) }}
|
{{ form_row(search_builder_form.include_notes) }}
|
||||||
{{ form_row(search_builder_form.include_notes_text) }}
|
{{ form_row(search_builder_form.include_notes_text) }}
|
||||||
@ -74,17 +81,36 @@
|
|||||||
{{ form_row(search_builder_form.note_actor_langs) }}
|
{{ form_row(search_builder_form.note_actor_langs) }}
|
||||||
{{ form_row(search_builder_form.note_actor_tags) }}
|
{{ form_row(search_builder_form.note_actor_tags) }}
|
||||||
</details>
|
</details>
|
||||||
|
</div>
|
||||||
{{ form_end(search_builder_form) }}
|
{{ form_end(search_builder_form) }}
|
||||||
</details>
|
</details>
|
||||||
<hr>
|
</section>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
{{ form_end(search_form)}}
|
||||||
|
|
||||||
|
<section class="section-widget section-padding">
|
||||||
|
<h2>{% trans %}Results{% endtrans %}</h2>
|
||||||
|
<div class="section-widget section-padding feed-empty">
|
||||||
|
<h3>{% trans %}Notes found{% endtrans %}</h3>
|
||||||
|
{% if notes is defined and notes is not empty %}
|
||||||
|
{{ parent() }}
|
||||||
|
{% else %}
|
||||||
|
<em>{% trans %}No notes were found for the specified query...{% endtrans %}</em>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{# Backwards compatibility with hAtom 0.1 #}
|
<div class="section-widget section-padding feed-empty">
|
||||||
{{ parent() }}
|
<h3>{% trans %}Actors found{% endtrans %}</h3>
|
||||||
|
{% if actors is defined and actors is not empty %}
|
||||||
{% for actor in actors %}
|
{% for actor in actors %}
|
||||||
{% include 'cards/profile/view.html.twig' with {'actor': actor} %}
|
{% include 'cards/profile/view.html.twig' with {'actor': actor} %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
{% else %}
|
||||||
|
<em>{% trans %}No Actors were found for the specified query...{% endtrans %}</em>
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
{{ "Page: " ~ page }}
|
{{ "Page: " ~ page }}
|
||||||
{% endblock body %}
|
{% endblock body %}
|
||||||
|
Loading…
Reference in New Issue
Block a user