<?php 
use yii\helpers\Html;
$layout = $model->viewLayout ? $model->viewLayout : '_'.$formModel->form.'v';

?>
<div class="form-view">
    <div class="content">
        <?= $this->render($layout, ['model' => $model, 'formModel' => $formModel]); ?>
    </div>
    
    <div class="row d-print-none">
        <div class="col-offset-4 col-4">
            <?= Html::a('PDF & Print', ['/forms/'.$formModel->form.'/pdf', 'id' => $formModel->id], [
                'class'=>'btn btn-primary', 
                'target'=>'_blank', 
                'data-toggle'=>'tooltip', 
                'title'=>'Will open the generated PDF file in a new window'
            ]); ?>
            <?= Html::a('Update', ['/forms/'.$formModel->form.'/update', 'id' => $formModel->id], ['class' => 'btn btn-primary']) ?>
        </div>
    </div>
</div>