This repository has been archived by the owner on Mar 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2376a01
commit 3848575
Showing
6 changed files
with
82 additions
and
28 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
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 |
---|---|---|
@@ -1,5 +1,12 @@ | ||
body { background: #eee; } | ||
/* body { background: #eee;} | ||
a, h1, h2 { color: #335da8; } | ||
.flash { background: #cee5F5; padding: 0.5em; | ||
border: 1px solid #aacbe2; } | ||
.error { background: #f0d6d6; padding: 0.5em; } | ||
.error { background: #f0d6d6; padding: 0.5em; } */ | ||
/* | ||
.page-header { | ||
background-color: #137977; | ||
/* margin-top: 0; */ | ||
/* padding: 20px 20px 20px 40px; | ||
color: ghostwhite; | ||
} */ |
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
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 |
---|---|---|
@@ -1,12 +1,20 @@ | ||
{% extends "base.html" %} | ||
{% block content %} | ||
<h2>Editar contato</h2> | ||
{% if error %}<p class=error><strong>Error:</strong> {{ error }}{% endif %} | ||
<form action="{{ url_for('editar') }}" method=post> | ||
<P>Nome: | ||
<BR><input type=text name=nome value="{{ contato[0] }}" required> | ||
<P>Email: | ||
<BR><input type=text name=email value="{{ contato[1] }}" required> | ||
<input type=submit value="Atualizar"> | ||
</form> | ||
<div class="page-header"> | ||
<h1>Editar contato</h1> | ||
</div> | ||
<div class="col-sm-10"> | ||
{% if error %}<p class=error><strong>Error:</strong> {{ error }}{% endif %} | ||
<form action="{{ url_for('editar') }}" method=post> | ||
<div class="form-group"> | ||
<label for="nome">Nome</label> | ||
<input type="text" class="form-control" id="nome" value="{{ contato[0] }}" placeholder="Nome completo"> | ||
</div> | ||
<div class="form-group"> | ||
<label for="email">Email</label> | ||
<input type="email" class="form-control" value="{{ contato[1] }}" id="email" placeholder="Informe o endereço de email"> | ||
</div> | ||
<button type=submit class="btn btn-primary">Atualizar</button> | ||
</form> | ||
</div> | ||
{% endblock %} |
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 |
---|---|---|
@@ -1,12 +1,20 @@ | ||
{% extends "base.html" %} | ||
{% block content %} | ||
<h2>Adicionar contato</h2> | ||
<div class="page-header"> | ||
<h1>Adicionar contato</h1> | ||
</div> | ||
<div class="col-sm-10"> | ||
{% if error %}<p class=error><strong>Error:</strong> {{ error }}{% endif %} | ||
<form action="{{ url_for('inserir') }}" method=post> | ||
<P>Nome: | ||
<BR><input type=text name=nome required> | ||
<P>Email: | ||
<BR><input type=text name=email required> | ||
<input type=submit value="Adicionar"> | ||
<form action="{{ url_for('inserir') }}" method=post> | ||
<div class="form-group"> | ||
<label for="nome">Nome</label> | ||
<input type="text" class="form-control" id="nome" placeholder="Nome completo"> | ||
</div> | ||
<div class="form-group"> | ||
<label for="email">Email</label> | ||
<input type="email" class="form-control" id="email" placeholder="Informe o endereço de email"> | ||
</div> | ||
<button type=submit class="btn btn-primary">Adicionar</button> | ||
</form> | ||
</div> | ||
{% endblock %} |
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