Skip to content

Commit

Permalink
Merge pull request #419 from rbmarliere/instance_list_fix
Browse files Browse the repository at this point in the history
instance_list template: Fix filter button to use bootstrap5
  • Loading branch information
asmorodskyi authored Jan 6, 2025
2 parents a473d7d + c30d976 commit e778b40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ocw/templates/ocw/instance_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
{% block content %}
<link rel="stylesheet" href="{% static 'css/instance_table.css' %}">
{% if filter %}
<button data-toggle="collapse" class="btn btn-primary btn-sm" data-target="#table_filter">Edit filter<span class="glyphicon glyphicon-filter"></span></button>
<button data-bs-toggle="collapse" class="btn btn-primary btn-sm" data-bs-target="#table_filter">Edit filter<span class="glyphicon glyphicon-filter"></span></button>
Displaying {{ filter.qs.count }} of {{ filter.queryset.count }} items.
<div id="table_filter" class="well collapse {{ request.GET.state|yesno:"in, " }} ">
<div id="table_filter" class="card p-3 collapse {{ request.GET.state|yesno:"show, " }} ">
<form action="" method="get" class="form">
{% bootstrap_form filter.form %}
<a class="btn btn-default" role="button" href='{{ request.path }}' >Clear</a>
Expand Down

0 comments on commit e778b40

Please sign in to comment.