diff --git a/nummi/main/templates/main/form/base.html b/nummi/main/templates/main/form/base.html index 81b9cd7..e2cc2e4 100644 --- a/nummi/main/templates/main/form/base.html +++ b/nummi/main/templates/main/form/base.html @@ -22,6 +22,15 @@ {% endfor %} + + + + + + {% block buttons %} diff --git a/nummi/main/templates/main/tag/form_buttons.html b/nummi/main/templates/main/tag/form_buttons.html deleted file mode 100644 index 707ece3..0000000 --- a/nummi/main/templates/main/tag/form_buttons.html +++ /dev/null @@ -1,9 +0,0 @@ -{% load i18n %} -
- {% if not adding %} - {% translate "Delete" as del %} - {{ del }} - {% endif %} - - -
diff --git a/nummi/main/templatetags/main_extras.py b/nummi/main/templatetags/main_extras.py index b1b67ff..a0dad28 100644 --- a/nummi/main/templatetags/main_extras.py +++ b/nummi/main/templatetags/main_extras.py @@ -33,15 +33,6 @@ def pmrvalue(val): return value(val, True, r=0) -@register.inclusion_tag("main/tag/form_buttons.html") -def form_buttons(instance): - return { - "instance": instance, - "adding": instance._state.adding, - "del_url": f"del_{instance.__class__.__name__.lower()}", - } - - @register.filter def remix(icon): return mark_safe(f"""""")