Skip to content

Commit

Permalink
Use crispy custom FilterForm in AccountList template
Browse files Browse the repository at this point in the history
Missed this one when I was updating the other templates.
  • Loading branch information
amstilp committed Oct 12, 2023
1 parent 027512e commit 4bf2620
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,22 @@
{% load static %}

{% load render_table from django_tables2 %}
{% load crispy_forms_tags %}

{% block title %}Accounts{% endblock %}

{% block content %}
<div class="container">
<div class="alert alert-info" role="alert">
<form method="get">
{{ filter.form }}
<button type="submit" class="btn btn-primary">Filter</button>
</form>
</div>

<div class="row">
<div class="col-sm-12">

<h2>Accounts</h2>

<div class="container pt-3">
{% crispy filter.form %}
</div>

{% render_table table %}

</div>
Expand Down

0 comments on commit 4bf2620

Please sign in to comment.