-
Notifications
You must be signed in to change notification settings - Fork 0
/
nova_tarefa.php
60 lines (53 loc) · 2 KB
/
nova_tarefa.php
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
59
60
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>App Lista Tarefas</title>
<link rel="stylesheet" href="css/estilo.css">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous">
</head>
<body>
<nav class="navbar navbar-light bg-light">
<div class="container">
<a class="navbar-brand" href="#">
<img src="img/logo.png" width="30" height="30" class="d-inline-block align-top" alt="">
App Lista Tarefas
</a>
</div>
</nav>
<? if( isset($_GET['inclusao']) && $_GET['inclusao'] == 1 ) { ?>
<div class="bg-success pt-2 text-white d-flex justify-content-center">
<h5>Tarefa inserida com sucesso!</h5>
</div>
<? } ?>
<div class="container app">
<div class="row">
<div class="col-md-3 menu">
<ul class="list-group">
<li class="list-group-item"><a href="index.php">Tarefas pendentes</a></li>
<li class="list-group-item active"><a href="#">Nova tarefa</a></li>
<li class="list-group-item"><a href="todas_tarefas.php">Todas tarefas</a></li>
</ul>
</div>
<div class="col-md-9">
<div class="container pagina">
<div class="row">
<div class="col">
<h4>Nova tarefa</h4>
<hr />
<form method="post" action="tarefa_controller.php?acao=inserir">
<div class="form-group">
<label>Descrição da tarefa:</label>
<input type="text" class="form-control" name="tarefa" placeholder="Exemplo: Lavar o carro">
</div>
<button class="btn btn-success">Cadastrar</button>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>