-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Criação da pasta link e do arquivo cadastrar_link.html #20
- Loading branch information
1 parent
7d41b51
commit 8ba1cce
Showing
2 changed files
with
39 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
tasktracking/tasks/templates/tasks/link/cadastrar_link.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 %} |