-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathformulario.html
144 lines (139 loc) · 5.4 KB
/
formulario.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title> Encuesta </title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/styles.css">
<link rel="stylesheet" href="css/styles.css">
<link type="image/jpg" href="imagenes/icono.jpg" rel="shortcut icon" />
<link href="https://fonts.googleapis.com/css?family=Righteous&display=swap" rel="stylesheet">
</head>
<body class="cuerpoForm">
<div class="text-center">
<h1>Página genérica</h1>
</div>
<nav class="navbar navbar-expand-lg bg-dark" id="navForm">
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item active">
<a class="nav-link" href="index.html">Inicio <span class="sr-only">(current)</span></a>
</li>
<a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">Opciones</a>
<div class="dropdown-menu">
<a class="dropdown-item" href="#">Action</a>
<a class="dropdown-item" href="#">Another action</a>
<a class="dropdown-item" href="#">Something else here</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="#">Separated link</a>
</div>
<li class="nav-item">
<a class="nav-link" href="formulario.html">Contacto</a>
</li>
<li class="nav-item">
<a class="nav-link" href="galeria.html">Galería</a>
</li>
<li class="nav-item">
<a class="nav-link" href="logros.html">Premios</a>
</li>
<li class="nav-item">
<a class="nav-link" href="videos.html">Tutoriales</a>
</li>
<li class="nav-item dropdown">
</ul>
<form class="form-inline my-2 my-lg-0">
<input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search">
<button class="btn btn-outline-light my-2 my-sm-0" type="submit">Search</button>
</form>
</div>
</nav>
<div class="container">
<div class="texto_formulario">
<h2>¡Ingresá tus datos en el formularios y unite a nuestra página!</h2>
</div>
<form class="needs-validation" novalidate>
<div class="form-row">
<div class="col-md-4 mb-3">
<label for="validationCustom01">Nombre</label>
<input type="text" class="form-control" id="validationCustom01" placeholder="Nombre" value="" required>
<div class="valid-feedback">
Looks good!
</div>
</div>
<div class="col-md-4 mb-3">
<label for="validationCustom02">Apellido</label>
<input type="text" class="form-control" id="validationCustom02" placeholder="Apellido" value="" required>
<div class="valid-feedback">
Looks good!
</div>
</div>
<div class="col-md-4 mb-3">
<label for="validationCustomUsername">Correo Electronico</label>
<div class="input-group">
<div class="input-group-prepend">
<span class="input-group-text" id="inputGroupPrepend">@</span>
</div>
<input type="text" class="form-control" id="validationCustomUsername" placeholder="Correo" aria-describedby="inputGroupPrepend" required>
<div class="invalid-feedback">
porfavor, ingrese su apellido.
</div>
</div>
</div>
</div>
<div class="form-row">
<div class="col-md-6 mb-3">
<label for="validationCustom03">Ciudad</label>
<input type="text" class="form-control" id="validationCustom03" placeholder="Ciudad" required>
<div class="invalid-feedback">
porfavor, ingrese su ciudad.
</div>
</div>
<div class="col-md-3 mb-3">
<label for="validationCustom04">País</label>
<input type="text" class="form-control" id="validationCustom04" placeholder="País" required>
<div class="invalid-feedback">
por favor, ingrese su pais.
</div>
</div>
</div>
<div class="form-group">
<label for="exampleFormControlTextarea1">Comentario</label>
<textarea class="form-control" id="exampleFormControlTextarea1" rows="3" cols="6"></textarea>
</div>
<div class="form-group">
<div class="form-check">
<input class="form-check-input" type="checkbox" value="" id="invalidCheck" required>
<label class="form-check-label" for="invalidCheck">
Acepta recibir notificaciones
</label>
<div class="invalid-feedback">
Debe seleccionar para continuar.
</div>
</div>
</div>
<button class="btn btn-primary" type="submit">Enviar</button>
</form>
</div>
<a href="#"><img src="PNG/circle-up.PNG" alt="" id="arriba" /></a>
<script>
// Example starter JavaScript for disabling form submissions if there are invalid fields
(function() {
'use strict';
window.addEventListener('load', function() {
// Fetch all the forms we want to apply custom Bootstrap validation styles to
var forms = document.getElementsByClassName('needs-validation');
// Loop over them and prevent submission
var validation = Array.prototype.filter.call(forms, function(form) {
form.addEventListener('submit', function(event) {
if (form.checkValidity() === false) {
event.preventDefault();
event.stopPropagation();
}
form.classList.add('was-validated');
}, false);
});
}, false);
})();
</script>
</body>
</html>