add filter to new keywords page

This commit is contained in:
smilerz
2021-02-17 10:45:31 -06:00
parent 6962b0e218
commit c6dd55df4e
4 changed files with 32 additions and 4 deletions

View File

@@ -1,4 +1,3 @@
{% load crispy_forms_tags %}
{% load i18n %}
{% load django_tables2 %}

View File

@@ -1,4 +1,5 @@
{% extends "base.html" %}
{% load crispy_forms_tags %}
{% load i18n %}
{% load django_tables2 %}
@@ -8,13 +9,26 @@
{% block content %}
<div class="table-container">
<h3 style="margin-bottom: 2vh">{% trans 'Manage Keywords' %} {% trans 'List' %}
<h3 style="margin-bottom: 2vh">{% trans 'Manage Keywords' %}
{% if create_url %}
<a href="{% url create_url %}"> <i class="fas fa-plus-circle"></i>
</a>
{% endif %}
</h3>
{% if filter %}
<br/>
<br/>
<form action="." method="get">
{% csrf_token %}
{{ filter.form|crispy }}
<button type="submit" class="btn btn-success">{% trans 'Filter' %}</button>
<a href="{% url 'manage_keywords' %}"
class="btn btn-secondary shadow-none">{% trans 'Clear' %}</a>
</form>
{% endif %}
{% render_table table %}
</div>