igor162/yii2-kanban-board

Kanban project management software on CSS framework Bootstrap 4 for yii2

dev-master 2019-09-06 12:19 UTC

This package is auto-updated.

Last update: 2024-05-13 22:58:57 UTC


README

KanbanBoard v1.2.2 -- KanbanBoard is project management software that focuses on the Kanban methodology. Based on Bootstrap v4.3.1 CSS framework. It can be used with Yii2 v2.0.16

Installation

There are multiple ways to install KanbanBoard.

####Using The Command Line:

Github

git clone https://github.com/igor162/yii2-kanban-board.git

Composer

composer require "igor162/yii2-kanban-board" "dev-master"

Php code example

<?php
use igor162\KanbanBoard\widgets\KanbanWidget;
use igor162\adminlte\widgets\Box;
use app\widgets\actions\Helper;
use app\modules\task\models\TaskStatus;
use app\modules\task\models\Task;
/* @var $data app\modules\task\models\Task */
/* @var $this yii\web\View */
?>
<?php Box::begin([
    'type' => false,
    'title' => false,
    'footer' => false
]); ?>

<?= KanbanWidget::widget([
    'data' => $data,
    'showAddTask' => KanbanWidget::SHOW_ONE, // KanbanWidget::SHOW_ALL
    'editorURLTaskStatus' => ['task-status/update', 'form' => TaskStatus::FORM_TYPE_AJAX, 'returnUrl' => Helper::getReturnUrl()],
    'addURLTask' => ['task/update', 'form' => TaskStatus::FORM_TYPE_AJAX, 'returnUrl' => Helper::getReturnUrl()],
    'editorURLTask' => ['task/update', 'form' => Task::FORM_TYPE_AJAX, 'returnUrl' => Helper::getReturnUrl()],
    'changeURLTaskAction' => ['menuChangeTaskPosition'],
    'archiveURLTaskAction' => ['task/archive'],
    'editorHeaderStatus' => true,
    'cardFooterMenuItems' => [
        'show_history' => [
            'typeButton' => true,
            'label' => false,
            'icon' => 'oi oi-comment-square mr-1',
            'small' => true,
            'options' => [
                'class' => 'card-footer-item card-footer-item-bordered text-muted',
                'data-toggle' => 'modal',
                'data-target' => '#modalViewTask',
                'draggable' => 'false',
                'title' => 'Operations history',
            ],
        ],
        'set_reminder' => [
            'label' => false,
            'icon' => 'fa fa-history text-teal_kn',
            'small' => false,
            'options' => [
                'class' => 'card-footer-item card-footer-item-bordered text-muted',
                'draggable' => 'false',
                'title' => 'Set Reminder',
            ],
        ],
        'archive' => [
            'label' => false,
            'icon' => 'fa fa-history text-teal_kn',
            'small' => false,
            'options' => [
                'class' => 'card-footer-item card-footer-item-bordered text-muted',
                'draggable' => 'false',
                'title' => 'Archive',
            ],
        ],
    ]
]);
?>

<?php Box::end(); ?>

Plugin example

example.gif