Browse Source

added search url to navbar

newsletter
Esther Kleinhenz 6 years ago
parent
commit
3c7005afaf
3 changed files with 7 additions and 1 deletions
  1. 3
    0
      application/templates/base.html
  2. 1
    1
      application/templates/blog_search_list_view.html
  3. 3
    0
      log.txt

+ 3
- 0
application/templates/base.html View File

@@ -37,6 +37,9 @@
<li class="nav-item">
<a class="nav-link" href="{% url 'student_page' %}">Studentenansicht</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{% url 'blog_search_list_view' %}">Suche</a>
</li>
{% elif user.is_staff %}
<li class="nav-item">
<a class="nav-link" href="{% url 'logout' %}">Administration</a>

+ 1
- 1
application/templates/blog_search_list_view.html View File

@@ -4,7 +4,7 @@
{% include_tagcloud 'application.Post' %}
<form type="get" action="." style="margin: 0">
<input id="search_box" type="text" name="search_box" placeholder="Search...">
<button id="search_submit" type="submit">Submit</button>
<button id="search_submit" type="submit">Suchen</button>
</form>
<div>
{% for post in posts %}

+ 3
- 0
log.txt View File

@@ -135,3 +135,6 @@
[20/Oct/2018 23:41:40] INFO [mysite:184] hi
[20/Oct/2018 23:41:50] INFO [mysite:184] hi
[20/Oct/2018 23:41:56] INFO [mysite:184] taggit
[21/Oct/2018 10:35:50] INFO [mysite:184] taggit
[21/Oct/2018 10:35:55] INFO [mysite:184]
[21/Oct/2018 10:38:17] INFO [mysite:184] None

Loading…
Cancel
Save