<?php $row_id = $this->view->survey_tag.'_row_'.$index; ?>

<div class="form-group col-lg-12" id="<?php echo $row_id; ?>">
	<label class="label-main-question"><?php echo htmlspecialchars($item['question']); ?></label>
	
	<input type="hidden" name="data[<?php echo $index; ?>][group]" value="<?php echo $item['group']; ?>">
	
	<input type="hidden" name="data[<?php echo $index; ?>][question_type]" value="text">
	<input type="hidden" name="data[<?php echo $index; ?>][question]" value="<?php echo htmlspecialchars($item['question']); ?>">
	
	<?php if(isset($item['rows']) && (int)$item['rows']>1): ?>
			<textarea class="form-control" name="data[<?php echo $index; ?>][answer]" rows="<?php echo $item['rows']; ?>"></textarea>
	<?php else: ?>
		<input type="" value="" name="" id="">
	<?php endif; ?>
</div>