<form action="" class="quality-checklist" ng-if="tochecklist" >
	<div class="checklist-area">
		<h3 class="title layout-fixed h40px">
			<span>{{checklists.title}}</span>
		</h3>
		<div class="content" ng-keyup="checklistKeyPress($event,$index)" data-question-no="1" ng-repeat="item in checklists.questions" ng-init="outerIndex=$index" ng-if="item.show">
			<!-- question -->
			<ion-scroll direction="y" has-bouncing="true" overflow-scroll="false" class="ion-scroll-keyboard-hide-100 prevent-scroll" delegate-handle="scrollChecklistForm">
				<div class="question-area" ng-include="'templates/dashboard/checklist/form/question.tpl'"></div>
				<div class="anwser-area" ng-repeat = "field in item.fields" style="padding: 5px 15px">
					<div class="anwser-item" ng-if="field.type == 'checkbox'"  ng-include="'templates/dashboard/checklist/form/checkbox.tpl'" ng-repeat = "data in field.data"   ></div>
					<div class="anwser-item" ng-if="field.type == 'select'" ng-include="'templates/dashboard/checklist/form/select.tpl'"></div> 
					<div class="anwser-item" ng-if="field.type == 'radio'" ng-include="'templates/dashboard/checklist/form/radio.tpl'"  ng-repeat = "data in field.data"></div>
					<div class="anwser-item" ng-if="field.type == 'textselect'"  ng-include="'templates/dashboard/checklist/form/textselect.tpl'" ng-show="answers[field.modelselect].id=='{{field.valueselect}}'"></div>
					<div class="anwser-item"  ng-if="field.type == 'text'"  ng-include="'templates/dashboard/checklist/form/text.tpl'"></div>
					<div class="anwser-item"  ng-if="field.type == 'file'"  ng-include="'templates/dashboard/checklist/form/file.tpl'"></div>
					<div class="anwser-item"  ng-if="field.type == 'datetime'"  ng-include="'templates/dashboard/checklist/form/datetime.tpl'"></div>
					<div class="anwser-item"  ng-if="field.type == 'time'"  ng-include="'templates/dashboard/checklist/form/time.tpl'"></div>
					<div class="anwser-item" ng-if="field.type == 'dropselect'" ng-include="'templates/dashboard/checklist/form/dropselect.tpl'" ng-show="answers[field.modelselect].id=='{{field.valueselect}}'"></div>
				</div>
			</ion-scroll>
			<!-- start control -->
			<div class="control" ng-include="'templates/dashboard/checklist/form/control.tpl'" style="bottom: 10px; position: fixed;"></div>
			<!-- end control -->
		</div>
 </div>
</form>