{*+**********************************************************************************
* The contents of this file are subject to the vtiger CRM Public License Version 1.1
* ("License"); You may not use this file except in compliance with the License
* The Original Code is: vtiger CRM Open Source
* The Initial Developer of the Original Code is vtiger.
* Portions created by vtiger are Copyright (C) vtiger.
* All Rights Reserved.
************************************************************************************}
{* modules/Settings/Vtiger/views/CompanyDetails.php *}

{* START YOUR IMPLEMENTATION FROM BELOW. Use {debug} for information *}

{strip}

<select class="select2 {if $OCCUPY_COMPLETE_WIDTH} row {/if}" id="search_field_module" name="search_field_module[]" style="width: 300px;" multiple="true" placeholder="{vtranslate('LBL_SELECT_FIELD', 'CTMobileSettings')}">

	{foreach key=BLOCK_LABEL item=BLOCK_FIELDS from=$RECORD_STRUCTURE}
        <optgroup label='{vtranslate($BLOCK_LABEL, $SOURCE_MODULE)}'>
            {foreach key=FIELD_NAME item=FIELD_MODEL from=$BLOCK_FIELDS}
            	{if (!in_array($FIELD_MODEL->get('uitype'),$SKIPUITYPES))}
	                <option value="{$FIELD_NAME}" data-field-name="{$FIELD_NAME}">{vtranslate($FIELD_MODEL->get('label'), $SOURCE_MODULE)}
	                </option>
	            {/if}
            {/foreach}
        </optgroup>
    {/foreach}
</select>
           

{/strip}
