From f35ab6a3b473b9a8ae939b0b7d9079375c9bed5f Mon Sep 17 00:00:00 2001 From: Daniel Steglich Date: Sat, 28 Feb 2015 15:30:10 +0100 Subject: [PATCH] added a checkbox to make the password visible --- plinth/modules/dynamicdns/dynamicdns.py | 5 +++++ .../dynamicdns/templates/dynamicdns_configure.html | 13 ++++++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/plinth/modules/dynamicdns/dynamicdns.py b/plinth/modules/dynamicdns/dynamicdns.py index 46843ae00..e7a261376 100644 --- a/plinth/modules/dynamicdns/dynamicdns.py +++ b/plinth/modules/dynamicdns/dynamicdns.py @@ -98,6 +98,11 @@ class ConfigureForm(forms.Form): help_text=_('You should have been requested to select a password \ when you created the account.')) + showpw = forms.BooleanField(label=_('show password'), + required=False, + widget=forms.CheckboxInput + (attrs={'onclick': 'show_pass();'})) + dynamicdns_ipurl = TrimmedCharField( label=_('IP check URL'), required=False, diff --git a/plinth/modules/dynamicdns/templates/dynamicdns_configure.html b/plinth/modules/dynamicdns/templates/dynamicdns_configure.html index ade236ba9..630eabca7 100644 --- a/plinth/modules/dynamicdns/templates/dynamicdns_configure.html +++ b/plinth/modules/dynamicdns/templates/dynamicdns_configure.html @@ -30,5 +30,16 @@ - +{% endblock %} + +{% block page_js %} + {% endblock %}