Added reply form
This commit is contained in:
parent
245ba1e019
commit
b300999fd1
1 changed files with 19 additions and 10 deletions
|
@ -1,10 +1,19 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>$Title$</title>
|
||||
</head>
|
||||
<body>
|
||||
$END$
|
||||
</body>
|
||||
</html>
|
||||
{% extends 'layout.html' %}
|
||||
{% block content %}
|
||||
<div class="container">
|
||||
|
||||
<div class="card" style="word-wrap: break-word; margin-bottom: 16px; width: 100%;">
|
||||
<div class="card-header">Replying to <b>{{ reply_to.poster }}</b> at {{ reply_to.timePosted.strftime('%Y-%m-%d %-H:%M') }}</div>
|
||||
<div class="card-body">
|
||||
{{ reply_to.content }}
|
||||
</div>
|
||||
<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 %}
|
Loading…
Add table
Reference in a new issue