2024-08-25 00:54:11 +00:00
{% extends 'secondbase.html' %}
{% block content %}
2024-09-06 06:07:52 +00:00
< script src = "https://cdnjs.cloudflare.com/ajax/libs/qrcodejs/1.0.0/qrcode.js" > < / script >
2024-08-31 23:50:22 +00:00
< style >
main {
overflow-y: scroll;
}
< / style >
2025-03-07 21:55:11 +00:00
< div class = "container-fluid" style = "padding-top: 30px; max-width: 75vw; background-color: rgba(189, 216, 3, 0.9)" >
2024-08-31 23:50:22 +00:00
< h3 > Hola < span style = "color: darkgreen;" > {{current_user.username}}< / span > < / h3 >
2024-09-12 20:35:52 +00:00
< p > Aquí puedes ver los pines que has agregado y consultar tu enlace/QR de invitación. Cada vez que recargas esta página, tu enlace de invitacón cambia y el anterior se vuelve inválido.< / p >
< div class = "grid" style = "padding-bottom: 2rem;" >
< div id = "qrgen" style = "" >
< / div >
< script type = "text/javascript" >
var qrcode = new QRCode(document.getElementById("qrgen"), {
2024-09-12 22:56:41 +00:00
text: "https://baches.qro.mx/registrame/{{invite_code}}",
2024-09-12 20:35:52 +00:00
width: 256,
height: 256,
colorDark : "#000000",
colorLight : "#e6e6fa",
correctLevel : QRCode.CorrectLevel.L
});
< / script >
< div >
< h2 > Tu link es:< / h2 >
2024-09-12 22:56:41 +00:00
< p > < a href = "https://baches.qro.mx/registrame/{{invite_code}}" > https://baches.qro.mx/registrame/{{invite_code}}< / a > < / p >
2024-09-12 20:35:52 +00:00
< / div >
2024-09-06 06:07:52 +00:00
< / div >
2024-08-25 00:54:11 +00:00
{% if pins %}
{% for pin in pins %}
2024-08-26 19:40:34 +00:00
< table border = "1" cellpadding = "5" cellspacing = "0" >
2024-08-31 23:50:22 +00:00
2024-08-26 19:40:34 +00:00
< tbody >
2024-08-31 23:50:22 +00:00
2024-08-26 19:40:34 +00:00
< tr >
2024-08-31 23:50:22 +00:00
< td > Agregado el< / td >
2024-08-26 19:40:34 +00:00
< td > {{ pin.time }}< / td >
< / tr >
< tr >
< td > Photo< / td >
2024-08-31 23:50:22 +00:00
< td > < img style = "max-height: 66px;" src = "{{ pin.photo }}" > < / td >
2024-08-26 19:40:34 +00:00
< / tr >
< tr >
< td > Latitude< / td >
< td > {{ pin.lat }}< / td >
< / tr >
< tr >
< td > Longitude< / td >
< td > {{ pin.lng }}< / td >
< / tr >
< tr >
2024-08-31 23:50:22 +00:00
< td > Tipo de mejora urbana< / td >
2024-08-26 19:40:34 +00:00
< td > {{ pin.typeofpin }}< / td >
< / tr >
2024-09-03 20:22:02 +00:00
< tr >
< td > Eliminar pin< / td >
< td > < a href = "/remove_pin/{{pin._id}}" > < button type = "submit" formmethod = "get" > Eliminar< / button > < / a > < / td >
< / tr >
2024-08-26 19:40:34 +00:00
< / tbody >
< / table >
2024-08-25 00:54:11 +00:00
{% endfor %}
{% endif %}
2024-08-31 23:50:22 +00:00
< / div >
2024-08-25 00:54:11 +00:00
{% endblock %}