-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathformteste.html
58 lines (46 loc) · 1.6 KB
/
formteste.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<!-- DEIXAR ESSE ARQUIVO HTML DECENTE -->
<!-- SEPARAR O CÓDIGO CSS EM ARQUIVOS -->
<body>
<h1>GRADE CURRICULAR</h1>
<h2>Insira suas cadeiras pagas aqui:</h2>
<form method="POST">
Nome da cadeira <input type="text" name="nome" required>
Tipo da cadeira <input type="text" name="tipo" required>
Período <input type="number" name="periodo" required>
Carga horária <input type="number" name="cargaHoraria" required>
Creditos <input type="number" name="creditos" required>
Nota <input type="text" name="nota" required>
<button type="submit" formaction="http://localhost:3003/pagas">Incluir</button>
</form><br>
<form method="GET">
<p>Cadeiras pagas por período</p>
<input type="number" name="periodo" placeholder="insira um período">
<button type="submit" formaction="http://localhost:3003/pagas/periodo">Pesquisar</button>
</form>
</body>
<style>
input {
display: block;
margin-bottom: 10px;
border: none;
border-radius: 25px;
outline: none;
padding: 5px;
}
button {
border: none;
border-radius: 25px;
outline: none;
padding: 5px;
width: 80px;
}
button:hover {
background-color: rebeccapurple;
color: white;
box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24), 0 17px 50px 0 rgba(0,0,0,0.19);
}
body {
background-color: blue;
font-family: sans-serif;
}
</style>