{% extends 'basepage.html' %}
{% block title %}Hello, Flask 4{% endblock %}
{% block content %}
<div>You are {% if loggedin is false %}not {% endif %}logged in.</div>
{% if loggedin is true %}
<div class="id">{{hname}}</div>
<div class="bt"><a href="logout"><button type="button">LOGOUT</button></a>
{% else %}
<form method="post" action="login">
<div class="lin">ID: <input type="text" name="userid" size=10>
Password: <input name="pwd" type="password"></div>
<div class="bt"><a class="reg" href="{{ url_for('register.gen') }}"><button type="button">Register</button></a>
<input type="submit" name="LOGIN" value="LOGIN">
{% endif %}
<a href="next"><button type="button">next</button></a></div>{% if loggedin is false %}</form>{% endif %}
{% endblock %}