mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-08-26 12:46:08 +00:00
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:
parent
2d88d42a7c
commit
546f112a88
@ -24,22 +24,6 @@ class TrimmedCharField(forms.CharField):
|
|||||||
return super(TrimmedCharField, self).clean(value)
|
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):
|
class ConfigurationForm(forms.Form):
|
||||||
"""Configure PageKite credentials and frontend"""
|
"""Configure PageKite credentials and frontend"""
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user