diff options
Diffstat (limited to 'pgcommitfest/commitfest/widgets.py')
-rw-r--r-- | pgcommitfest/commitfest/widgets.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pgcommitfest/commitfest/widgets.py b/pgcommitfest/commitfest/widgets.py new file mode 100644 index 0000000..623643f --- /dev/null +++ b/pgcommitfest/commitfest/widgets.py @@ -0,0 +1,8 @@ +from django.forms import TextInput +from django.utils.safestring import mark_safe + +class ThreadPickWidget(TextInput): + def render(self, name, value, attrs=None): + html = super(ThreadPickWidget, self).render(name, value, attrs) + html = html + ' <button class="btn attachThreadButton" id="btn_%s">Find thread</button>' % name + return mark_safe(html) |