<?php
use frontend\assets\CustomerAsset;
use backend\models\CustomerCreate;
CustomerAsset::register($this);
$options = [];


if ( $model instanceof frontend\models\CustomerCreate){
	$options['image_data' ] = 'customercreate-photo_data';
}else{
}
$this->registerJs ( 'new Customer( '. json_encode($options).');' );
?>

<style>
.photo{
	border: 1px solid gray;
}
</style>

<div class="row" style='margin-top: 12px;' >
	<div class="col-md-4">
		<div id="my_camera" class='photo pull-left' style="width: 160px; height: 120px; margin-right: 12px;"></div>
		<div id="my_result" class='photo pull-left' style="width: 160px; height: 120px;"></div>
	</div>
	<div class="col-md-4">
	</div>
</div>
<a id="snap" class="btn btn-primary" style="margin-top: 6px;" >Fénykép</a>