Skip to content

Commit

Permalink
Correções no Cadastrar Link #20
Browse files Browse the repository at this point in the history
  • Loading branch information
tacianosilva committed Nov 12, 2020
1 parent 54a02f5 commit a53a719
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
9 changes: 7 additions & 2 deletions tasktracking/tasks/forms.py
Original file line number Diff line number Diff line change
@@ -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__'
fields = '__all__'

class LinkForm(forms.ModelForm):
class Meta:
model = Link
fields = '__all__'
4 changes: 3 additions & 1 deletion tasktracking/tasks/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,16 @@
<ul type="disc" class="navbar-nav">
<li><a class="nav-link" href="#">Tarefas</a></li>
<li><a class="nav-link" href="#">Tags</a></li>
<li><a class="nav-link" href="link\cadastrar_link.html">Links</a></li>
<li><a class="nav-link" href="/cadastrar_link">Links</a></li>
<li><a class="nav-link" href="#">Usuário</a></li>
<li><a class="nav-link" href="#">Execuções</a></li>
</ul>
</div>
</nav>

{% block content %}
{% endblock %}

<footer id="rodape">
<p>Copyright &copy; 2020 - by Turma de Pweb 2020.6</br></p>
</footer>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
{% csrf_token %}

<table class="table table-sm table-responsive-sm">
{% for field in form_tarefa.visible_fields %}
{% for field in form_link.visible_fields %}
<tr>
<th class="align-middle">
<label>{{ field.label_tag }}</label>
Expand Down

0 comments on commit a53a719

Please sign in to comment.