Skip to content

Commit

Permalink
Fix button on/off state for filters
Browse files Browse the repository at this point in the history
A previous find-replace ended up with a few pages where a button that activated a filter had the button-outline-secondary class in both states. This fixes that.
  • Loading branch information
kitsuta committed Oct 25, 2024
1 parent 94e8258 commit 5fa8960
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion uber/templates/attractions_admin/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ <h1>
{% endif %}
</h1>
{% if filtered %}
<a class="btn btn-sm btn-outline-secondary" href="index">
<a class="btn btn-sm btn-secondary" href="index">
{% else %}
<a class="btn btn-sm btn-outline-secondary" href="index?filtered=1">
{% endif %}
Expand Down
2 changes: 1 addition & 1 deletion uber/templates/dept_admin/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<h1>
Departments
{% if filtered %}
<a class="btn btn-sm btn-outline-secondary" href="index">
<a class="btn btn-sm btn-secondary" href="index">
{% else %}
<a class="btn btn-sm btn-outline-secondary" href="index?filtered=1">
{% endif %}
Expand Down
2 changes: 1 addition & 1 deletion uber/templates/dept_admin/requests.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ <h2>
</h2>
<p class="subheader">
{% if requested_any %}
<a class="btn btn-sm btn-outline-secondary" href="requests?department_id={{ department.id }}">
<a class="btn btn-sm btn-secondary" href="requests?department_id={{ department.id }}">
{% else %}
<a class="btn btn-sm btn-outline-secondary" href="requests?department_id={{ department.id }}&requested_any=1">
{% endif %}
Expand Down
2 changes: 1 addition & 1 deletion uber/templates/dept_checklist/overview.html
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
<h2>
Department Checklists
{% if filtered %}
<a class="btn btn-sm btn-outline-secondary" href="overview">
<a class="btn btn-sm btn-secondary" href="overview">
{% else %}
<a class="btn btn-sm btn-outline-secondary" href="overview?filtered=1">
{% endif %}
Expand Down

0 comments on commit 5fa8960

Please sign in to comment.