* @package kanban * @link https://www.zentao.net */ namespace zin; $colItems = array(); foreach($columns as $column) { $colItems[] = div ( setClass('col-item flex mt-2'), div(setClass('col-item-title flex-1'), $column->parent > 0 ? html("{$lang->kanban->child} $column->name") : $column->name), div ( setClass('col-item-action flex-1 flex justify-end ml-2'), (commonModel::hasPriv('kanban', 'restoreColumn') && $column->archived == '1' && !(isset($this->config->CRKanban) and $this->config->CRKanban == '0' and $kanban->status == 'closed')) ? btn(set ( array ( 'class' => 'btn primary size-sm ajax-submit', 'url' => inlink('restoreColumn', "colID=$column->id") ) ), $lang->kanban->restore) : null ) ); } panel ( to::heading ( div ( set('class', 'panel-title'), $lang->kanban->archivedColumn ) ), to::headingActions ( btn ( setClass('closeBtn ghost'), 'x' ) ), div ( setClass('panel-body'), $colItems ) );