Esempio n. 1
0
<?php

use yii\helpers\Html;
use app\enums\TipOtraslevogoSoglashenijya;
$otraslevoeSoglashenie = [];
$tipOtraslevogoSoglasheniya = TipOtraslevogoSoglashenijya::namesMap();
foreach (\app\entities\OtraslevoeSoglashenie::find()->orderBy('tip')->orderBy('nazvanie')->each() as $item) {
    $otraslevoeSoglashenie[$tipOtraslevogoSoglasheniya[$item->tip]][$item->id] = $item->nazvanie;
}
?>
<div class="panel panel-default" id="panelos<?php 
echo $num;
?>
">
    <div class="panel-body">
        <?php 
echo Html::activeHiddenInput($model, "[{$num}]id");
?>
        <?php 
echo Html::activeHiddenInput($model, "[{$num}]zayavlenieNaAttestaciyu");
?>
        <div class="col-md-8 no-right-padding">
            <?php 
echo Html::activeLabel($model, "[{$num}]otraslevoeSoglashenie");
?>
            <?php 
echo \kartik\widgets\Select2::widget(['model' => $model, 'attribute' => "[{$num}]otraslevoeSoglashenie", 'data' => $otraslevoeSoglashenie, 'pluginOptions' => ['width' => '100%']]);
?>
            <?php 
echo Html::tag('div', $model->getFirstError('otraslevoeSoglashenie'), ['class' => 'help-block']);
?>
Esempio n. 2
0
<table class="table table-bordered">
    <thead class="thead">
    <tr>
        <th>Тип</th>
        <th>Название</th>
        <th>Подтверждающий документ</th>
    </tr>
    </thead>
    <tbody>
    <?php 
    foreach ($zayavlenie->otraslevoeSoglashenieZayavleniyaRel as $os) {
        /**
         * @var \app\entities\OtraslevoeSoglashenieZayavleniya $os
         */
        echo '<tr>';
        echo Html::tag('td', \app\enums\TipOtraslevogoSoglashenijya::namesMap()[$os->otraslevoeSoglashenieRel->tip]);
        echo Html::tag('td', $os->otraslevoeSoglashenieRel->nazvanie);
        echo Html::tag('td', isset($os->fajlRel) ? Html::a($os->fajlRel->vneshnee_imya_fajla, $os->fajlRel->getUri(), ['target' => '_blank']) : '');
        echo '</tr>';
    }
    ?>
    </tbody>
</table>
<?php 
}
?>

<?php 
if ($zayavlenie->obrazovaniyaRel) {
    ?>
<p><b>Сведения о высшем образовании</b></p>