Skip to content

Commit 52388ca

Browse files
committed
fix search button when search_field & filter both empty
1 parent d42f6e0 commit 52388ca

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

adminlteui/templates/admin/search_form.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
</div>
1818
</div>
1919
{% endif %}
20-
20+
{% if cl.has_filters or cl.search_fields %}
2121
<div class="col-md-2">
2222
<div class="form-group" id="search_group">
23-
<button type="submit" class="btn btn-primary">{% trans 'Search' %}</button>
23+
<button type="submit" class="btn btn-primary" style="margin-right: 5px;">{% trans 'Search' %}</button>
2424
{% if show_result_count %}
2525
<span class="small quiet">{% blocktrans count counter=cl.result_count %}{{ counter }} result{% plural %}{{ counter }} results{% endblocktrans %} (<a href="?{% if cl.is_popup %}_popup=1{% endif %}">{% if cl.show_full_result_count %}{% blocktrans with full_result_count=cl.full_result_count %}{{ full_result_count }} total{% endblocktrans %}{% else %}{% trans "Show all" %}{% endif %}</a>)</span>
2626
{% endif %}
@@ -29,5 +29,6 @@
2929
{% endfor %}
3030
</div>
3131
</div>
32+
{% endif %}
3233
</form>
3334
</div>

0 commit comments

Comments
 (0)