Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created March 29, 2021 17:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/d1957fc8653bcc7c67e80f0f057f9fd9 to your computer and use it in GitHub Desktop.
Save parzibyte/d1957fc8653bcc7c67e80f0f057f9fd9 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Login</title>
<link rel="stylesheet" href="https://unpkg.com/bulma@0.9.1/css/bulma.min.css">
</head>
<body>
<section class="section">
<div class="columns">
<div class="column is-one-third is-offset-one-third">
<h1 class="is-size-1">Bienvenido</h1>
<form action="{{url_for('hacer_login')}}" method="post">
<label for="correo">Correo</label>
<div class="control">
<input autofocus required type="email" class="input" placeholder="Correo" id="correo"
name="correo">
</div>
<div class="control">
<label for="palabra_secreta">Contraseña</label>
<input required type="password" class="input" placeholder="Contraseña" id="palabra_secreta"
name="palabra_secreta">
</div>
<button class="button is-success mt-2">Entrar</button>
{# Mostrar mensajes / errores si es que existen #}
{% with mensajes_flash = get_flashed_messages() %}
{% if mensajes_flash %}
<div class="notification is-danger mt-2">
{% for mensaje in mensajes_flash %}
<li>{{ mensaje }}</li>
{% endfor %}
{% endif %}
{% endwith %}
</div>
</form>
</div>
</div>
</section>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment