portal.mkgtu.ru/backend/modules/i18n/views/i18n-source-message/_form.php

26 lines
613 B
PHP
Raw Normal View History

2024-03-28 09:51:45 +03:00
<?php
use kartik\form\ActiveForm;
use yii\helpers\Html;
?>
<div class="i18n-source-message-form">
<?php $form = ActiveForm::begin(); ?>
<?php echo $form->field($model, 'category')->textInput(['maxlength' => 32]) ?>
<?php echo $form->field($model, 'message')->textarea(['rows' => 6]) ?>
<div class="form-group">
<?php echo Html::submitButton($model->isNewRecord ? Yii::t('backend', 'Создать') : Yii::t('backend', 'Редактировать'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
</div>
<?php ActiveForm::end(); ?>
</div>