pagekite: Drop unused subdomain widget

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
This commit is contained in:
Sunil Mohan Adapa 2020-12-16 16:38:35 -08:00 committed by Veiko Aasa
parent 2d88d42a7c
commit 546f112a88
No known key found for this signature in database
GPG Key ID: 478539CAE680674E

View File

@ -24,22 +24,6 @@ class TrimmedCharField(forms.CharField):
return super(TrimmedCharField, self).clean(value)
class SubdomainWidget(forms.widgets.TextInput):
"""Append the domain to the subdomain bootstrap input field"""
def __init__(self, domain, *args, **kwargs):
"""Initialize the widget by storing the domain value."""
super().__init__(*args, **kwargs)
self.domain = domain
def render(self, *args, **kwargs):
"""Return the HTML for the widget."""
inputfield = super().render(*args, **kwargs)
return """<div class="input-group">
{0}
<span class="input-group-addon">{1}</span>
</div>""".format(inputfield, self.domain)
class ConfigurationForm(forms.Form):
"""Configure PageKite credentials and frontend"""