From c25143de337c584bb3b6d752fa728cc2941bdea6 Mon Sep 17 00:00:00 2001 From: Morten Brekkevold Date: Wed, 20 Nov 2024 14:04:36 +0000 Subject: [PATCH 1/3] Change styleguide wording on crispy-forms We don't use crispy-forms any more, but our internal form template system mimics the subset of crispy-forms that we were once using. --- python/nav/web/templates/styleguide.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/nav/web/templates/styleguide.html b/python/nav/web/templates/styleguide.html index 44873be688..5b589ea0e5 100644 --- a/python/nav/web/templates/styleguide.html +++ b/python/nav/web/templates/styleguide.html @@ -399,8 +399,8 @@
jQuery UI Tabs

Forms

- We use django-crispy-forms - for "easy" and nice form layout. The advantages are: + We use a "django-crispy-forms-inspired" template system for "easy" and nice form layout. + The advantages are:

- There are many customizations done to the crispy forms. Basically, if you - need to create forms - ask on mail/jabber/irc. + Use existing forms as examples for how to build your own. If you have questions, ask them + on the NAV mailing lists or GitHub discussion forums.

{% include 'custom_crispy_templates/flat_form.html' with form=form1 %} From 2c1a9ae006b3ec54881bac363c9ad0865dbb693d Mon Sep 17 00:00:00 2001 From: Morten Brekkevold Date: Thu, 21 Nov 2024 16:04:33 +0100 Subject: [PATCH 3/3] Remove a space Co-authored-by: Johanna England --- python/nav/web/templates/styleguide.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/nav/web/templates/styleguide.html b/python/nav/web/templates/styleguide.html index f9bdf0b315..4774a8f7a2 100644 --- a/python/nav/web/templates/styleguide.html +++ b/python/nav/web/templates/styleguide.html @@ -411,7 +411,7 @@

Forms

- Use existing forms as examples for how to build your own. If you have questions, ask them + Use existing forms as examples for how to build your own. If you have questions, ask them on the NAV mailing lists or GitHub discussion forums.