diff --git a/cookbook/tables.py b/cookbook/tables.py index 1ffb45249..160e3e95d 100644 --- a/cookbook/tables.py +++ b/cookbook/tables.py @@ -13,6 +13,7 @@ class RecipeTable(tables.Table): attrs={'td': {'class': 'd-none d-lg-table-cell'}, 'th': {'class': 'd-none d-lg-table-cell'}}) all_tags = tables.Column( attrs={'td': {'class': 'd-none d-lg-table-cell'}, 'th': {'class': 'd-none d-lg-table-cell'}}) + delete = tables.TemplateColumn("" + _('Delete') + "") # TODO remove and put into edit page class Meta: model = Recipe @@ -22,6 +23,7 @@ class RecipeTable(tables.Table): class CategoryTable(tables.Table): id = tables.LinkColumn('edit_category', args=[A('id')]) + delete = tables.TemplateColumn("" + _('Delete') + "") class Meta: model = Category @@ -31,6 +33,7 @@ class CategoryTable(tables.Table): class KeywordTable(tables.Table): id = tables.LinkColumn('edit_keyword', args=[A('id')]) + delete = tables.TemplateColumn("" + _('Delete') + "") class Meta: model = Keyword diff --git a/cookbook/templates/base.html b/cookbook/templates/base.html index 2e2556e1c..3a2bf8762 100644 --- a/cookbook/templates/base.html +++ b/cookbook/templates/base.html @@ -41,7 +41,7 @@
+