-
Notifications
You must be signed in to change notification settings - Fork 0
/
my-profile.html
195 lines (185 loc) · 7.76 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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
<!DOCTYPE html>
<!-- saved from url=(0049)https://getbootstrap.com/docs/4.3/examples/album/ -->
<html lang="en">
<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">
<meta name="description" content="">
<title>eMercado - Todo lo que busques está aquí</title>
<link rel="canonical" href="https://getbootstrap.com/docs/4.3/examples/album/">
<link href="https://fonts.googleapis.com/css?family=Raleway:300,300i,400,400i,700,700i,900,900i" rel="stylesheet">
<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>
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/styles.css" rel="stylesheet">
<link href="css/dropzone.css" rel="stylesheet">
</head>
<body>
<nav class="site-header sticky-top py-1 bg-dark">
<div id="navBar" class="container d-flex flex-column flex-md-row justify-content-between">
<a class="py-2 d-none d-md-inline-block" href="home.html">Inicio</a>
<a class="py-2 d-none d-md-inline-block" href="categories.html">Categorías</a>
<a class="py-2 d-none d-md-inline-block" href="products.html">Productos</a>
<a class="py-2 d-none d-md-inline-block" href="sell.html">Vender</a>
<!--<a class="py-2 d-none d-md-inline-block" href="cart.html">Mi carrito</a>
<a class="py-2 d-none d-md-inline-block" href="my-profile.html">Mi usuario es: <span id="name"></span></a>-->
</div>
</nav>
<main role="main" class="pb-5">
<div class="text-center p-4">
<h2>Mi Perfil</h2>
<p class="lead">Datos personales</p>
</div>
<div class="container">
<div class="main-body">
<div class="row gutters-sm">
<div class="col-md-4 mb-3">
<div class="card">
<div class="card-body">
<div class="d-flex flex-column align-items-center text-center">
<img src="https://bootdey.com/img/Content/avatar/avatar7.png" alt="Admin" class="rounded-circle"
width="150">
<div class="mt-3" id="setProfileCard">
<!--Aqui se carga informacion de perfil en el card-->
</div>
</div>
</div>
</div>
</div>
<div class="col-md-8">
<div class="card mb-3">
<div class="card-body" id="setProfileInfo">
<!--Aqui se carga la informacion de perfil completa-->
</div>
</div>
</div>
</div>
</div>
<!--<div>
<input type="text" id="sendPhoto">
<button class="btn btn-primary" type="button" id="savePhoto">Guardar foto</button>
</div>-->
<div id="windowEditPhotoProfile">
<div class="modal" tabindex="-1" role="dialog" id="modalWindowEditPhotoProfile">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel2">
Editar Foto de Perfil</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<form>
<div class="form-row">
<legend class="text-muted">Editar foto</legend>
<div class="form-group">
<label for="sendPhotoEdited">URL</label>
<input type="text" class="form-control" id="sendPhoto" name="sendPhotoEdited" required>
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Cerrar</button>
<button type="button" class="btn btn-primary" id="savePhoto">Guardar foto</button>
<span id="validateModelPhotoPerfil"></span>
</div>
</div>
</div>
</div>
</div>
<span id="exitoPhotoProfile"></span>
<br>
<div id="windowEditProfile">
<div class="modal" tabindex="-1" role="dialog" id="modalWindowEditProfile">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">
Editar Perfil</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<form>
<div class="form-row">
<legend class="text-muted"> Información de Perfil</legend>
<div class="form-group col-sm-6">
<label for="name">Nombres</label>
<input type="text" class="form-control" id="nameEdited" name="name" required>
</div>
<div class="form-group col-sm-6">
<label for="lastName">Apellidos</label>
<input type="text" class="form-control" id="lastNameEdited" name="lastName" required>
</div>
</div>
<div class="form-row">
<div class="form-group col-sm-6">
<label for="age">Edad</label>
<input type="number" class="form-control" min="" id="ageEdited" name="age" required>
</div>
<div class="form-group col-sm-6">
<label for="email">E-mail</label>
<input type="email" class="form-control" id="emailEdited" name="email" required>
</div>
<div class="form-group col-sm-6 ">
<label for="phone">Teléfono de contacto</label>
<input type="number" class="form-control" min="" id="phoneEdited" name="phone" required>
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Cerrar</button>
<button type="button" class="btn btn-primary" id="saveProfile">Guardar</button>
<span id="validateModelPerfil"></span>
</div>
</div>
</div>
</div>
</div>
</div>
<span id="exitoProfile"></span>
<br>
<footer class="text-muted bg-light">
<div class="container">
<p>Este sitio forma parte de Desarrollo Web - JAP - 2020</p>
<p>Clickea <a target="_blank" href="Letra.pdf">aquí</a> para descargar la letra del obligatorio.</p>
</div>
</footer>
</main>
<div class="alert fade alert-success" role="alert" id="alertResult">
<span id="resultSpan"></span>
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div id="spinner-wrapper">
<div class="lds-ring">
<div></div>
<div></div>
<div></div>
<div></div>
</div>
</div>
<script src="js/jquery-3.4.1.min.js"></script>
<script src="js/bootstrap.bundle.min.js"></script>
<script src="js/dropzone.js"></script>
<script src="js/init.js"></script>
<script src="js/my-profile.js"></script>
</body>
</html>