-
Notifications
You must be signed in to change notification settings - Fork 0
/
laplata.html
321 lines (297 loc) · 15.7 KB
/
laplata.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
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
<head>
<title>Inundación de La Plata - Listado colaborativo de víctimas</title>
<meta property="og:title" content="Inundación de La Plata - Listado colaborativo de víctimas<" />
<meta property="og:url" content="http://victimas-laplata.com/" />
<meta property="og:description" content="Esta aplicación fue creada como respuesta inmediata a la incertidumbre respecto de las personas afectadas por la inundación de la ciudad de La Plata. Su único propósito es servir a las personas para encontrar a sus seres queridos, intentando que la información fidedigna prevalezca sobre los dichos y datos incorrectos." />
</head>
<body>
<div class="container">
{{> header}}
{{> person}}
{{> info}}
{{> list}}
</div>
</body>
<template name="header">
<h1 class="text-center">Inundación de La Plata</h1>
<h2 class="text-center">Listado colaborativo de afectados</h2>
<div class="alert alert-success">
<button type="button" class="close" data-dismiss="alert">×</button>
<strong>Nota del autor:</strong>
<p>Esta aplicación fue creada como respuesta inmediata a la incertidumbre respecto de las personas afectadas por la inundación de la ciudad de La Plata. Su único propósito es servir a las personas para encontrar a sus seres queridos, intentando que la información fidedigna prevalezca sobre los dichos y datos incorrectos.</p>
<p>Por favor, utilicelo con responsabilidad.</p>
<p>Este sitio es totalmente independiente, desarrollado y financiado por mí sin más intención que ayudar. No me hago responsable por la veracidad de información aquí dispuesta, ni por como pueda afectar a la sensibilidad de las personas.</p>
<p>Sepa disculpar los errores con los que se encuentre, el desarrollo se hizo en unas pocas horas, no dude en contactarme por cualquier inquietud.</p>
<p>Mi corazón esta con las personas que estan atravesando por tanto dolor.</p>
<p>Fuerza La Plata!</p>
<p>Emilio | <i class="icon-pencil"></i> emdagon{at}gmail.com</p>
</div>
{{#if currentUser}}
<p><strong>Hola {{currentUser.profile.name}}, por favor, antes de publicar no olvide buscar el nombre de la persona sobre la que desea o tiene información.</strong> <a href="#" class="btn btn-mini" id="logout">Salir</a></p>
{{else}}
<div class="alert alert-error">
<p><strong>A modo de respaldo, si desea publicar información es necesario que se identifique utilizando su cuenta de Facebook</strong></p>
</div>
{{/if}}
</template>
<template name="person">
<div id="person-modal" class="modal hide fade" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
{{#if editing}}
<h4>Editar datos</h4>
{{else}}
<h4>Ingrese el nombre y una descripción de la persona</h4>
{{/if}}
</div>
<div class="modal-body">
<form class="form-horizontal">
<div class="control-group">
<label class="control-label" for="name">Nombre</label>
<div class="controls">
{{#if editing}}
<input type="text" name="name" id="name" placeholder="Nombre completo de la persona" value="{{person.name}}" {{#unless isOwner}}disabled="disabled"{{/unless}} />
{{else}}
<input type="text" name="name" id="name" placeholder="Nombre completo de la persona" />
{{/if}}
<span class="help-block">Ejemplo: <em>Emilio Daniel González</em></span>
</div>
</div>
<div class="control-group">
<label class="control-label" for="name">Edad y Sexo</label>
<div class="controls">
{{#if editing}}
<input type="text" class="input-mini" name="age" id="age" value="{{person.age}}" {{#unless isOwner}}disabled{{/unless}} />
{{else}}
<input type="text" class="input-mini" name="age" id="age" />
{{/if}}
<span class="help-block">Ejemplo: <em>30</em></span>
{{#if editing}}
<label class="radio">
<input type="radio" name="genre" id="male" value="male" {{#if is person.genre "male"}}checked{{/if}} {{#unless isOwner}}disabled{{/unless}} />
Hombre
</label>
<label class="radio">
<input type="radio" name="genre" id="female" value="female" {{#if is person.genre "female"}}checked{{/if}} {{#unless isOwner}}disabled{{/unless}} />
Mujer
</label>
{{else}}
<label class="radio">
<input type="radio" name="genre" id="male" value="male" />
Hombre
</label>
<label class="radio">
<input type="radio" name="genre" id="female" value="female" />
Mujer
</label>
{{/if}}
</div>
</div>
<div class="control-group">
<label class="control-label" for="description">Descripción</label>
<div class="controls">
{{#if editing}}
<input type="text" name="description" id="description" placeholder="Edad, descripción fisica, etc." value="{{person.descrition}}" {{#unless isOwner}}disabled{{/unless}} />
{{else}}
<input type="text" name="description" id="description" placeholder="Edad, descripción fisica, etc." />
{{/if}}
<span class="help-block">Ejemplo: <em>1.80, rubio, con barba. Usaba remera negra y jeans</em>.</span>
</div>
</div>
<div class="control-group">
<label class="control-label" for="filepicker">Foto</label>
<div class="controls">
<input type="hidden" name="picture" id="picture" value="{{#if editing}}{{person.picture}}{{/if}}" />
{{#if editing}}
<img src="{{#if person.picture}}{{person.picture}}{{else}}/images/missing.jpg{{/if}}" id="picture-preview" class="img-polaroid" style="width: 120px;" /><br />
{{else}}
<img src="/images/missing.jpg" id="picture-preview" class="img-polaroid" style="width: 120px;" /><br />
{{/if}}
<a href="#" class="btn btn-small" id="filepicker">Adjuntar</a>
</div>
</div>
<hr />
<div class="control-group">
<label class="control-label" for="relationship">Relación</label>
<div class="controls">
{{#if editing}}
<select name="relationship" id="relationship" {{#unless isOwner}}disabled{{/unless}}>
<option {{#if is person.relationship "Familiar"}}selected{{/if}}>Familiar</option>
<option {{#if is person.relationship "Vecino(a)"}}selected{{/if}}>Vecino(a)</option>
<option {{#if is person.relationship "Amigo(a)/Conocido(a)"}}selected{{/if}}>Amigo(a)/Conocido(a)</option>
<option {{#if is person.relationship "Desconocido(a)"}}selected{{/if}}>Desconocido(a)</option>
</select>
{{else}}
<select name="relationship" id="relationship">
<option>Familiar</option>
<option>Vecino(a)</option>
<option>Amigo(a)/Conocido(a)</option>
<option>Desconocido(a)</option>
</select>
{{/if}}
</div>
</div>
<div class="control-group">
<label class="control-label" for="status">Estado</label>
<div class="controls">
<select name="status" id="status">
<option {{#if is person.status "Desaparecido(a)"}}selected{{/if}}>Desaparecido(a)</option>
<option {{#if is person.status "Fallecido(a)"}}selected{{/if}}>Fallecido(a)</option>
</select>
</div>
</div>
</form>
</div>
<div class="modal-footer">
<button data-dismiss="modal" class="btn">Cancelar</button>
<button class="btn btn-primary" id="save">Guardar</button>
</div>
</div>
</template>
<template name="list">
<div class="row">
{{#with people}}
<div class="pull-right text-info"><h4>{{count}} Víctimas reportadas</h4></div>
{{/with}}
</div>
<div class="row">
<div class="span2">
{{#if currentUser}}
<a href="/add" role="button" class="btn btn-primary" data-toggle="modal"><i class="icon-plus"></i> Ingresar Persona</a>
{{else}}
{{loginButtons}}
{{/if}}
</div>
<div class="span3 offset7">
<div class="input-append pull-right">
<input class="span2" id="search-input" type="text" placeholder="Nombre" />
<button class="btn" id="search-button" type="button">Buscar</button>
</div>
</div>
</div>
<ul class="thumbnails">
{{#each people}}
<li class="span3">
<div class="thumbnail">
<a href="/view-information/{{_id}}"><span class="badge badge-info pull-right">{{messages}}</span></a>
<div style="height: 200px; width: 230px;">
{{#if picture}}
<img src="{{picture}}" class="polaroid" style="max-height: 200px; max-width: 230px;" />
{{else}}
<img src="/images/missing.jpg" class="polaroid" style="max-height: 200px; max-width: 230px;" />
{{/if}}
</div>
<div class="caption">
<h4>{{name}}</h4>
<span>{{age}} años</span>
<p>{{description}}</p>
<p>Reportado <em>{{status}}</em></p>
</div>
{{#if currentUser}}
<p>
<a href="/view-information/{{_id}}" class="btn btn-warning btn-small view-information"><i class="icon-plus-sign"></i> Aportar información</a>
<a href="/add-complaint/{{_id}}" class="btn btn-danger btn-small" title="Reportar como información falsa o errónea"><i class="icon-bullhorn"></i> {{complaints}}</a>
<a href="/edit/{{_id}}" class="btn btn-success btn-small edit"><i class="icon-edit"></i> Edit</a>
</p>
{{/if}}
</div>
</li>
{{/each}}
</ul>
</template>
<!-- template name="table-list">
<table class="table table-striped table-bordered table-hover">
<thead>
<tr>
<th>Foto</th>
<th>Nombre</th>
<th>Descripción</th>
<th>Última novedad</th>
<th>Acciones </th>
</tr>
</thead>
<tbody>
{{#each people}}
<tr>
<td>
{{#if picture}}
<img src="{{picture}}" style="width: 40px;" />
{{else}}
<img src="/images/missing.jpg" style="width: 40px;" />
{{/if}}
</td>
<td>{{name}}</td>
<td>{{description}}</td>
<td>{{status}}</td>
<td>
<a href="/view-information/{{_id}}" class="btn btn-warning btn-small view-information"><i class="icon-plus-sign"></i> Aportar información</a>
<a href="/add-complaint/{{_id}}" class="btn btn-danger btn-small" title="Reportar como información falsa o errónea"><i class="icon-bullhorn"></i> {{complaints}}</a>
<span class="badge badge-info">({{messages}} Mensajes)</span>
</td>
</tr>
{{/each}}
</tbody>
</table>
</template-->
<template name="info">
<div id="info-modal" class="modal hide fade" tabindex="-1" role="dialog">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
{{#if is_complaint}}
<h4 class="text-error">Reportar información falsa o errónea</h4>
{{else}}
<h4>Aportar información</h4>
{{/if}}
<div class="row">
<div class="span1">
{{#if person.picture}}
<img class="img-polaroid" src="{{person.picture}}" style="width: 60px;" />
{{else}}
<img class="img-polaroid" src="/images/missing.jpg" style="width: 60px;" />
{{/if}}
</div>
<div class="offset1">
<address>
<strong>{{person.name}}</strong><br />
{{person.description}}<br />
Reportado <em>{{person.status}}</em>
</address>
</div>
</div>
</div>
<div class="modal-body" id="information-log">
<dl class="dl-horizontal">
{{#each information}}
<dt>
<a href="{{author.url}}" target="_blank">{{author.name}}</a>
</dt>
<dd>
<blockquote>
<p>
{{#if complaint}}
<span class="label label-important"><i class="icon-bullhorn"></i></span>
{{/if}}
{{message}}
</p>
<small>{{created}}</small>
</blockquote>
</dd>
{{else}}
<p class="text-info">Aún no hay información sobre ésta persona.</p>
{{/each}}
</dl>
<input type="hidden" id="person_id" value="{{person._id}}" />
<input type="hidden" id="complaint" value="{{is_complaint}}" />
</div>
<div class="modal-footer">
{{#if currentUser}}
<textarea id="message" class="pull-left" style="width: 440px;" rows="2" placeholder="Escriba aquí..."></textarea>
{{#if is_complaint}}
<button class="btn btn-danger send">Enviar</button>
{{else}}
<button class="btn btn-primary btn-warning send">Enviar</button>
{{/if}}
{{/if}}
</div>
</div>
</template>