From: www-data Date: Thu, 13 Sep 2007 13:20:25 +0000 (-0300) Subject: Merge: palestrante edita palestra. X-Git-Url: http://git.cascardo.info/?p=cascardo%2Feventmanager.git;a=commitdiff_plain;h=c821835265246633aa6736de9640d692b8b335f2 Merge: palestrante edita palestra. --- diff --git a/eventos/models.py b/eventos/models.py index 3d51818..eda0771 100644 --- a/eventos/models.py +++ b/eventos/models.py @@ -41,9 +41,9 @@ class Evento(models.Model): class Admin: fields = ( - (None, {'fields': ('nome', 'data_inicio', 'data_final')}), + ('Informações do evento', {'fields': ('nome', 'data_inicio', 'data_final')}), ('Informações da sede', {'fields': ('nome_local', 'nome_contato', - 'cidade', 'uf', 'rua', 'numero', 'info_adicional')}), + 'cidade', 'uf', 'rua', 'numero','telefone', 'info_adicional')}), ) def __str__(self): diff --git a/forms.py b/forms.py index 7890fc6..8dc99df 100644 --- 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) diff --git a/templates/editar_trabalho.html b/templates/editar_trabalho.html new file mode 100644 index 0000000..38a4595 --- /dev/null +++ b/templates/editar_trabalho.html @@ -0,0 +1,18 @@ +{% extends "base.html" %} +{% block content %} + +

Editar trabalho

+ +{% if formulario %} +
+ {{ formulario.as_table }}
+ +
+ + + +{% else %} +

O trabalho selecionado não existe, verifique o link

+{% endif %} + +{% endblock %} diff --git a/templates/meus_trabalhos.html b/templates/meus_trabalhos.html index 84af9da..14bc58e 100644 --- a/templates/meus_trabalhos.html +++ b/templates/meus_trabalhos.html @@ -3,6 +3,13 @@

Trabalhos Inscritos

+{# o if abaixo eh para o caso de algum trabalho ter sido editado e redirecionado #} +{% if editado_sucesso %} +
+

O trabalho "{{ editado_sucesso}}" for editado com sucesso!

+
+{% endif %} + {% if trabalhos %}