implementation for searching something in 'News' and 'Intern'

This commit is contained in:
2022-04-06 13:32:05 +00:00
parent cf632b1b31
commit df413d6814
14 changed files with 228 additions and 6 deletions

View File

@@ -0,0 +1,33 @@
{% extends 'base.html' %}
{% block content %}
<main class="container mx-auto w-full px-4 my-8 flex-1">
<h1 class="page-title">Suchen</h1>
<div class="sm:flex sm:flex-row-reverse justify-center text-gray-700 dark:text-gray-200">
<form method="get" action=".">
<table>
{{ form.as_table }}
<tr>
<td>&nbsp;</td>
<td>
<input type="submit" value="Search">
</td>
</tr>
</table>
{% if object_list %}
<h3>Results</h3>
{% for result in object_list %}
<p>
<a href="{{ result.get_absolute_url }}">{{ result.date|date }}: {{ result.title }}</a>
</p>
{% empty %}
<p>No results found.</p>
{% endfor %}
{% endif %}
</form>
</div>
</main>
{% endblock %}

View File

@@ -0,0 +1,3 @@
{{ object.title }}
{{ object.date }}
{{ object.etherpad|safe }}

View File

@@ -0,0 +1,4 @@
{{ object.title }}
{{ object.body|safe }}
{{ object.agenda|safe }}
{{ object.protocol|safe }}