123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- <!doctype html>
- <html>
- <head>
- <meta charset="utf-8">
- <link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.4.1/dist/css/bootstrap.min.css"
- integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
- <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script>
- <title>Smart Hubs Points</title>
- </head>
- <body>
- <div id="login" class="col-md-4 offset-md-4 mt-5">
- <h2 class="login-header">Login</h2>
- <form action="" method="POST">
- {{ form.csrf_token }}
- <div class="form-group">
- <label>Username</label>
- {{ form.username(_class="form-control", placeholder="your username") }}
- {% if form.errors.username %}
- <div class="alert alert-danger" role="alert">
- <ul>
- {% for error in form.errors.username %}
- <li>{{ error }}</li>
- {% endfor %}
- </ul>
- </div>
- {% endif %}
- </div>
- <div class="form-group">
- <label>Password</label>
- {{ form.password(_class="form-control") }}
- {% if form.errors.password %}
- <div class="alert alert-danger" role="alert">
- <ul>
- {% for error in form.errors.password %}
- <li>{{ error }}</li>
- {% endfor %}
- </ul>
- </div>
- {% endif %}
- </div>
- <button type="submit" class="btn btn-primary">Login!</button>
- </form>
- {% with messages = get_flashed_messages() %}
- {% if messages %}
- <div class="alert alert-warning">
- <ul class=flashes>
- {% for message in messages %}
- <li>{{ message }}</li>
- {% endfor %}
- </ul>
- </div>
- {% endif %}
- {% endwith %}
- </div>
- </body>
- </html>
|