Ejemplo n.º 1
0
        <?php 
if ($model->videoOverviewCamera) {
    ?>
            <?php 
    echo app\widgets\mediaPopup\MediaPopup::widget(['url' => $model->videoOverviewCamera->url, 'type' => $model->videoOverviewCamera->file_type, 'title' => $model->getAttributeLabel('videoOverviewCamera'), 'mime' => $model->videoOverviewCamera->mime_type]);
    ?>
        <?php 
}
?>

        <?php 
if ($model->lat && $model->lng) {
    ?>
            <?php 
    echo app\widgets\mapPopup\MapPopup::widget(['latitude' => $model->lat, 'longitude' => $model->lng]);
    ?>

        <?php 
}
?>

        <div class="record-form">





        <?php 
$form = ActiveForm::begin(['id' => 'record-form', 'enableAjaxValidation' => true, 'options' => ['class' => 'form-horizontal'], 'fieldConfig' => ['template' => "<div class=\"col-lg-3\">{label}</div>\n<div class=\"col-lg-3\">{input}</div>\n<div class=\"col-lg-5\">{error}</div><div class=\"hidden hint-block\">{hint}</div>", 'labelOptions' => ['class' => 'control-label right']]]);
?>
Ejemplo n.º 2
0
<?php 
if ($model->videoLpr) {
    ?>
    <?php 
    echo app\widgets\mediaPopup\MediaPopup::widget(['text' => Yii::t('app', 'LPR VID'), 'url' => $model->videoLpr->url, 'type' => $model->videoLpr->file_type, 'title' => $model->getAttributeLabel('videoLpr'), 'mime' => $model->videoLpr->mime_type]);
}
?>

<?php 
if ($model->imageOverviewCamera) {
    ?>
    <?php 
    echo app\widgets\mediaPopup\MediaPopup::widget(['text' => Yii::t('app', 'OVR IMG'), 'url' => $model->imageOverviewCamera->url, 'type' => $model->imageOverviewCamera->file_type, 'title' => $model->getAttributeLabel('imageOverviewCamera'), 'mime' => $model->imageOverviewCamera->mime_type]);
}
?>

<?php 
if ($model->videoOverviewCamera) {
    ?>
    <?php 
    echo app\widgets\mediaPopup\MediaPopup::widget(['text' => Yii::t('app', 'OVR VID'), 'url' => $model->videoOverviewCamera->url, 'type' => $model->videoOverviewCamera->file_type, 'title' => $model->getAttributeLabel('videoOverviewCamera'), 'mime' => $model->videoOverviewCamera->mime_type]);
}
?>

<?php 
if ($model->lat && $model->lng) {
    ?>
    <?php 
    echo app\widgets\mapPopup\MapPopup::widget(['text' => Yii::t('app', 'MAP'), 'latitude' => $model->lat, 'longitude' => $model->lng]);
}