portal.mkgtu.ru/common/modules/student/components/evaluation/views/_add-comment.php

35 lines
1.1 KiB
PHP
Raw Permalink Normal View History

2024-03-28 09:51:45 +03:00
<?php
use yii\helpers\Html;
use kartik\form\ActiveForm;
$form = ActiveForm::begin([
'action' => '/student/evaluation/comment',
'options' => ['id' => 'add_comment_id'],
]); ?>
<div class="row">
<div class="col-12">
<?php echo Html::beginTag('div', ['class' => 'row']);
echo Html::beginTag('div', ['class' => 'col-12']);
echo $form->field($model, 'comment')->textarea();
echo Html::endTag('div');
echo Html::endTag('div');
echo Html::activeHiddenInput($model, 'uid');
echo Html::activeHiddenInput($model, 'luid');
echo Html::activeHiddenInput($model, 'puid');
echo Html::activeHiddenInput($model, 'studentId');
echo Html::activeHiddenInput($model, 'caf_id');
echo Html::activeHiddenInput($model, 'plan_id'); ?>
</div>
</div>
<div class="row">
<div class="col-lg-12">
<div class="form-group">
<?= Html::submitButton('Добавить', ['class' => 'btn btn-primary float-right']) ?>
</div>
</div>
</div>
<?php ActiveForm::end();