<?php

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

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

<div class="vehiclekeysbe-form">
	<?php $form = ActiveForm::begin(); ?>
		<div class="card card-default">
			<div class="card-header">Keys</div>
			<div class="card-body">
				<div class="row">
					<div class='col-12 col-lg-2'>Date</div>
					<div class='col-12 col-lg-4'><?= $form->field($model, 'date')->widget(\kartik\date\DatePicker::class, ['size' => 'sm', 'pluginOptions' => ['convertFormat' => true, 'format' => 'dd/mm/yyyy']])->label(false) ?></div>
					<div class='col-12 col-lg-2'>Status</div>
					<div class='col-12 col-lg-4'><?= $form->field($model, 'status')->textInput()->label(false) ?></div>
				</div>
				<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'>Vehicle</div>
					<div class='col-12 col-lg-4'><?= $form->field($model, 'vehicle')->dropdownlist($vehicles, ['prompt' => 'Please Select'])->label(false)  ?></div>
				</div>
				<div class="row">
					<div class='col-12 col-lg-2'>Peg</div>
					<div class='col-12 col-lg-4'><?= $form->field($model, 'peg')->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>
				<div class="row">
					<div class='col-12 col-lg-2'>Type</div>
					<div class='col-12 col-lg-4'><?= $form->field($model, 'type')->dropdownlist(['main' => 'Main Key', 'spare' => 'Spare'], ['prompt' => 'Please Select'])->label(false) ?></div>
				</div>
				<div class="form-group">
					<?= Html::submitButton('Save', ['class' => 'btn btn-primary']) ?>
				</div>
			</div>
		</div>
	<?php ActiveForm::end(); ?>
</div>
