<?php
/**
 * The kanban setting view file of execution module of ZenTaoPMS.
 *
 * @copyright   Copyright 2009-2015 青岛易软天创网络科技有限公司(QingDao Nature Easy Soft Network Technology Co,LTD, www.cnezsoft.com)
 * @license     ZPL (http://zpl.pub/page/zplv12.html)
 * @author      Yidong Wang <yidong@cnezsoft.com>
 * @package     execution
 * @version     $Id$
 * @link        http://www.zentao.net
 */
?>
<?php include '../../common/view/header.lite.html.php';?>
<style>
.colorpicker > .btn {border: none; padding: 4px;}
.colorpicker .btn .ic {color: inherit;}
form {padding: 30px 0 40px;}
</style>
<main class='main'>
  <div class='container'>
    <div id='mainContent' class='main-content'>
      <div class='center-block'>
        <div class='main-header'>
          <h2><?php echo $lang->execution->kanbanSetting;?></h2>
        </div>
        <form target='hiddenwin' method='post'>
          <table class='table table-form'>
            <?php if(common::hasPriv('execution', 'kanbanHideCols')):?>
            <tr class='statusTR'>
              <th class='text-right w-200px'><?php echo $lang->execution->kanbanHideCols?></th>
              <td><?php echo html::radio('allCols', $lang->kanbanSetting->optionList, $setting->allCols)?></td>
            </tr>
            <?php endif;?>
            <?php if(common::hasPriv('execution', 'kanbanColsColor')):?>
            <tr class='statusTR'>
              <th class='text-right'><?php echo $lang->execution->kanbanColsColor?></th>
              <td>
                <div class='row'>
                  <?php foreach($setting->colorList as $status => $color):?>
                  <div class='col-sm-2'>
                    <div class='input-group'>
                      <input type='hidden' id='color<?php echo $status?>' name="colorList[<?php echo $status?>]" data-provide='colorpicker' data-wrapper='input-group-btn' value='<?php echo $color;?>' data-colors='#333,#2B529C,#E48600,#D2323D,#229F24,#777,#D2691E,#008B8B,#2E8B57,#4169E1,#4B0082,#FA8072,#BA55D3,#2E8B57,#6B8E23'>
                      <div class='input-group-cell'><?php echo $lang->task->statusList[$status];?></div>
                    </div>
                  </div>
                  <?php endforeach;?>
                </div>
              </td>
            </tr>
            <?php endif;?>
            <tr>
              <td colspan='2' class='form-actions text-center'>
                <?php
                echo html::submitButton();
                echo '&nbsp;' . html::a(inlink('ajaxResetKanban', "executionID=$executionID"), $lang->execution->resetKanban, 'hiddenwin', "class='btn btn-wide'");
                ?>
              </td>
            </tr>
          </table>
        </form>
      </div>
    </div>
  </div>
</main>
<?php include '../../common/view/footer.lite.html.php';?>
