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 / 10
<?php
/**
 * @link https://www.humhub.org/
 * @copyright Copyright (c) 2018 HumHub GmbH & Co. KG
 * @license https://www.humhub.com/licences
 *
 */
/* @var $this \yii\web\View */
/* @var $task \humhub\modules\tasks\models\Task */
/* @var $item \humhub\modules\tasks\models\checklist\TaskItem */
/* @var $options array */
use humhub\libs\Html;
$disabled = ($task->canCheckItems()) ? false : 'true';
?>
<?= Html::beginTag('li', $options) ?>
<div class="task-item" id="item-<?= $item->id; ?>">
    <div class="row">
        <div class="col-md-12" style="padding-right: 0;">
            <div class="task-item-content">
                <?= Html::checkBox('item[' . $item->id . ']', $item->completed, ['label' => $item->title, 'itemId' => $item->id, 'data-action-change' => 'check', 'disabled' => $disabled]); ?>
                <span class="task-drag-icon tt" title="<?= Yii::t('TasksModule.views_index_index', 'Drag entry')?>" style="display:none">
                    <i class="fa fa-arrows"></i>&nbsp;
                </span>
            </div>
        </div>
    </div>
</div>
<?= Html::endTag('li') ?>