mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
app: Implement toggle button in app page
- revamp the old form submission model to enable/disable apps into a simple toggle button - provide backwards compatibility when javascript is disabled Reviewed-by: Joseph Nuthalapati <njoseph@riseup.net>
This commit is contained in:
1 parent
1504e182e4
commit
ec62f331b8
4 files changed
+97
-21
No files matched your search
@@ -35,6 +35,7 @@ import plinth
|
||||
class AppForm(forms.Form):
|
||||
"""Generic configuration form for an app."""
|
||||
is_enabled = forms.BooleanField(
|
||||
widget=CheckboxInput(attrs={'id': 'app-toggle-input'}),
|
||||
label=_('Enable application'), required=False)
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user