Added reply form

This commit is contained in:
Socks 2018-02-16 05:43:04 +00:00
parent 245ba1e019
commit b300999fd1

View file

@ -1,10 +1,19 @@
<!DOCTYPE html> {% extends 'layout.html' %}
<html lang="en"> {% block content %}
<head> <div class="container">
<meta charset="UTF-8">
<title>$Title$</title> <div class="card" style="word-wrap: break-word; margin-bottom: 16px; width: 100%;">
</head> <div class="card-header">Replying to <b>{{ reply_to.poster }}</b> at {{ reply_to.timePosted.strftime('%Y-%m-%d %-H:%M') }}</div>
<body> <div class="card-body">
$END$ {{ reply_to.content }}
</body> </div>
</html> <div class="card-footer">
<form method="POST", action="/reply/{{ reply_to._id }}" class="form-inline">
<input type="text" class="form-inline form-control" value="@{{ reply_to.poster }} " autofocus onfocus="var temp_value=this.value; this.value=''; this.value=temp_value"/>
<input type="submit" class="btn btn-primary" value="Do Post" />
</form>
</div>
</div>
</div>
{% endblock %}