echo $parentId; ?> '> <?php echo \nitm\widgets\alert\Alert::widget(); ?> <?php $form = ActiveForm::begin(['id' => 'chat-form0', "action" => "/reply/new/chat/0", 'method' => 'post', "options" => ['data-editor' => $editor, 'data-parent' => 'chat-messages', "role" => "chatForm"], "fieldConfig" => ["inputOptions" => ["class" => "form-control"]], 'validateOnSubmit' => true, "enableAjaxValidation" => true]); ?> <?php switch (isset($inline) && $inline == true) { case false: echo Html::button('Click to Reply', ['role' => "startEditor", 'data-container' => 'messagesForm' . $parentId, 'data-editor' => 'redactor', 'data-id' => $parentId, 'data-use-modal' => @$useModal ? 'true' : 'false', 'class' => 'btn btn-default center-block']); break; default: echo $form->field($model, 'title', ['addon' => ['prepend' => ['content' => \nitm\widgets\priority\Priority::widget(['size' => 'small', 'type' => 'addon', 'inputsInline' => true, 'addonType' => 'radiolist', 'attribute' => 'priority', 'model' => $model, 'form' => $form]), 'asButton' => true], 'groupOptions' => ['class' => 'input-group input-group-sm']], 'options' => ['class' => 'chat-message-title']])->textInput(['placeholder' => "Optional title", 'tag' => 'span'])->label("Title", ['class' => 'sr-only']); $editorOptions['id'] = 'chat-message' . $parentId; $editorOptions['model'] = $model; $editorOptions['attribute'] = 'message'; $editorOptions['role'] = 'message'; echo Editor::widget($editorOptions); break; } echo Html::tag("div", '', ["role" => "replyToIndicator", "class" => "message-reply-to"]) . $widget->getActions($useModal || !$inline); ?> <?php echo Html::activeHiddenInput($model, "reply_to", ['value' => null, "role" => "replyTo"]); ?> <?php ActiveForm::end(); ?>
<div class="issues-form row" id='issues-form<?php echo $uniqid; ?> '> <div class="col-lg-12 col-md-12"> <?php echo \nitm\widgets\alert\Alert::widget(); ?> <?php $form = ActiveForm::begin(["type" => ActiveForm::TYPE_VERTICAL, 'action' => \Yii::$app->urlManager->createUrl(['/issue/' . $action . ($model->getIsNewRecord() ? "" : "/" . $model->getId()), Issues::COMMENT_PARAM => $enableComments]), 'options' => ["role" => $action . "Issue", 'id' => 'issue-' . $action . '-form' . $uniqid], 'fieldConfig' => ['inputOptions' => ['class' => 'form-control'], 'labelOptions' => ['class' => 'control-label']], 'enableAjaxValidation' => true]); ?> <?php echo $form->field($model, 'title', ['addon' => ['prepend' => ['content' => \nitm\widgets\priority\Priority::widget(['type' => 'addon', 'size' => 'small', 'inputsInline' => true, 'addonType' => 'radiolist', 'attribute' => 'status', 'model' => $model, 'form' => $form]), 'asButton' => true]], 'options' => ['id' => 'chat-message-title' . $uniqid]])->textInput(['placeholder' => "Title for this issue", 'tag' => 'span'])->label("Title", ['class' => 'sr-only']); ?> <?php echo $form->field($model, 'notes')->textarea()->label("Issue", ['class' => 'sr-only']); ?> <?php if ($model->isNewRecord) { echo Html::activeHiddenInput($model, 'parent_id', ['value' => $parentId]); echo Html::activeHiddenInput($model, 'parent_type', ['value' => $parentType]); } ?> <div class="pull-right"> <?php echo Html::submitButton(ucfirst($action), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);