[ Index ]

PHP Cross Reference of vtigercrm-6.1.0

title

Body

[close]

/layouts/vlayout/modules/Vtiger/ -> TransferRecordOwnership.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 id="transferOwnershipContainer" class='modelContainer'>
  14          <div class="modal-header contentsBackground">
  15              <button data-dismiss="modal" class="close" title="{vtranslate('LBL_CLOSE')}">&times;</button>
  16              <h3 id="massEditHeader">{vtranslate('LBL_TRANSFER_OWNERSHIP', $MODULE)}</h3>
  17          </div>
  18          <form class="form-horizontal" id="changeOwner" name="changeOwner" method="post" action="index.php">
  19              <div class="modal-body tabbable">
  20                  <div class="control-group">
  21                      <div class="control-label" style="width: 50;">{vtranslate('LBL_SELECT_RELATED_MODULES',$MODULE)}</div>
  22                      <div class="controls">
  23                          <select class="select2-container columnsSelect" id="related_modules" data-validation-engine="validate[required]" data-placeholder="{vtranslate('LBL_SELECT_RELATED_MODULES',$MODULE)}" multiple="" name="related_modules[]" style="width: 350px;">
  24                              {foreach item=RELATED_MODULE from=$RELATED_MODULES}
  25                                  {if !in_array($RELATED_MODULE->get('relatedModuleName'), $SKIP_MODULES)}
  26                                      <option value="{$RELATED_MODULE->get('relatedModuleName')}">{vtranslate($RELATED_MODULE->get('relatedModuleName'), $RELATED_MODULE->get('relatedModuleName'))}</option>
  27                                  {/if}
  28                              {/foreach}
  29                          </select>
  30                      </div></br>
  31                  </div>
  32                  <div class="control-group">
  33                      <div class="control-label">{vtranslate('LBL_ASSIGNED_TO', $MODULE)}</div>
  34                      <div class="controls">
  35                          {assign var=ALL_ACTIVEUSER_LIST value=$USER_MODEL->getAccessibleUsers()}
  36                          {assign var=ALL_ACTIVEGROUP_LIST value=$USER_MODEL->getAccessibleGroups()}
  37                          {assign var=CURRENT_USER_ID value=$USER_MODEL->get('id')}
  38                          {assign var=ACCESSIBLE_USER_LIST value=$USER_MODEL->getAccessibleUsersForModule($MODULE)}
  39                          {assign var=ACCESSIBLE_GROUP_LIST value=$USER_MODEL->getAccessibleGroupForModule($MODULE)}
  40  
  41                          <select class="chzn-select" data-validation-engine="validate[ required]" name="transferOwnerId" id="transferOwnerId">
  42                              <optgroup label="{vtranslate('LBL_USERS')}">
  43                                  {foreach key=OWNER_ID item=OWNER_NAME from=$ALL_ACTIVEUSER_LIST}
  44                                      <option value="{$OWNER_ID}" data-picklistvalue= '{$OWNER_NAME}' {if $FIELD_VALUE eq $OWNER_ID} selected {/if}
  45                                  {if array_key_exists($OWNER_ID, $ACCESSIBLE_USER_LIST)} data-recordaccess=true {else} data-recordaccess=false {/if}
  46                                  data-userId="{$CURRENT_USER_ID}">
  47                                  {$OWNER_NAME}
  48                              </option>
  49                          {/foreach}
  50                      </optgroup>
  51                      <optgroup label="{vtranslate('LBL_GROUPS')}">
  52                          {foreach key=OWNER_ID item=OWNER_NAME from=$ALL_ACTIVEGROUP_LIST}
  53                              <option value="{$OWNER_ID}" data-picklistvalue= '{$OWNER_NAME}'
  54                          {if array_key_exists($OWNER_ID, $ACCESSIBLE_GROUP_LIST)} data-recordaccess=true {else} data-recordaccess=false {/if} >
  55                          {$OWNER_NAME}
  56                      </option>
  57                  {/foreach}
  58              </optgroup>
  59          </select>
  60      </div>
  61  </div>
  62  </div>
  63  {include file='ModalFooter.tpl'|@vtemplate_path:$MODULE}
  64  </form>
  65  </div>
  66  {/strip}


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