<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;

/* @var $this yii\web\View */
/* @var $model backend\models\Sightcheckbe */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="sightcheckbe-form">
	<?php $form = ActiveForm::begin(); ?>
		<div class="card card-default">
			<div class="card-header">Create Site Test</div>
			<div class="card-body">
				<div class="row">
					<div class='col-12 col-lg-2'>Employee</div>
					<div class='col-12 col-lg-4'><?= $form->field($model, 'employee')->dropdownlist($employees, ['prompt' => 'Please Select'])->label(false) ?></div>
					<div class='col-12 col-lg-2'>Tester</div>
					<div class='col-12 col-lg-4'><?= $form->field($model, 'tester')->dropdownlist($employees, ['prompt' => 'Please Select'])->label(false) ?></div>
					<div class='col-12 col-lg-2'>Date of Test</div>
					<div class='col-12 col-lg-4'><?= $form->field($model, 'date')->widget(\kartik\date\DatePicker::class, ['pluginOptions' => ['showMeridian' =>true, 'convertFormat' => true, 'format' => 'dd/mm/yyyy']])->label(false) ?></div>
					<div class='col-12 col-lg-2'>Position in Company</div>
					<div class='col-12 col-lg-4'><?= $form->field($model, 'position')->textInput()->label(false) ?></div>
					<div class='col-12 col-lg-2'>Does the employee use vision correction?</div>
					<div class='col-12 col-lg-4'><?= $form->field($model, 'wearsglasses')->checkbox(['label' => null])->label(false) ?></div>
					<div class='col-12 col-lg-2'>Test Type</div>
					<div class='col-12 col-lg-4'><?= $form->field($model, 'type')->textInput()->label(false) ?></div>
					<div class='col-12 col-lg-2'>Location</div>
					<div class='col-12 col-lg-4'><?= $form->field($model, 'location')->textInput()->label(false) ?></div>
					<div class='col-12 col-lg-2'>Registration Tested</div>
					<div class='col-12 col-lg-4'><?= $form->field($model, 'registration')->textInput()->label(false) ?></div>
					<div class='col-12 col-lg-2'>Registration Given</div>
					<div class='col-12 col-lg-4'><?= $form->field($model, 'registariongiven')->textInput()->label(false) ?></div>
					<div class='col-12 col-lg-2'>Result</div>
					<div class='col-12 col-lg-4'><?= $form->field($model, 'result')->textInput(['fail' => 'FAIL', 'pass' => 'PASS'], ['prompt' => 'Please Select..'])->label(false) ?></div>
					<div class="col-12 form-group">
						<?= Html::submitButton('Save', ['class' => 'btn btn-primary']) ?>
					</div>
				</div>
			</div>
		</div>
	<?php ActiveForm::end(); ?>
</div>
