diff options
Diffstat (limited to 'postgresqleu/util/widgets.py')
-rw-r--r-- | postgresqleu/util/widgets.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/postgresqleu/util/widgets.py b/postgresqleu/util/widgets.py index 1a390b9d..65aad0a1 100644 --- a/postgresqleu/util/widgets.py +++ b/postgresqleu/util/widgets.py @@ -138,6 +138,15 @@ class Bootstrap4HtmlDateTimeInput(forms.DateTimeInput): template_name = 'forms/widgets/bs4_datetime_input.html' +class LinkForCodeWidget(TextInput): + template_name = 'forms/widgets/linkforcode_widget.html' + + def get_context(self, name, value, attrs): + d = super().get_context(name, value, attrs) + d['authurl'] = self.authurl + return d + + class SubmitButtonWidget(forms.Widget): template_name = 'forms/widgets/submitbutton_widget.html' |