PATH:
home
/
letacommog
/
crmleta
/
layouts
/
v7
/
modules
/
Vtiger
/
uitypes
{*<!-- /********************************************************************************* ** The contents of this file are subject to the vtiger CRM Public License Version 1.0 * ("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. * ********************************************************************************/ -->*} {strip} {assign var="FIELD_INFO" value=$FIELD_MODEL->getFieldInfo()} {assign var="SPECIAL_VALIDATOR" value=$FIELD_MODEL->getValidator()} {if (!$FIELD_NAME)} {assign var="FIELD_NAME" value=$FIELD_MODEL->getFieldName()} {/if} {if $FIELD_MODEL->get('uitype') eq '71'} <div class="input-group"> <span class="input-group-addon">{$USER_MODEL->get('currency_symbol')}</span> <input id="{$MODULE}_editView_fieldName_{$FIELD_NAME}" type="text" class="inputElement currencyField" name="{$FIELD_NAME}" value="{$FIELD_MODEL->getEditViewDisplayValue($FIELD_MODEL->get('fieldvalue'))}" {if !empty($SPECIAL_VALIDATOR)}data-validator='{Zend_Json::encode($SPECIAL_VALIDATOR)}'{/if} {if $FIELD_INFO["mandatory"] eq true} data-rule-required = "true" {/if} data-rule-currency='true' {if count($FIELD_INFO['validator'])} data-specific-rules='{ZEND_JSON::encode($FIELD_INFO["validator"])}' {/if} /> </div> {else if ($FIELD_MODEL->get('uitype') eq '72') && ($FIELD_NAME eq 'unit_price')} <div class="input-group" style="float:none;"> <span class="input-group-addon" id="baseCurrencySymbol">{$BASE_CURRENCY_SYMBOL}</span> <input id="{$MODULE}-editview-fieldname-{$FIELD_NAME}" type="text" class="inputElement unitPrice currencyField" name="{$FIELD_NAME}" value="{$FIELD_MODEL->getDisplayValue($FIELD_MODEL->get('fieldvalue'))}" {if !empty($SPECIAL_VALIDATOR)}data-validator='{Zend_Json::encode($SPECIAL_VALIDATOR)}'{/if} data-decimal-separator='{$USER_MODEL->get('currency_decimal_separator')}' data-group-separator='{$USER_MODEL->get('currency_grouping_separator')}' data-number-of-decimal-places='{$USER_MODEL->get('no_of_currency_decimals')}' {if $FIELD_INFO["mandatory"] eq true} data-rule-required = "true" {/if} data-rule-currency='true' {if count($FIELD_INFO['validator'])} data-specific-rules='{ZEND_JSON::encode($FIELD_INFO["validator"])}' {/if} /> <input type="hidden" name="base_currency" value="{$BASE_CURRENCY_NAME}"> <input type="hidden" name="cur_{$BASE_CURRENCY_ID}_check" value="on"> <input type="hidden" id="requstedUnitPrice" name="{$BASE_CURRENCY_NAME}" value=""> </div> {if $smarty.request.view eq 'Edit'} <div class="clearfix"> <a id="moreCurrencies" class="span cursorPointer">{vtranslate('LBL_MORE_CURRENCIES', $MODULE)}>></a> <span id="moreCurrenciesContainer" class="hide"></span> </div> {/if} {else} <div class="input-group"> <span class="input-group-addon" id="basic-addon1">{$USER_MODEL->get('currency_symbol')}</span> <input type="text" class="input-lg currencyField" name="{$FIELD_NAME}" value="{$FIELD_MODEL->getEditViewDisplayValue($FIELD_MODEL->get('fieldvalue'))}" {if !empty($SPECIAL_VALIDATOR)}data-validator={Zend_Json::encode($SPECIAL_VALIDATOR)}{/if} {if $FIELD_INFO["mandatory"] eq true} data-rule-required="true" {/if} data-rule-currency='true' {if count($FIELD_INFO['validator'])} data-specific-rules='{ZEND_JSON::encode($FIELD_INFO["validator"])}' {/if} /> </div> {/if} {* TODO - UI Type 72 needs to be handled. Multi-currency support also needs to be handled *} {/strip}
[+]
..
[-] Picklist.tpl
[edit]
[-] OwnerFieldSearchView.tpl
[edit]
[-] MultiPicklist.tpl
[edit]
[-] Theme.tpl
[edit]
[-] RecurrenceDetailView.tpl
[edit]
[-] DateTime.tpl
[edit]
[-] Boolean.tpl
[edit]
[-] FieldSearchView.tpl
[edit]
[-] Phone.tpl
[edit]
[-] Recurrence.tpl
[edit]
[-] Reference.tpl
[edit]
[-] Email.tpl
[edit]
[-] DocumentsFileUpload.tpl
[edit]
[-] PhoneDetailView.tpl
[edit]
[-] DocumentsFolder.tpl
[edit]
[-] StringDetailView.tpl
[edit]
[-] Date.tpl
[edit]
[-] Salutation.tpl
[edit]
[-] BooleanFieldSearchView.tpl
[edit]
[-] Owner.tpl
[edit]
[-] Time.tpl
[edit]
[-] Reminder.tpl
[edit]
[-] MultiSelectFieldSearchView.tpl
[edit]
[-] DateFieldSearchView.tpl
[edit]
[-] ImageDetailView.tpl
[edit]
[-] Percentage.tpl
[edit]
[-] MultiOwner.tpl
[edit]
[-] File.tpl
[edit]
[-] Url.tpl
[edit]
[-] CurrencyListFieldSearchView.tpl
[edit]
[-] FileLocationType.tpl
[edit]
[-] String.tpl
[edit]
[-] OwnerGroup.tpl
[edit]
[-] Image.tpl
[edit]
[-] Text.tpl
[edit]
[-] SalutationDetailView.tpl
[edit]
[-] UserRole.tpl
[edit]
[-] Currency.tpl
[edit]
[-] ProductTax.tpl
[edit]
[-] Number.tpl
[edit]
[-] PickListFieldSearchView.tpl
[edit]
[-] TimeFieldSearchView.tpl
[edit]
[-] DocumentsFolderFieldSearchView.tpl
[edit]
[-] Password.tpl
[edit]
[-] OwnerGroupFieldSearchView.tpl
[edit]
[-] FilelocationtypeFieldSearchView.tpl
[edit]
[-] CurrencyList.tpl
[edit]
[-] ReminderDetailView.tpl
[edit]