-
Notifications
You must be signed in to change notification settings - Fork 0
/
my-profile.html
170 lines (159 loc) · 6.75 KB
/
my-profile.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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
<!DOCTYPE html>
<html lang="es">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<title>eMercado - Todo lo que busques está aquí</title>
<link href="https://fonts.googleapis.com/css?family=Raleway:300,300i,400,400i,700,700i,900,900i" rel="stylesheet" />
<link href="css/bootstrap.min.css" rel="stylesheet" />
<link href="css/styles.css" rel="stylesheet" />
<link rel="shortcut icon" href="./img/login.png" type="image/png" />
<style>
.bd-placeholder-img {
font-size: 1.125rem;
text-anchor: middle;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
@media (min-width: 768px) {
.bd-placeholder-img-lg {
font-size: 3.5rem;
}
}
</style>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark p-1">
<div class="container">
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav"
aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav w-100 justify-content-between">
<li class="nav-item">
<a class="nav-link" href="index.html">Inicio</a>
</li>
<li class="nav-item">
<a class="nav-link" href="categories.html">Categorías</a>
</li>
<li class="nav-item">
<a class="nav-link" href="sell.html">Vender</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="user" role="button" data-bs-toggle="dropdown"
aria-expanded="false">
</a>
<ul class="dropdown-menu dropdown-menu-dark" aria-labelledby="user">
<li>
<a class="dropdown-item" href="cart.html">Mi carrito</a>
</li>
<li>
<a class="dropdown-item" href="my-profile.html">Mi perfil</a>
</li>
<li>
<button class="dropdown-item" onclick="loginOut()">
Cerrar sesión
</button>
</li>
</ul>
</li>
</ul>
</div>
</div>
</nav>
<main>
<div class="container">
<div class="row">
<div class="col-12">
<h1 class="text-center mt-5">Mi perfil</h1>
</div>
</div>
<div class="row">
<div class="col-12">
<div class="card mt-5">
<div id="datos-box" class="card-body">
<form class="row needs-validation" novalidate>
<div class="mb-3 col-12 text-lg-center">
<img id="picturePreview" src="/img/img_perfil.png"
class="img-fluid img-thumbnail rounded-circle mx-auto d-block" width="200" />
</div>
<div class="mb-3 col-12 col-sm-6">
<label for="inputName" class="form-label fw-bold">Nombre</label>
<input type="text" id="inputName" name="name" class="form-control" placeholder="Ingrese su nombre"
required disabled>
<div class="invalid-feedback">
No puede dejar este campo vacío
</div>
</div>
<div class="mb-3 col-12 col-sm-6">
<label for="inputName2" class="form-label">Segundo Nombre</label>
<input type="text" id="inputName2" class="form-control" name="name2"
placeholder="Ingrese su segundo nombre" disabled>
</div>
<div class="mb-3 col-12 col-sm-6">
<label for="inputLastName" class="form-label fw-bold">Apellido</label>
<input type="text" id="inputLastName" class="form-control" name="lastName"
placeholder="Ingrese su apellido" required disabled>
<div class="invalid-feedback">
No puede dejar este campo vacío
</div>
</div>
<div class="mb-3 col-12 col-sm-6">
<label for="inputLastName2" class="form-label">Segundo Apellido</label>
<input type="text" id="inputLastName2" class="form-control" name="lastName2"
placeholder="Ingrese segundo apellido" disabled>
</div>
<div class="mb-3 col-12 col-sm-6">
<label for="inputEmail" class="form-label fw-bold">E-mail</label>
<input type="email" id="inputEmail" class="form-control" placeholder="Ingrese su e-mail" name="email"
required disabled>
<div id="invalidEmail" class="invalid-feedback">
Formato de e-mail incorrecto
</div>
</div>
<div class="mb-3 col-12 col-sm-6">
<label for="inputTelephone" class="form-label">Telefono de Contacto</label>
<input type="tel" id="inputTelephone" class="form-control" name="telephone"
placeholder="Ingrese su telefono" disabled>
</div>
<div class="mb-3 col-12 col-sm-6">
<label for="Image" class="form-label">Imagen de perfil</label>
<input class="form-control" type="file" id="inputPicture" name="picture" onchange="preview()"
disabled>
</div>
<div>
<button id="btnEdit" type="button" class="btn btn-primary" onclick="enableEdit()">Editar
Perfil</button>
<button id="btnSave" type="submit" class="btn btn-success" disabled>Guardar</button>
<button id="btnCancel" type="button" class="btn btn-secondary" onclick="cancelChanges()"
disabled>Cancelar</button>
</div>
<small>Los campos con negritas son <b>obligatorios</b></small>
</form>
</div>
</div>
</main>
<footer class="text-muted">
<div class="container">
<p class="float-end">
<a href="#">Volver arriba</a>
</p>
<p>
Este sitio forma parte de
<a href="https://jovenesaprogramar.edu.uy/" target="_blank">Jovenes a Programar</a>
- 2022
</p>
<p>
Clickea <a target="_blank" href="Letra.pdf">aquí</a> para descargar la
letra del obligatorio.
</p>
</div>
</footer>
<script src="js/bootstrap.bundle.min.js"></script>
<script src="js/init.js"></script>
<script src="js/my-profile.js"></script>
</body>
</html>