From ecee55b34381f8360cf1fee8b89aede0329d818d Mon Sep 17 00:00:00 2001 From: Tom Hubrecht Date: Sat, 29 May 2021 09:22:04 +0200 Subject: [PATCH] Rennomage des templatetags --- elections/templates/elections/delete_vote.html | 2 +- elections/templates/elections/option_update.html | 2 +- elections/templates/elections/question_update.html | 2 +- shared/templates/base.html | 2 +- shared/templates/forms/field.html | 2 +- shared/templates/forms/file.html | 2 +- shared/templates/forms/input.html | 2 +- shared/templates/forms/select.html | 2 +- shared/templates/forms/textarea.html | 2 +- shared/templatetags/{bulma_utils.py => bulma.py} | 5 ----- shared/templatetags/string.py | 8 ++++++++ 11 files changed, 17 insertions(+), 14 deletions(-) rename shared/templatetags/{bulma_utils.py => bulma.py} (95%) create mode 100644 shared/templatetags/string.py diff --git a/elections/templates/elections/delete_vote.html b/elections/templates/elections/delete_vote.html index 649c568..33cc90d 100644 --- a/elections/templates/elections/delete_vote.html +++ b/elections/templates/elections/delete_vote.html @@ -1,5 +1,5 @@ {% extends "base.html" %} -{% load i18n bulma_utils %} +{% load i18n string %} {% block content %} diff --git a/elections/templates/elections/option_update.html b/elections/templates/elections/option_update.html index a4b2f00..55c6ea8 100644 --- a/elections/templates/elections/option_update.html +++ b/elections/templates/elections/option_update.html @@ -1,5 +1,5 @@ {% extends "base.html" %} -{% load i18n static bulma_utils %} +{% load i18n static string %} {% block content %} diff --git a/elections/templates/elections/question_update.html b/elections/templates/elections/question_update.html index a7f0d7a..c87434b 100644 --- a/elections/templates/elections/question_update.html +++ b/elections/templates/elections/question_update.html @@ -1,5 +1,5 @@ {% extends "base.html" %} -{% load i18n static bulma_utils %} +{% load i18n static string %} {% block content %} diff --git a/shared/templates/base.html b/shared/templates/base.html index cb324ae..7b53dfd 100644 --- a/shared/templates/base.html +++ b/shared/templates/base.html @@ -1,4 +1,4 @@ -{% load static bulma_utils i18n %} +{% load static bulma i18n %} diff --git a/shared/templates/forms/field.html b/shared/templates/forms/field.html index 8c5ad14..8072a7d 100644 --- a/shared/templates/forms/field.html +++ b/shared/templates/forms/field.html @@ -1,4 +1,4 @@ -{% load bulma_utils %} +{% load bulma %}
{% if field|is_checkbox %} diff --git a/shared/templates/forms/file.html b/shared/templates/forms/file.html index 77d099e..8d83d84 100644 --- a/shared/templates/forms/file.html +++ b/shared/templates/forms/file.html @@ -1,4 +1,4 @@ -{% load bulma_utils i18n %} +{% load i18n bulma %}