<?php

use yii\helpers\Html;

$this->title = Yii::t('app', 'Update Interview') . ' ' . $model->trainingRequest->full_name;
$this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Interviews'), 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' => $model->id, 'url' => ['view', 'id' => $model->id]];
$this->params['breadcrumbs'][] = Yii::t('app', 'Update');
?>

<div class="interviews-update middle-page-container">

    <h1><?= Html::encode($this->title) ?></h1>

    <?php if(Yii::$app->session->hasFlash('could_not_add_old_interviews')): ?>
        <div class="alert alert-danger">
            <a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>
            <?= Yii::$app->session->getFlash('could_not_add_old_interviews') ?>
        </div>
    <?php endif; ?>
    
    <?= $this->render('_form', [
        'model' => $model,
        'training_request_model' => $training_request_model,
        'branches' => $branches
    ]) ?>

</div>
