2022-01-03 05:04:52 +09:00
|
|
|
{% extends 'collection/notes.html.twig' %}
|
2021-11-29 06:07:29 +09:00
|
|
|
|
2021-12-03 01:37:17 +09:00
|
|
|
|
2021-11-29 06:07:29 +09:00
|
|
|
{% block body %}
|
2021-12-03 04:17:37 +09:00
|
|
|
{% if error is defined %}
|
2021-12-03 01:37:17 +09:00
|
|
|
<label class="alert alert-danger">
|
|
|
|
{{ error.getMessage() }}
|
|
|
|
</label>
|
|
|
|
{% endif %}
|
|
|
|
|
2022-01-20 08:54:45 +09:00
|
|
|
<section class="frame-section frame-section-padding">
|
2022-01-08 06:12:07 +09:00
|
|
|
<h2>{% trans %}Search{% endtrans %}</h2>
|
|
|
|
|
2021-12-12 02:38:34 +09:00
|
|
|
{{ form_start(search_form) }}
|
2022-01-20 08:54:45 +09:00
|
|
|
<section class="frame-section section-form">
|
2022-01-05 04:05:06 +09:00
|
|
|
{{ form_errors(search_form) }}
|
2021-12-12 02:38:34 +09:00
|
|
|
{{ form_row(search_form.search_query) }}
|
2022-01-08 06:12:07 +09:00
|
|
|
{% if actor is not null %}
|
2022-01-20 08:54:45 +09:00
|
|
|
<details class="section-details-subtitle">
|
2022-01-22 03:36:44 +09:00
|
|
|
<summary class="details-summary-subtitle">
|
2022-01-08 06:12:07 +09:00
|
|
|
<strong>{% trans %}Other options{% endtrans %}</strong>
|
|
|
|
</summary>
|
2021-12-12 02:38:34 +09:00
|
|
|
|
2022-01-08 06:12:07 +09:00
|
|
|
<div class="section-form">
|
2022-01-20 08:54:45 +09:00
|
|
|
<details class="section-details-subtitle">
|
2022-01-22 03:36:44 +09:00
|
|
|
<summary class="details-summary-subtitle">
|
2022-01-08 06:12:07 +09:00
|
|
|
<strong>
|
|
|
|
{% trans %}Save query as a feed{% endtrans %}
|
|
|
|
</strong>
|
|
|
|
</summary>
|
|
|
|
<div class="section-form">
|
|
|
|
{{ form_row(search_form.title) }}
|
|
|
|
{{ form_row(search_form.subscribe_to_search) }}
|
|
|
|
</div>
|
2022-01-22 03:36:44 +09:00
|
|
|
<hr>
|
2022-01-08 06:12:07 +09:00
|
|
|
</details>
|
|
|
|
</div>
|
|
|
|
</details>
|
|
|
|
{% endif %}
|
|
|
|
{{ form_row(search_form.submit_search) }}
|
|
|
|
</section>
|
2022-01-18 07:57:38 +09:00
|
|
|
{{ form_end(search_form)}}
|
2021-12-12 02:38:34 +09:00
|
|
|
|
2022-01-20 08:54:45 +09:00
|
|
|
<section class="frame-section">
|
|
|
|
<details class="section-details-subtitle">
|
2022-01-22 03:36:44 +09:00
|
|
|
<summary class="details-summary-subtitle">
|
2022-01-08 06:12:07 +09:00
|
|
|
<strong>{% trans %}Build a search query{% endtrans %}</strong>
|
2021-12-12 02:38:34 +09:00
|
|
|
</summary>
|
|
|
|
|
2022-01-08 06:12:07 +09:00
|
|
|
{{ form_start(search_builder_form) }}
|
|
|
|
<div class="section-form">
|
|
|
|
{# actor options, display if first checked, with checkbox trick #}
|
2022-01-20 08:54:45 +09:00
|
|
|
<details class="section-details-subtitle">
|
2022-01-22 03:36:44 +09:00
|
|
|
<summary class="details-summary-subtitle">
|
2022-01-08 06:12:07 +09:00
|
|
|
<strong>{% trans %}People search options{% endtrans %}</strong>
|
|
|
|
</summary>
|
2022-01-22 03:36:44 +09:00
|
|
|
<div class="section-form">
|
|
|
|
{{ 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) }}
|
|
|
|
{{ form_row(search_builder_form.actor_langs) }}
|
|
|
|
{{ form_row(search_builder_form.actor_tags) }}
|
|
|
|
</div>
|
|
|
|
<hr>
|
2022-01-08 06:12:07 +09:00
|
|
|
</details>
|
|
|
|
|
2022-01-20 08:54:45 +09:00
|
|
|
<details class="section-details-subtitle">
|
2022-01-22 03:36:44 +09:00
|
|
|
<summary class="details-summary-subtitle">
|
2022-01-08 06:12:07 +09:00
|
|
|
<strong>{% trans %}Note search options{% endtrans %}</strong>
|
|
|
|
</summary>
|
2022-01-22 03:36:44 +09:00
|
|
|
<div class="section-form">
|
|
|
|
{{ 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) }}
|
|
|
|
{{ form_row(search_builder_form.note_langs) }}
|
|
|
|
{{ form_row(search_builder_form.note_tags) }}
|
|
|
|
{{ form_row(search_builder_form.note_actor_langs) }}
|
|
|
|
{{ form_row(search_builder_form.note_actor_tags) }}
|
|
|
|
</div>
|
|
|
|
<hr>
|
2022-01-08 06:12:07 +09:00
|
|
|
</details>
|
|
|
|
</div>
|
|
|
|
{{ form_end(search_builder_form) }}
|
2021-12-12 02:38:34 +09:00
|
|
|
</details>
|
2022-01-08 06:12:07 +09:00
|
|
|
</section>
|
|
|
|
</section>
|
|
|
|
|
2022-01-20 08:54:45 +09:00
|
|
|
<section class="frame-section frame-section-padding">
|
2022-01-08 06:12:07 +09:00
|
|
|
<h2>{% trans %}Results{% endtrans %}</h2>
|
2022-01-20 08:54:45 +09:00
|
|
|
<div class="frame-section frame-section-padding feed-empty">
|
2022-01-08 06:12:07 +09:00
|
|
|
{% if notes is defined and notes is not empty %}
|
|
|
|
{{ parent() }}
|
|
|
|
{% else %}
|
2022-01-20 08:54:45 +09:00
|
|
|
<h3>{% trans %}No notes found{% endtrans %}</h3>
|
2022-01-08 06:12:07 +09:00
|
|
|
<em>{% trans %}No notes were found for the specified query...{% endtrans %}</em>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
2021-11-29 06:07:29 +09:00
|
|
|
|
2022-01-20 08:54:45 +09:00
|
|
|
<div class="frame-section frame-section-padding feed-empty">
|
2022-01-08 06:12:07 +09:00
|
|
|
<h3>{% trans %}Actors found{% endtrans %}</h3>
|
|
|
|
{% if actors is defined and actors is not empty %}
|
|
|
|
{% for actor in actors %}
|
|
|
|
{% include 'cards/profile/view.html.twig' with {'actor': actor} %}
|
|
|
|
{% endfor %}
|
|
|
|
{% else %}
|
|
|
|
<em>{% trans %}No Actors were found for the specified query...{% endtrans %}</em>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</section>
|
2021-11-29 06:07:29 +09:00
|
|
|
|
2021-12-03 01:37:17 +09:00
|
|
|
{{ "Page: " ~ page }}
|
|
|
|
{% endblock body %}
|
2021-10-10 13:44:10 +09:00
|
|
|
|