Skip to content

Commit

Permalink
bug fix to show search bar after nothings found
Browse files Browse the repository at this point in the history
  • Loading branch information
imankarimi committed Jul 31, 2023
1 parent df04efd commit c190786
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
26 changes: 13 additions & 13 deletions log_reader/templates/log_reader/admin/change_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,20 @@ <h1>File Logs</h1>
{% block content %}
<div id="content-main">
<div class="module filtered" id="changelist">
{% if django_version >= '3' %}
<div class="changelist-form-container">{% endif %}
{% if file_contents %}
<div id="toolbar">
<form id="changelist-search" method="get">
<div><!-- DIV needed for valid HTML -->
<label for="searchbar"><img src="{% static "admin/img/search.svg" %}" alt="Search"></label>
<input type="text" size="40" name="q" value="{{ request.GET.q }}" id="searchbar" autofocus="">
<input type="submit" value="Search">
</div>
</form>
{% if django_version >= '3' %}<div class="changelist-form-container">{% endif %}

<div id="toolbar">
<form id="changelist-search" method="get">
<div><!-- DIV needed for valid HTML -->
<label for="searchbar"><img src="{% static "admin/img/search.svg" %}" alt="Search"></label>
<input type="text" size="40" name="q" value="{{ request.GET.q }}" id="searchbar" autofocus="">
<input type="submit" value="Search">
</div>
</form>
{% if file_contents %}
<button id="DownloadLogFile" type="submit">Download</button>
</div>
{% endif %}
{% endif %}
</div>

{% if file_contents %}
<form id="changelist-form" method="post" novalidate=""{% if django_version < '3' %} style="width: auto;margin-right: 280px;" {% endif %}>
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

setup(
name='django-log-reader',
version='1.1.7',
version='1.1.8',
zip_safe=False,
packages=find_packages(),
include_package_data=True,
Expand Down

0 comments on commit c190786

Please sign in to comment.