<div class="yboard-message-form"> <?php $form = ActiveForm::begin(['id' => 'pm-form']); ?> <?php echo $form->field($model, 'usernames')->widget(Select2::classname(), ['name' => 'usernames', 'options' => ['placeholder' => 'Select User', 'id' => 'YBoardMessage_pm_usernames'], 'pluginOptions' => ['tags' => $data, 'maximumInputLength' => 10]]); ?> <?php echo $form->field($model, 'subject')->textInput(['maxlength' => 255]); ?> <?php echo CKEditor::widget(['model' => $model, 'attribute' => 'content', 'id' => 'pmEditor']); ?> <?php echo Html::hiddenInput('url', \Yii::$app->urlManager->createAbsoluteUrl($this->context->module->id . '/message/create'), ['id' => 'pm-url']); ?> <?php echo Html::activeHiddenInput($model, 'sendfrom'); ?> <?php echo Html::activeHiddenInput($model, 'sendto', ['id' => 'YBoardMessage_send_to']); ?>
</noscript> <div class="form pad5-bottom"> <?php $form = ActiveForm::begin(['id' => 'create-topic-form', 'enableAjaxValidation' => false]); ?> <?php echo $form->errorSummary($post); ?> <?php echo isset($hide_title) ? Html::activeHiddenInput($post, 'subject') : $form->field($post, 'subject')->textInput(); ?> <?php echo CKEditor::widget(['model' => $post, 'attribute' => 'content']); ?> <?php echo $post->isNewRecord ? "" : $form->field($post, 'change_reason')->textInput(); ?> <?php echo Html::activeHiddenInput($post, 'forum_id'); ?> <?php echo Html::activeHiddenInput($post, 'topic_id'); ?> <br><?php
</noscript> <div class="form pad5-bottom"> <?php $form = ActiveForm::begin(['id' => 'create-topic-form', 'enableAjaxValidation' => false]); ?> <?php echo $form->errorSummary($post); ?> <?php echo isset($hide_title) ? Html::activeHiddenInput($post, 'subject') : $form->field($post, 'subject')->textInput(); ?> <?php echo CKEditor::widget(['model' => $post, 'attribute' => 'content', 'id' => 'ckeditor', 'config' => []]); ?> <?php echo Html::activeHiddenInput($post, 'forum_id'); ?> <?php echo Html::activeHiddenInput($post, 'topic_id'); ?> <?php echo Html::activeHiddenInput($post, 'id'); ?> <?php ActiveForm::end();