You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
1.1 KiB
35 lines
1.1 KiB
7 years ago
|
<?php
|
||
|
|
||
|
use yii\helpers\Html;
|
||
|
use yii\bootstrap\ActiveForm;
|
||
|
|
||
|
/* @var $this yii\web\View */
|
||
|
/* @var $post \core\entities\post\Post */
|
||
|
/* @var $model \core\forms\post\PostCommentEditForm */
|
||
|
|
||
|
$this->title = Yii::t('post', 'Update Post Comment: {name}', ['name' => $post->title]);
|
||
|
$this->params['breadcrumbs'][] = ['label' => Yii::t('post', 'Comment'), 'url' => ['index']];
|
||
|
$this->params['breadcrumbs'][] = ['label' => $post->title, 'url' => ['view', 'id' => $post->id]];
|
||
|
$this->params['breadcrumbs'][] = Yii::t('buttons', 'Editing');
|
||
|
?>
|
||
|
<div class="post-update">
|
||
|
|
||
|
<?php $form = ActiveForm::begin([
|
||
|
'options' => ['enctype'=>'multipart/form-data']
|
||
|
]); ?>
|
||
|
|
||
|
<div class="box box-default">
|
||
|
<div class="box-header with-border"><?= Yii::t('post', 'Common') ?></div>
|
||
|
<div class="box-body">
|
||
|
<?= $form->field($model, 'parentId')->textInput() ?>
|
||
|
<?= $form->field($model, 'text')->textarea(['rows' => 20]) ?>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="form-group">
|
||
|
<?= Html::submitButton(Yii::t('buttons', 'Save'), ['class' => 'btn btn-success']) ?>
|
||
|
</div>
|
||
|
|
||
|
<?php ActiveForm::end(); ?>
|
||
|
</div>
|