Skip to content

Commit

Permalink
Criação da pasta link e do arquivo cadastrar_link.html #20
Browse files Browse the repository at this point in the history
  • Loading branch information
wanessabezerra committed Nov 11, 2020
1 parent 7d41b51 commit 8ba1cce
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tasktracking/tasks/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>

<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav">
<li class="nav-item">
Expand All @@ -32,9 +32,9 @@
</nav>
{% block content %}
{% endblock %}
<footer>
<p>Rodapé</p>
<footer id="rodape">
<p>Copyright &copy; 2020 - by Turma de Pweb 2020.6</br></p>
</footer>
</div>
</body>
</html>
</html>
35 changes: 35 additions & 0 deletions tasktracking/tasks/templates/tasks/link/cadastrar_link.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{% extends "base.html" %}

{% block titulo %}
<title>PWeb 2020.6 - Adicionar Link</title>
{% endblock %}

{% block content %}
<div class="container">
<form method="post">
{% csrf_token %}

<table class="table table-sm table-responsive-sm">
{% for field in form_tarefa.visible_fields %}
<tr>
<th class="align-middle">
<label>{{ field.label_tag }}</label>
</th>
<td class="align-middle">{{ field }}
{% if field.help_text %}
<small style="color: grey">{{ field.help_text }}</small>
{% endif %}
{% for error in field.errors %}
<p style="color: red">{{ error }}</p>
{% endfor %}
</td>
</tr>
{% endfor %}
</table>

<div>
<input type="submit" value="Salvar">
</div>
</form>
</div>
{% endblock %}

0 comments on commit 8ba1cce

Please sign in to comment.