-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
73 lines (73 loc) · 3.7 KB
/
index.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<!DOCTYPE html>
<html>
<head>
<title>jQuery Form Validade</title>
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
<link href="css/style.css" rel="stylesheet" type="text/css">
</head>
<body>
<main>
<fieldset>
<h2>Cadastro de Pessoa</h2>
<section class="messages"></section>
<form name="pessoa" method="post" action="" onsubmit="return App.validate(this)" class="validate">
<section class="core field layout-column layout-align space-between-stretch">
<label for="nome">Nome</label>
<input type="text" name="nome" id="nome" class="core uppercase required" required pattern=".{10,40}" title="de 10 a 40 caracteres" minlength="10" maxlength="40" />
</section>
<section class="core field layout-column layout-align space-between-stretch">
<label for="cpf">CPF</label>
<input type="text" name="cpf" id="cpf" class="cpf required" required />
</section>
<section class="core field layout-column layout-align space-between-stretch">
<label for="rg">RG</label>
<input type="text" name="rg" id="rg" class="required" required />
</section>
<section class="core field layout-column layout-align space-between-stretch">
<label for="data_nascimento">Data de Nascimento</label>
<input type="text" name="data_nascimento" id="data_nascimento" class="data required" required />
</section>
<section class="core field layout-column layout-align space-between-stretch">
<label>Data de Cadastro</label>
<input type="date" name="data_cadastro" id="data_cadastro" class="required" required />
</section>
<section class="core field layout-column layout-align space-between-stretch">
<label for="sexo">Sexo</label>
<select name="sexo" id="sexo" class="required" required>
<option value="" selected disabled>Selecione</option>
<option value="M">Masculino</option>
<option value="F">Feminino</option>
</select>
</section>
<section class="core field layout-column layout-align space-between-stretch hide">
<label for="reservista">Reservista</label>
<input type="text" name="reservista" id="reservista" class="" disabled />
</section>
<section class="core field layout-column layout-align space-between-stretch">
<label>Telefone</label>
<section class="telefones">
<select name="telefone_tipo[]" id="telefone_tipo-0">
<option value="" selected disabled>Selecione</option>
<option value="fixo">Fixo</option>
<option value="celular">Celular</option>
</select>
<input type="text" name="telefone[]" id="telefone-0" class="fone" />
<button type="button" onclick="App.addTelefoneFields(this)">Adicionar Telefone</button>
</section>
</section>
<section class="core field buttons">
<button type="submit">Enviar</button>
<button type="button" onclick="App.reset(this.form)">Cancelar</button>
</section>
</form>
</fieldset>
</main>
<script src="js/moment.min.js" type="text/javascript"></script>
<script src="js/jquery.min.js" type="text/javascript"></script>
<script src="js/jquery.validate.js" type="text/javascript"></script>
<script src="js/jquery.maskedinput-1.1.4.pack.js" type="text/javascript"></script>
<script src="script.js" type="text/javascript"></script>
</body>
</html>