Source

stack2blog / stack2blog / stack2blogapp / templates / answers.html

<html>
<head>
	<title>Stack2Blog - Your answers</title>
</head>
<body>
	Here is your list of {{ answers|length }} answers for user {{ userid }}
	<h2>Published posts ({{ published_answers|length }}):</h2>
	<table>
		{% for answer in published_answers %}
		<tr>
			<td>{{ answer.id }}</td>
			<td>{{ answer.title }}</td>
			<td><form action="post"><input type="hidden" name="postid" value="{{ answer.id }}"/><input type="submit" value="post again"/></form></td>
		</tr>
		{% endfor %}
	</table>
	<h2>Unpublished posts ({{ unpublished_answers|length }}):</h2>
	<table>
		{% for answer in unpublished_answers %}
		<tr>
			<td>{{ answer.id }}</td>
			<td>{{ answer.title }}</td>
			<td><form action="post"><input type="hidden" name="postid" value="{{ answer.id }}"/><input type="submit" value="post"/></form></td>
		</tr>
		{% endfor %}
	</table>
</body>
</html>