<div class="homework_main">
  <div class="homework_content">
  	{{#each questionCollections}}
  		<div class="question_collection" data-index="{{@index}}">
  			<div class="question_collection_type">
  				<span class= "question_collection_type_name">&nbsp;&nbsp;{{type}}</span>
  				<span class="question_collection_count">（共{{questions.length}}题{{#if errorCount}}，答错{{errorCount}}题{{/if}}）</span>
  			</div>
  			{{#each questions}}	
  				<div class="question" id="{{data.[0].topic.id}}" data-index="{{@index}}">
  					<div class="question_number" ><span>{{number}}</span></div>
  					<div class="question_answer_detail">
						<div class= "question_content">
		  					<div class="question_stem">
								{{#each data}}
									{{#if topic.topic_stem}}
										<div>{{#if @index}}（{{@index}}）{{/if}}{{get_html_content topic.topic_stem}}</div>
									{{/if}}
									{{#if topindexs}}
										<div>
											{{#isShortAnswerType ../topic.topic_type}}
											{{else}}
												{{#each topindexs}}
													{{#if CdetContent}}
														<div>{{get_alpha_index @index}}.{{get_html_content CdetContent}}</div>
													{{/if}}
												{{/each}}
											{{/isShortAnswerType}}
										</div>
									{{/if}}
								{{/each}}
							</div>
	  						<div class="question_answer">
		  						{{#each data}}
		  							{{#if @index}}
										<div class= "subquestion" id="{{topic.id}}">
											<span class="subquestion_number">（{{@index}}）</span>
									{{/if}}
	  								{{#if topindexs}}
	  										{{#isShortAnswerType ../topic.topic_type}}
	  											<span class="answer_list short_answers">
	  												{{#each topindexs}}
	  													<span>{{inc @index}}.<span class="answer_blank" contenteditable="true"></span></span>
	  												{{/each}}
	  											</span>
	  											<span class="student_answer">
	  												{{#each topindexs}}
	  													<span>{{inc @index}}.{{studentAnswer}}</span>
	  												{{/each}}
	  											</span>
	  										{{else}}
	  											<span class="student_answer choosed_{{#if correct}}right{{else}}wrong{{/if}}">你的选择:{{../../studentAnswer}}</span>
	  											<span class="answer_list multichoice_answer_list">
	  												<span style="color:#999">你的选择:</span>
		  											{{#each topindexs}}
		  												<span class="question_answer_item">
		  													{{#isMultiChoiceType ../../topic.topic_type}}
		  														<input type="radio" name="{{TopicId}}" id="{{ID}}">
		  													{{else}}
		  														<input type="checkbox" name="{{TopicId}}" id="{{ID}}">
		  													{{/isMultiChoiceType}}
		  													<label for="{{ID}}">{{get_alpha_index @index}}</label>
		  												</span>
		  											{{/each}}
	  											</span>
	  										{{/isShortAnswerType}}
	  								{{/if}}
		  							{{#if @index}}
			  							</div>
			  						{{/if}}
		  						{{/each}}
	  						</div>
	  						<div class="question_analysis">
  								<span style="color:#33b5e5;font-size: 24px">解题思路：</span>{{get_analysis_content data}}
  							</div>
	  						<div class="question_source"><span>来源：</span><span class="question_source_name">{{data.[0].topic.source}}</span></div>
		  				</div>
  						<div class="question_answer_result">
  							<div class="do_over_button">重&nbsp;&nbsp;做</div>
  							<div class="reference_answer">
								参考答案：
			                	{{#each data}}
				                    <p>
				                    	{{#if @index}}
											<span>（{{@index}}）</span>
										{{/if}}
				                        {{#each topindexs}}
				                            {{#isShortAnswerType ../topic.topic_type}}
				                            	{{#if CdetContent}}
				                            		<span>{{inc @index}}.{{get_html_content CdetContent}}</span>
				                            	{{/if}}
				                            {{else}}
				                   				{{#isCorrectAnswer CdetAnswer}}<span>{{get_alpha_index @index}}</span>{{/isCorrectAnswer}}
				                            {{/isShortAnswerType}}
				                        {{/each}}
				                	</p>
			                	{{/each}}
							</div>
						</div>
	  				</div>
	  			</div>
	  		{{/each}}
  		</div>
  	{{/each}}
  </div>
</div>
