Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
n/a
0 / 0
n/a
0 / 0
CRAP
0.00% covered (danger)
0.00%
0 / 6
<?php
/**
 * @link https://www.humhub.org/
 * @copyright Copyright (c) 2018 HumHub GmbH & Co. KG
 * @license https://www.humhub.com/licences
 *
 */
use humhub\modules\tasks\models\lists\TaskList;
use humhub\modules\content\widgets\ContentTagDropDown;
use humhub\modules\content\widgets\richtext\RichTextField;
/* @var $form \humhub\widgets\ActiveForm */
/* @var $taskForm \humhub\modules\tasks\models\forms\TaskForm */
?>
<div class="modal-body">
    <?= $form->field($taskForm->task, 'title')->textInput(); ?>
    <?php if(TaskList::findByContainer($taskForm->contentContainer)->count()) : ?>
        <?= $form->field($taskForm->task, 'task_list_id')->widget(ContentTagDropDown::class, [
            'prompt' => Yii::t('TasksModule.base', 'Unsorted'),
            'contentContainer' => $taskForm->contentContainer,
            'options' => ['data-ui-select2' => true],
            'tagClass' => TaskList::class
        ]); ?>
    <?php endif; ?>
    <?= $form->field($taskForm->task, 'description')->widget(RichTextField::class) ?>
    <?= $form->field($taskForm, 'is_public')->checkbox() ?>
    <?= $form->field($taskForm->task, 'scheduling')->checkbox(['data-action-change' => 'toggleScheduling']) ?>
</div>