summaryrefslogtreecommitdiffstats
path: root/forms.py
diff options
context:
space:
mode:
Diffstat (limited to 'forms.py')
-rw-r--r--forms.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/forms.py b/forms.py
index 7333acf..7418c58 100644
--- a/forms.py
+++ b/forms.py
@@ -1,4 +1,4 @@
-from wtforms import Form, TextField, validators
+from wtforms import Form, TextField, HiddenField, validators
from utils import Unique
from models import Group
@@ -9,3 +9,7 @@ class CreateGroup(Form):
message=u'Invalid group name (only simple characters, numbers, - and _).'),
Unique(Group, Group.name,
message=u'A group with this name already exists.')])
+
+class DeleteGroup(Form):
+ id = HiddenField('group id', [validators.Required()]);
+ sure = HiddenField('are you sure');