arrumando um bug de portugues (valews metal =)
[cascardo/eventmanager.git] / forms.py
index 90be3d6..9a60daf 100644 (file)
--- a/forms.py
+++ b/forms.py
@@ -52,7 +52,6 @@ class SubmeterTrabalho(forms.Form):
                   'ex.: Computadores, softwares, etc. Máximo de 300 caracteres.')
     outros_palestrantes = forms.MultipleChoiceField(required=0)
 
-
 class CadastroPalestrante(forms.Form):
     nome_completo = forms.CharField(max_length=100)
     nome_usuario = forms.CharField(max_length=100)
@@ -66,18 +65,17 @@ class CadastroPalestrante(forms.Form):
 
     instituicao = forms.CharField(max_length=100, label='Instituição')
     minicurriculo = forms.CharField(widget=Textarea(), max_length=250, label='Mini Currículo',
-       help_text='Este mini currículo será utilizado no material de divulgação'
-                 'e no site. Máximo de 250 caracteres.')
-    curriculo = forms.CharField(widget=Textarea(), max_length=1000, label='Currículo',
-       help_text='Este currículo será utilizado para avaliação do palestrante.'
-                 'Máximo de 1000 caracteres.')
+       help_text='Este mini currículo será utilizado no material de divulgação '
+                 'e no sítio. Máximo de 250 caracteres.')
+    curriculo = forms.CharField(widget=Textarea(), max_length=6000, label='Currículo',
+       help_text='Este currículo será utilizado para avaliação do palestrante. '
+                 'Máximo de 6000 caracteres.')
     rua = forms.CharField(max_length=100)
     numero = forms.CharField(max_length=10, label='Número')
     bairro = forms.CharField(max_length=100)
     cidade = forms.CharField(max_length=100)
     uf = forms.ChoiceField(choices=STATE_CHOICES)
 
-
 class EditarPalestrante(forms.Form):
     nome = forms.CharField(max_length=100, label='Nome completo')
     email = forms.CharField(max_length=100)
@@ -89,31 +87,48 @@ class EditarPalestrante(forms.Form):
     minicurriculo = forms.CharField(widget=Textarea(), max_length=250, label='Mini Currículo',
        help_text='Este mini currículo será utilizado no material de divulgação'
                  'e no site. Máximo de 250 caracteres.')
-    curriculo = forms.CharField(widget=Textarea(), max_length=1000, label='Currículo',
+    curriculo = forms.CharField(widget=Textarea(), max_length=6000, label='Currículo',
        help_text='Este currículo será utilizado para avaliação do palestrante.'
-                 'Máximo de 1000 caracteres.')
+                 'Máximo de 6000 caracteres.')
     rua = forms.CharField(max_length=100)
     numero = forms.CharField(max_length=10, label='Número')
     bairro = forms.CharField(max_length=100)
     cidade = forms.CharField(max_length=100)
     uf = forms.ChoiceField(choices=STATE_CHOICES)
 
-
 class EditarSenha(forms.Form):
     senha_atual = forms.CharField(max_length=100, widget=PasswordInput())
     nova_senha = forms.CharField(max_length=100, widget=PasswordInput())
     nova_senha_2 = forms.CharField(max_length=100, widget=PasswordInput(),
         label='Conferir Senha')
 
+class InscricaoCaravana(forms.Form):
+    lista_nomes = forms.CharField(label='Lista de nomes',
+        widget=forms.Textarea(), help_text='Um participante por linha, '
+        'informando nome completo e email no seguine formato: '
+        'Nome Completo <email@server.domain>')
 
-class Inscricao(forms.Form):
+class InscricaoBase(forms.Form):
     nome_completo = forms.CharField(max_length=100)
-    cpf = forms.CharField(max_length=100)
-    email = forms.CharField(max_length=100)
+    rg = forms.CharField(max_length=100)
+    nome_usuario = forms.CharField(max_length=100)
+    senha = forms.CharField(max_length=100, widget=PasswordInput())
+    senha_2 = forms.CharField(max_length=100, widget=PasswordInput(),
+        label='Conferir Senha')
 
+    email = forms.CharField(max_length=100)
     rua = forms.CharField(max_length=100)
     numero = forms.CharField(max_length=10, label='Número')
     bairro = forms.CharField(max_length=100)
     cidade = forms.CharField(max_length=100)
     uf = forms.ChoiceField(choices=STATE_CHOICES)
+    telefone = forms.CharField(max_length=100)
+    home_page = forms.CharField(max_length=100, label='Página Pessoal',
+        required=False)
+
+class Inscricao(InscricaoBase):
+    inscricao_comercial = forms.BooleanField(required=False,
+        label='Inscrição Comercial')
 
+class InscricaoCoordenador(InscricaoBase):
+    pass