Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

instance_list template: Fix filter button to use bootstrap5 #419

Merged
merged 1 commit into from
Jan 6, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading