[ Index ]

PHP Cross Reference of vtigercrm-6.1.0

title

Body

[close]

/layouts/vlayout/modules/Settings/Picklist/ -> DeleteView.tpl (source)

   1  {*<!--
   2  /*********************************************************************************

   3    ** The contents of this file are subject to the vtiger CRM Public License Version 1.0

   4     * ("License"); You may not use this file except in compliance with the License

   5     * The Original Code is:  vtiger CRM Open Source

   6     * The Initial Developer of the Original Code is vtiger.

   7     * Portions created by vtiger are Copyright (C) vtiger.

   8     * All Rights Reserved.

   9    *

  10   ********************************************************************************/
  11  -->*}
  12  {strip}
  13  <div class='modelContainer'>
  14      <div class="modal-header">
  15          <button data-dismiss="modal" class="close" title="{vtranslate('LBL_CLOSE')}">x</button>
  16          <h3>{vtranslate('LBL_DELETE_PICKLIST_ITEMS', $QUALIFIED_MODULE)}</h3>
  17      </div>
  18      <form id="deleteItemForm" class="form-horizontal" method="post" action="index.php">
  19          <input type="hidden" name="module" value="{$MODULE}" />
  20          <input type="hidden" name="parent" value="Settings" />
  21          <input type="hidden" name="source_module" value="{$SOURCE_MODULE}" />
  22          <input type="hidden" name="action" value="SaveAjax" />
  23          <input type="hidden" name="mode" value="remove" />
  24          <input type="hidden" name="picklistName" value="{$FIELD_MODEL->get('name')}" />
  25          <div class="modal-body tabbable">
  26              <div class="control-group">
  27                  <div class="control-label">{vtranslate('LBL_ITEMS_TO_DELETE',$QUALIFIED_MODULE)}</div>
  28                  <div class="controls">
  29                      <select class="select2" multiple="" id="deleteValue" name="delete_value[]" style="min-width: 200px">
  30                          {foreach from=$SELECTED_PICKLISTFIELD_EDITABLE_VALUES key=PICKLIST_VALUE_KEY item=PICKLIST_VALUE}
  31                              <option {if in_array($PICKLIST_VALUE,$FIELD_VALUES)} selected="" {/if} value="{$PICKLIST_VALUE_KEY}">{vtranslate($PICKLIST_VALUE,$SOURCE_MODULE)}</option>
  32                          {/foreach}    
  33                      </select>    
  34                      <input id="pickListValuesCount" type="hidden" value="{count($SELECTED_PICKLISTFIELD_EDITABLE_VALUES)}" />
  35                  </div><br>
  36                  <div class="control-label">{vtranslate('LBL_REPLACE_IT_WITH',$QUALIFIED_MODULE)}</div>
  37                  <div class="controls">
  38                      <select id="replaceValue" name="replace_value" class="chzn-select" data-validation-engine="validate[required]">
  39                          {foreach from=$SELECTED_PICKLISTFIELD_EDITABLE_VALUES key=PICKLIST_VALUE_KEY item=PICKLIST_VALUE}
  40                              {if !(in_array($PICKLIST_VALUE, $FIELD_VALUES))}
  41                                  <option value="{$PICKLIST_VALUE_KEY}">{vtranslate($PICKLIST_VALUE,$SOURCE_MODULE)}</option>
  42                              {/if}
  43                          {/foreach}
  44                          {foreach from=$SELECTED_PICKLISTFIELD_NON_EDITABLE_VALUES key=PICKLIST_VALUE_KEY item=PICKLIST_VALUE}
  45                              {if !(in_array($PICKLIST_VALUE, $FIELD_VALUES))}
  46                                  <option value="{$PICKLIST_VALUE_KEY}">{vtranslate($PICKLIST_VALUE,$SOURCE_MODULE)}</option>
  47                              {/if}
  48                          {/foreach}
  49                      </select>
  50                  </div>
  51                  {if $SELECTED_PICKLISTFIELD_NON_EDITABLE_VALUES}
  52                      <br>
  53                      <div class="control-label">{vtranslate('LBL_NON_EDITABLE_PICKLIST_VALUES',$QUALIFIED_MODULE)}</div>
  54                      <div class="controls nonEditableValuesDiv">
  55                          <ul class="nonEditablePicklistValues" style="list-style-type: none;">
  56                          {foreach from=$SELECTED_PICKLISTFIELD_NON_EDITABLE_VALUES key=NON_EDITABLE_VALUE_KEY item=NON_EDITABLE_VALUE}
  57                              <li>{vtranslate($NON_EDITABLE_VALUE,$SOURCE_MODULE)}</li>
  58                          {/foreach}
  59                          </ul>
  60                      </div>
  61                  {/if}
  62              </div>
  63          </div>
  64          <div class="modal-footer">
  65          <div class=" pull-right cancelLinkContainer">
  66              <a class="cancelLink" type="reset" data-dismiss="modal">{vtranslate('LBL_CANCEL', $MODULE)}</a>
  67          </div>
  68          <button class="btn btn-danger" type="submit" name="saveButton"><strong>{vtranslate('LBL_DELETE', $MODULE)}</strong></button>
  69      </div>
  70      </form>
  71  </div>
  72  {/strip}


Generated: Fri Nov 28 20:08:37 2014 Cross-referenced by PHPXref 0.7.1