{*+**********************************************************************************
 * 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.
*************************************************************************************}

{* START YOUR IMPLEMENTATION FROM BELOW. Use {debug} for information *}
{strip}
    {assign var=NON_DELETABLE_VALUES value=$SELECTED_PICKLIST_FIELDMODEL->getNonEditablePicklistValues($SELECTED_PICKLIST_FIELDMODEL->getName())}
    <ul class="nav nav-tabs massEditTabs" style="margin-bottom: 0;">
        <li id="assignedToRoleTab"><a href="#AssignedToRoleLayout" data-toggle="tab"><strong>{vtranslate('LBL_VALUES_ASSIGNED_TO_PICKLIST',$QUALIFIED_MODULE)}</strong></a></li>
    </ul>
    <div class="tab-content layoutContent padding20 themeTableColor overflowVisible">
        <br>
            <div class="tab-pane active form-horizontal row" id="AssignedToRoleLayout">
                <div class="col-lg-2 col-md-2 col-sm-2"></div>
                <div class="col-lg-10 col-md-10 col-sm-10">
                    <div id="pickListValeByRoleContainer" class="col-lg-12 col-md-12 col-sm-12">
                        <br>
                        <div class="row">
                            <div class="form-group">
                                <div class="control-label col-lg-1 col-md-1">&nbsp;</div>
                                <div class="controls col-lg-4 col-md-4">
                                    <select class="select2 form-control" id="role2picklist" multiple name="role2picklist[]"
                                            {if empty($ALL_PICKLIST_VALUES) } placeholder="{vtranslate("LS_NONE_PICKLIST_VALUES",$QUALIFIED_MODULE)}"{/if}>
                                        {foreach key=PICKLIST_KEY item=PICKLIST_VALUE from=$ALL_PICKLIST_VALUES}
                                            <option value="{$PICKLIST_VALUE}" data-id="{$PICKLIST_KEY}" {if in_array($PICKLIST_KEY,$SAVED_PICKLIST_VALUES)} selected {/if}>
                                                {vtranslate($PICKLIST_VALUE,$SELECTED_MODULE_NAME)}
                                            </option>
                                        {/foreach}
                                    </select>
                                </div>
                            </div>
                        </div>
                        <br>
                        <div class="row">
                            <div class="form-group">
                                <div class="control-label col-lg-1 col-md-1">&nbsp;</div>
                                <div class="controls col-lg-4 col-md-4">
                                    <div class="pull-right">
                                        <button id="backLink" class="btn btn-default" data-backurl="index.php?module=ITS4YouKanbanView&parent=Settings&view=List">
                                            {vtranslate('LBL_BACK',$QUALIFIED_MODULE)}
                                        </button>&nbsp;&nbsp;
                                        <button id="saveOrder" class="btn btn-success">
                                            {vtranslate('LBL_SAVE',$QUALIFIED_MODULE)}
                                        </button>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>	
                </div>
            </div>
    </div>
{/strip}