<div class="task-question-plugin-pane-header clearfix">
	<button type="button" class="btn btn-default back-to-list">{{'返回'|trans}}</button>
	<h4>{{ threader.nickname }}<i>{{'问'|trans}}...</i></h4>
</div>

<div class="task-question-plugin-pane-thread">
	<h5><a href="{{ path('course_thread_show', {courseId:thread.courseId, threadId:thread.id}) }}" target="_blank">{{ thread.title }}</a></h5>
	<div class="lesson-question-plugin-pane-thread-content editor-text">{{ thread.content|raw }}</div>
</div>

<div class="task-question-plugin-pane-posts">
	<div class="posts-header"><h5><span data-role="post-number">{{ thread.postNum }}</span> {{'回答'|trans}}</h5></div>
</div>

<ul data-role="post-list" class="posts">
	{% for post in posts %}
		{% set user = users[post.userId] %}
		{% include 'task/plugin/question/post-item.html.twig' %}
	{% endfor %}
</ul>

<form class="post-form" data-role="post-form" method="post" action="{{ path('course_task_plugin_thread_answer', {courseId:thread.courseId, taskId: thread.taskId, threadId: thread.id}) }}" novalidate>
	<div class="form-group">
		<div class="controls">
			{{ form_widget(form.content, {attr:{class:'form-control', rows:4, 'data-display':'内容'|trans}}) }}
		</div>
	</div>
	<div class="form-group">
		<div class="controls clearfix">
			{{ form_rest(form) }}
			<button type="submit" class="btn btn-primary pull-right">{{'添加答案'|trans}}</button>
		</div>
	</div>
	<input type="hidden" name="_csrf_token" value="{{ csrf_token('site') }}">
</form>
