Skip to content

Commit a6da125

Browse files
committed
- Color was placed on the screen background and the fields were cleared
1 parent 1c394b2 commit a6da125

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

app/static/js/script.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,18 @@ $('input[type=radio][name=removidoVoltou]').change(function () {
77
});
88

99

10+
// Função para limpar os campos do formulário
11+
function limparCampos() {
12+
$('#nome').val('');
13+
$('#data').val('');
14+
$('#equipamento').val('');
15+
$("#inicio").val(''),
16+
$("#final").val(''),
17+
$("#estoqueUtilizado").val(''),
18+
$("[name=removidoVoltou]").val(''),
19+
$("[name=motivoRemocao]").val('');
20+
}
21+
1022
$(document).ready(function () {
1123
$("#botaoEnviar").on("click", function () {
1224
// Adicionar animação de carregamento ao botão
@@ -42,6 +54,8 @@ $(document).ready(function () {
4254
// Exibir modal de sucesso
4355
$("#modalSucesso").modal('show');
4456

57+
limparCampos();
58+
4559
// Ocultar modal de sucesso após 3 segundos
4660
setTimeout(function () {
4761
$("#modalSucesso").modal('hide');

app/templates/index.html

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,25 @@
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
66
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
7+
8+
<style>
9+
body {
10+
background: linear-gradient(135deg, #3498db, #9b59b6);
11+
}
12+
13+
.form-container {
14+
background-color: #ffffff;
15+
border-radius: 20px;
16+
padding: 40px;
17+
box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
18+
}
19+
</style>
20+
721
<title>Formulário de Estoque</title>
822
</head>
923
<body>
1024

11-
<div class="container mt-5">
25+
<div class="container mt-5 form-container">
1226
<form method="post" action="/processar_formulario">
1327
<div class="form-group">
1428
<label for="nome">Nome:</label>

0 commit comments

Comments
 (0)