diff --git a/tasktracking/tasks/forms.py b/tasktracking/tasks/forms.py index 62b3fe0..57427f7 100644 --- a/tasktracking/tasks/forms.py +++ b/tasktracking/tasks/forms.py @@ -1,8 +1,13 @@ from django import forms -from tasks.models import Tarefa +from tasks.models import Link, Tarefa class TarefaForm(forms.ModelForm): class Meta: model = Tarefa - fields = '__all__' \ No newline at end of file + fields = '__all__' + +class LinkForm(forms.ModelForm): + class Meta: + model = Link + fields = '__all__' diff --git a/tasktracking/tasks/templates/base.html b/tasktracking/tasks/templates/base.html index fa7b445..fc76fec 100644 --- a/tasktracking/tasks/templates/base.html +++ b/tasktracking/tasks/templates/base.html @@ -22,14 +22,16 @@ + {% block content %} {% endblock %} + diff --git a/tasktracking/tasks/templates/tasks/link/cadastrar_link.html b/tasktracking/tasks/templates/tasks/link/cadastrar_link.html index 1a24896..64c60f8 100644 --- a/tasktracking/tasks/templates/tasks/link/cadastrar_link.html +++ b/tasktracking/tasks/templates/tasks/link/cadastrar_link.html @@ -10,7 +10,7 @@ {% csrf_token %} - {% for field in form_tarefa.visible_fields %} + {% for field in form_link.visible_fields %}