From b0fcc865599cfdc87e2ca8a637df8f5b336bb459 Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Thu, 29 Sep 2022 10:43:45 +0200 Subject: [proxy] make uniform use of section labels in the web UI --- .../proxy/web_ui/templates/base.html.jinja | 11 +- .../proxy/web_ui/templates/import.html.jinja | 14 +-- .../templates/import/checkbox_tricks.html.jinja | 35 +++++++ .../proxy/web_ui/templates/index.html.jinja | 8 ++ .../templates/items/item_viewversion.html.jinja | 13 ++- .../templates/items/library_viewversion.html.jinja | 10 ++ .../templates/items/package_viewversion.html.jinja | 12 +++ .../proxy/web_ui/templates/repos/add.html.jinja | 4 +- .../web_ui/templates/repos/show_single.html.jinja | 111 ++++++++++----------- .../proxy/web_ui/templates/rules/add.html.jinja | 16 +-- .../web_ui/templates/rules/show_single.html.jinja | 36 +++---- 11 files changed, 166 insertions(+), 104 deletions(-) create mode 100644 src/hydrilla/proxy/web_ui/templates/import/checkbox_tricks.html.jinja (limited to 'src/hydrilla/proxy') diff --git a/src/hydrilla/proxy/web_ui/templates/base.html.jinja b/src/hydrilla/proxy/web_ui/templates/base.html.jinja index eb9cb57..266e448 100644 --- a/src/hydrilla/proxy/web_ui/templates/base.html.jinja +++ b/src/hydrilla/proxy/web_ui/templates/base.html.jinja @@ -62,9 +62,9 @@ code in a proprietary work, I am not going to enforce this in court. {% endmacro %} -{% macro form_label(label_text, label_name=none) %} +{% macro label(label_text, label_name=none) %} {% set for_attr = label_name and (label_name + "_field") %} -