adicionando as views e fazendo o login funcionar
[cascardo/eventmanager.git] / forms.py
1 """
2 Copyright (C) 2007 Lincoln de Sousa <lincoln@archlinux-br.org>
3
4 This program is free software; you can redistribute it and/or
5 modify it under the terms of the GNU General Public License as
6 published by the Free Software Foundation; either version 2 of the
7 License, or (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12 General Public License for more details.
13
14 You should have received a copy of the GNU General Public
15 License along with this program; if not, write to the
16 Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 Boston, MA 02111-1307, USA.
18 """
19 from django import newforms as forms
20 from django.newforms.widgets import Textarea
21
22 class InscreverPalestra(forms.Form):
23     pass
24
25 class CadastroPalestrante(forms.Form):
26     nome = forms.CharField(max_length=100)
27     email = forms.CharField(max_length=100)
28
29     telefone_comercial = forms.CharField(max_length=11)
30     telefone_residencial = forms.CharField(max_length=11)
31     telefone_celular = forms.CharField(max_length=11)
32
33     instituicao = forms.CharField(max_length=100)
34     minicurriculo = forms.CharField(widget=Textarea())
35
36     rua = forms.CharField(max_length=100)
37     numero = forms.CharField(max_length=10)
38     bairro = forms.CharField(max_length=100)
39     cidade = forms.CharField(max_length=100)
40     uf = forms.CharField(max_length=100)
41
42     areas_interesse = forms.MultipleChoiceField()