{*+**********************************************************************************
* The content of this file is subject to the ITS4YouKanbanView license.
 * ("License"); You may not use this file except in compliance with the License
 * The Initial Developer of the Original Code is IT-Solutions4You s.r.o.
 * Portions created by IT-Solutions4You s.r.o. are Copyright(C) IT-Solutions4You s.r.o.
 * All Rights Reserved.
*************************************************************************************}

{strip}
    <input type="hidden" name="colors" value='{json_encode($COLORS)}'>
            <div class='datacontent'>
                <div class="data-body row">
                    {foreach item=PICKLIST_VALUE_NAME key=PICKLIST_VALUE_KEY from=$PICKLIST_VALUES}
                        <div class="col-lg-2 col-md-3 col-sm-4 col-xs-12 contentsBlock {strtolower($PRIORITY)} ui-droppable">
                            <div class="header" style="border-bottom: 2px solid {$COLORS[$PICKLIST_VALUE_NAME]}">
                                <div class="title" style="background:{$COLORS[$PICKLIST_VALUE_NAME]}">
                                    {vtranslate($PICKLIST_VALUE_NAME, $SOURCE_MODULE_NAME)}&nbsp;(<span class="{$PICKLIST_VALUE_NAME}-count-of-items" data-coi="{count($SORTED_ENTRIES[$PICKLIST_VALUE_NAME])}">{count($SORTED_ENTRIES[$PICKLIST_VALUE_NAME])}</span>)
                                </div>
                            </div>
                            <br>
                            <div class="content col-md-12" data-picklist_value_name="{$PICKLIST_VALUE_NAME}" style="border-bottom: 1px solid {$COLORS[$PICKLIST_VALUE_NAME]};padding-bottom: 10px">
                                <div class='{strtolower($PICKLIST_VALUE_NAME|regex_replace:"/[ .]/":"-")}-entries container-fluid scrollable dataEntries padding20' style="height: 600px;/*height:600px*/;overflow:auto;/*width:400px;*/padding-left: 0px;">
                                    {foreach key=RECORDID item=RECORD_MODEL from=$SORTED_ENTRIES[$PICKLIST_VALUE_NAME]}
                                        <div class="entries ui-draggable ui-draggable-handle">
                                            {assign var=RECORD_BASIC_INFO value=$RECORD_MODEL->getData()}
                                            <div class="task clearfix" data-recordid="{$RECORD_MODEL->get('id')}"
                                                 data-picklist_value_name="{$RECORD_MODEL->get($SELECTED_FIELD_NAME)}"
                                                 data-count_of_items="{count($SORTED_ENTRIES[$PICKLIST_VALUE_NAME])}"
                                                 style="border-left:4px solid {$COLORS[$PICKLIST_VALUE_NAME]}">
                                                {assign var=STATUS value=$RECORD_MODEL->get('status')}
                                                <div id="kanbanRecordContent_{$RECORD_MODEL->get('id')}">
                                                {include file="KanbanRecord.tpl"|vtemplate_path:"ITS4YouKanbanView"}
                                                </div>
                                                <div class='other-details clearfix'>
                                                    <div class="more pull-right cursorPointer task-actions">
                                                        <span class="{*quickPreview*}quickView fa fa-eye icon action" id="quickPreview"
                                                              title="{vtranslate('LBL_QUICK_VIEW')}" data-id="{$RECORD_MODEL->get('id')}"></span>&nbsp;&nbsp;
                                                        <a href="{$RECORD_MODEL->getEditViewUrl()}&returnmodule=ITS4YouKanbanView&returnview=List&returnrelatedModuleName={$SOURCE_MODULE_NAME}" class="quickTask"
                                                           id="taskPopover" title="{vtranslate('LBL_EDIT')}">
                                                            <i class="fa fa-pencil-square-o icon"></i></a>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    {/foreach}
                                </div>
                            </div>
                        </div>
                    {/foreach}
                </div>
            </div>
        </div>
    </div>
{/strip}
