Перенесено из репозитария SpecialistOff.NET
This commit is contained in:
12
myapp/forms/__init__.py
Normal file
12
myapp/forms/__init__.py
Normal file
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env python3
|
||||
# -*- coding: UTF-8 -*-
|
||||
|
||||
__author__ = 'RemiZOffAlex'
|
||||
__copyright__ = '(c) RemiZOffAlex'
|
||||
__license__ = 'MIT'
|
||||
__email__ = 'remizoffalex@mail.ru'
|
||||
|
||||
from .users import LoginForm
|
||||
from .page import PageEdit
|
||||
|
||||
__all__ = []
|
||||
21
myapp/forms/page.py
Normal file
21
myapp/forms/page.py
Normal file
@@ -0,0 +1,21 @@
|
||||
#!/usr/bin/env python3
|
||||
# -*- coding: UTF-8 -*-
|
||||
|
||||
__author__ = 'RemiZOffAlex'
|
||||
__copyright__ = '(c) RemiZOffAlex'
|
||||
__license__ = 'MIT'
|
||||
__email__ = 'remizoffalex@mail.ru'
|
||||
__url__ = 'http://remizoffalex.ru'
|
||||
|
||||
from wtforms import (
|
||||
Form,
|
||||
BooleanField,
|
||||
TextField,
|
||||
PasswordField,
|
||||
TextAreaField
|
||||
)
|
||||
|
||||
|
||||
class PageEdit(Form):
|
||||
title = TextField('Заголовок')
|
||||
text = TextAreaField('Текст')
|
||||
14
myapp/forms/users.py
Normal file
14
myapp/forms/users.py
Normal file
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env python3
|
||||
# -*- coding: UTF-8 -*-
|
||||
|
||||
__author__ = 'RemiZOffAlex'
|
||||
__copyright__ = '(c) RemiZOffAlex'
|
||||
__license__ = 'MIT'
|
||||
__email__ = 'remizoffalex@mail.ru'
|
||||
__url__ = 'http://remizoffalex.ru'
|
||||
|
||||
from wtforms import Form, BooleanField, TextField, PasswordField
|
||||
|
||||
class LoginForm(Form):
|
||||
username = TextField('Имя пользователя')
|
||||
password = PasswordField('Пароль')
|
||||
Reference in New Issue
Block a user