From 0771942ec53dee023e0568b29e6999fcef57b4ce Mon Sep 17 00:00:00 2001 From: Zambom Date: Tue, 10 Jan 2017 19:28:28 -0200 Subject: [PATCH] Security and themes forms --- security/forms.py | 10 ++++++++++ themes/forms.py | 19 +++++++++++++++++++ 2 files changed, 29 insertions(+), 0 deletions(-) create mode 100644 security/forms.py create mode 100644 themes/forms.py diff --git a/security/forms.py b/security/forms.py new file mode 100644 index 0000000..f8fffe4 --- /dev/null +++ b/security/forms.py @@ -0,0 +1,10 @@ +# coding=utf-8 +from django import forms + +from .models import Security + +class SecurityForm(forms.ModelForm): + + class Meta: + model = Security + fields = ['allow_register', 'maintence'] \ No newline at end of file diff --git a/themes/forms.py b/themes/forms.py new file mode 100644 index 0000000..31938c4 --- /dev/null +++ b/themes/forms.py @@ -0,0 +1,19 @@ +# coding=utf-8 +from django import forms + +from .models import Themes + +class BasciElemetsForm(forms.ModelForm): + + class Meta: + model = Themes + fields = ['title', 'small_logo', 'large_logo', 'footer_note'] + +class CSSStyleForm(forms.ModelForm): + + class Meta: + model = Themes + fields = ['css_style'] + widgets = { + 'css_style': forms.RadioSelect + } \ No newline at end of file -- libgit2 0.21.2