Commit 0771942ec53dee023e0568b29e6999fcef57b4ce

Authored by Zambom
1 parent e4ad4be1

Security and themes forms

Showing 2 changed files with 29 additions and 0 deletions   Show diff stats
security/forms.py 0 → 100644
@@ -0,0 +1,10 @@ @@ -0,0 +1,10 @@
  1 +# coding=utf-8
  2 +from django import forms
  3 +
  4 +from .models import Security
  5 +
  6 +class SecurityForm(forms.ModelForm):
  7 +
  8 + class Meta:
  9 + model = Security
  10 + fields = ['allow_register', 'maintence']
0 \ No newline at end of file 11 \ No newline at end of file
themes/forms.py 0 → 100644
@@ -0,0 +1,19 @@ @@ -0,0 +1,19 @@
  1 +# coding=utf-8
  2 +from django import forms
  3 +
  4 +from .models import Themes
  5 +
  6 +class BasciElemetsForm(forms.ModelForm):
  7 +
  8 + class Meta:
  9 + model = Themes
  10 + fields = ['title', 'small_logo', 'large_logo', 'footer_note']
  11 +
  12 +class CSSStyleForm(forms.ModelForm):
  13 +
  14 + class Meta:
  15 + model = Themes
  16 + fields = ['css_style']
  17 + widgets = {
  18 + 'css_style': forms.RadioSelect
  19 + }
0 \ No newline at end of file 20 \ No newline at end of file