mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-03 05:11:31 -05:00
add filter to new keywords page
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
{% load crispy_forms_tags %}
|
||||
{% load i18n %}
|
||||
{% load django_tables2 %}
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user