diff --git a/src/wuttaweb/forms/widgets.py b/src/wuttaweb/forms/widgets.py index 03fe717..ca53259 100644 --- a/src/wuttaweb/forms/widgets.py +++ b/src/wuttaweb/forms/widgets.py @@ -2,7 +2,7 @@ ################################################################################ # # wuttaweb -- Web App for Wutta Framework -# Copyright © 2024 Lance Edgar +# Copyright © 2024-2025 Lance Edgar # # This file is part of Wutta Framework. # @@ -153,6 +153,21 @@ class WuttaCheckboxChoiceWidget(CheckboxChoiceWidget): self.app = self.config.get_app() +class WuttaCheckedPasswordWidget(PasswordWidget): + """ + Custom widget for password+confirmation field. + + This widget is used only for Vue 3 + Oruga, but is *not* used for + Vue 2 + Buefy. + + This is a subclass of :class:`deform:deform.widget.PasswordWidget` + and uses these Deform templates: + + * ``wutta_checked_password`` + """ + template = 'wutta_checked_password' + + class WuttaDateWidget(DateInputWidget): """ Custom widget for :class:`python:datetime.date` fields. diff --git a/src/wuttaweb/templates/deform/wutta_checked_password.pt b/src/wuttaweb/templates/deform/wutta_checked_password.pt new file mode 100644 index 0000000..3be280f --- /dev/null +++ b/src/wuttaweb/templates/deform/wutta_checked_password.pt @@ -0,0 +1,8 @@ +