2022-01-03 05:04:52 +09:00
|
|
|
{% extends 'collection/notes.html.twig' %}
|
2021-11-29 06:07:29 +09:00
|
|
|
|
2022-02-17 06:17:13 +09:00
|
|
|
{% block search_query_simple %}
|
|
|
|
<section>
|
|
|
|
<h1 class="section-title">{% trans %}Search{% endtrans %}</h1>
|
2021-12-03 01:37:17 +09:00
|
|
|
|
2022-01-27 11:17:41 +09:00
|
|
|
{{ form_start(search_form) }}
|
|
|
|
{{ form_errors(search_form) }}
|
2022-02-17 06:17:13 +09:00
|
|
|
{{ form_row(search_form.search_query) }}
|
2022-01-27 11:17:41 +09:00
|
|
|
{% if actor is not null %}
|
2022-02-17 06:17:13 +09:00
|
|
|
<details class="section-details-subtitle frame-section">
|
2022-01-27 11:17:41 +09:00
|
|
|
<summary class="details-summary-subtitle">
|
2022-02-17 06:17:13 +09:00
|
|
|
<strong>
|
|
|
|
{% trans %}Extra options{% endtrans %}
|
|
|
|
</strong>
|
2022-01-27 11:17:41 +09:00
|
|
|
</summary>
|
|
|
|
<div class="section-form">
|
2022-02-17 06:17:13 +09:00
|
|
|
{{ form_row(search_form.title) }}
|
|
|
|
{{ form_row(search_form.subscribe_to_search) }}
|
2022-01-27 11:17:41 +09:00
|
|
|
</div>
|
|
|
|
</details>
|
|
|
|
{% endif %}
|
|
|
|
{{ form_row(search_form.submit_search) }}
|
|
|
|
{{ form_rest(search_form) }}
|
|
|
|
{{ form_end(search_form)}}
|
2022-02-17 06:17:13 +09:00
|
|
|
</section>
|
|
|
|
{% endblock search_query_simple %}
|
2022-01-27 11:17:41 +09:00
|
|
|
|
2022-02-17 06:17:13 +09:00
|
|
|
{% block search_query_advanced %}
|
|
|
|
{{ form_start(search_builder_form) }}
|
|
|
|
<details class="section-details section-details-title frame-section">
|
|
|
|
<summary class="details-summary-title">
|
|
|
|
<span>{% trans %}Advanced search{% endtrans %}</span>
|
|
|
|
</summary>
|
2021-12-12 02:38:34 +09:00
|
|
|
|
2022-02-17 06:17:13 +09:00
|
|
|
<section class="frame-section-padding">
|
|
|
|
<details class="section-details-subtitle frame-section">
|
|
|
|
<summary class="details-summary-subtitle">
|
|
|
|
<strong>{% trans %}People search options{% endtrans %}</strong>
|
|
|
|
</summary>
|
|
|
|
<div class="section-form">
|
|
|
|
<div class="section-checkbox-flex">
|
2022-01-27 11:17:41 +09:00
|
|
|
{{ form_row(search_builder_form.include_actors) }}
|
|
|
|
{{ form_row(search_builder_form.include_actors_people) }}
|
|
|
|
{{ form_row(search_builder_form.include_actors_groups) }}
|
|
|
|
{{ form_row(search_builder_form.include_actors_lists) }}
|
|
|
|
{{ form_row(search_builder_form.include_actors_businesses) }}
|
|
|
|
{{ form_row(search_builder_form.include_actors_organizations) }}
|
|
|
|
{{ form_row(search_builder_form.include_actors_bots) }}
|
|
|
|
</div>
|
|
|
|
<hr>
|
2022-02-17 06:17:13 +09:00
|
|
|
{{ form_row(search_builder_form.actor_tags) }}
|
|
|
|
<hr>
|
|
|
|
{{ form_row(search_builder_form.actor_langs) }}
|
|
|
|
</div>
|
|
|
|
</details>
|
2022-01-08 06:12:07 +09:00
|
|
|
|
2022-02-17 06:17:13 +09:00
|
|
|
<details class="section-details-subtitle frame-section">
|
|
|
|
<summary class="details-summary-subtitle">
|
|
|
|
<strong>{% trans %}Note search options{% endtrans %}</strong>
|
|
|
|
</summary>
|
|
|
|
<div class="section-form">
|
|
|
|
<div class="section-checkbox-flex">
|
2022-01-27 11:17:41 +09:00
|
|
|
{{ form_row(search_builder_form.include_notes) }}
|
|
|
|
{{ form_row(search_builder_form.include_notes_text) }}
|
|
|
|
{{ form_row(search_builder_form.include_notes_media) }}
|
|
|
|
{{ form_row(search_builder_form.include_notes_polls) }}
|
|
|
|
{{ form_row(search_builder_form.include_notes_bookmarks) }}
|
|
|
|
</div>
|
|
|
|
<hr>
|
2022-02-17 06:17:13 +09:00
|
|
|
{{ form_row(search_builder_form.note_tags) }}
|
|
|
|
<hr>
|
|
|
|
{{ form_row(search_builder_form.note_langs) }}
|
|
|
|
<hr>
|
|
|
|
{{ form_row(search_builder_form.note_actor_tags) }}
|
|
|
|
<hr>
|
|
|
|
{{ form_row(search_builder_form.note_actor_langs) }}
|
|
|
|
</div>
|
|
|
|
</details>
|
2022-01-08 06:12:07 +09:00
|
|
|
|
2022-02-17 06:17:13 +09:00
|
|
|
{{ form_rest(search_builder_form) }}
|
|
|
|
</section>
|
|
|
|
</details>
|
|
|
|
{{ form_end(search_builder_form) }}
|
|
|
|
{% endblock search_query_advanced %}
|
2021-11-29 06:07:29 +09:00
|
|
|
|
2022-02-17 06:17:13 +09:00
|
|
|
{% block search %}
|
|
|
|
<section class="frame-section frame-section-padding">
|
|
|
|
{% if error is defined %}
|
|
|
|
<label class="alert alert-danger">
|
|
|
|
{{ error.getMessage() }}
|
|
|
|
</label>
|
2022-01-27 11:17:41 +09:00
|
|
|
{% endif %}
|
2022-02-17 06:17:13 +09:00
|
|
|
{{ block('search_query_simple') }}
|
|
|
|
<hr>
|
|
|
|
{{ block('search_query_advanced') }}
|
|
|
|
</section>
|
|
|
|
{% endblock search %}
|
2021-11-29 06:07:29 +09:00
|
|
|
|
2022-02-17 06:17:13 +09:00
|
|
|
{% block body %}
|
|
|
|
{{ block('search') }}
|
|
|
|
<div class="frame-section frame-section-padding">
|
|
|
|
<h1 class="section-title">{% trans %}Results{% endtrans %}</h1>
|
|
|
|
|
|
|
|
<section>
|
|
|
|
{% if notes is defined and notes is not empty %}
|
|
|
|
{{ parent() }}
|
|
|
|
{% else %}
|
|
|
|
<h3>{% trans %}No notes found{% endtrans %}</h3>
|
|
|
|
<em>{% trans %}No notes were found for the specified query...{% endtrans %}</em>
|
|
|
|
{% endif %}
|
|
|
|
</section>
|
|
|
|
<hr>
|
|
|
|
<section>
|
|
|
|
<h3>{% trans %}Actors found{% endtrans %}</h3>
|
|
|
|
{% if actors is defined and actors is not empty %}
|
|
|
|
{% for actor in actors %}
|
|
|
|
{% include 'cards/blocks/profile.html.twig' with {'actor': actor} %}
|
|
|
|
{% endfor %}
|
|
|
|
{% else %}
|
|
|
|
<em>{% trans %}No Actors were found for the specified query...{% endtrans %}</em>
|
|
|
|
{% endif %}
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<div class="frame-section-button-like">
|
|
|
|
{{ "Page: " ~ page }}
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-12-03 01:37:17 +09:00
|
|
|
{% endblock body %}
|
2021-10-10 13:44:10 +09:00
|
|
|
|