zkt21/z2/web/templates/index.html

27 lines
561 B
HTML
Raw Permalink Normal View History

2021-04-18 11:21:46 +00:00
{% extends "_base.html" %}
{% block content %}
<div class="text-center">
<h1>Welcome!</h1>
</div>
<br>
<form action="/" method="POST">
<div class="form-group">
<input name="text" class="form-control input-lg" type="text" placeholder="Enter a message" required>
</div>
<input type="submit" class="btn btn-primary btn-lg btn-block" value="Submit">
</form>
<br>
<hr>
<div>
{% for post in posts %}
<h4 class="well"><strong>{{post.text}}</strong> - <em>{{post.date_posted.strftime('%Y-%m-%d')}}</em></h4>
{% endfor %}
</div>
{% endblock %}