YetiForceCompany/YetiForceCRM

View on GitHub
layouts/basic/modules/Vtiger/inventoryfields/EditViewValue.tpl

Summary

Maintainability
Test Coverage
{*<!-- {[The file is published on the basis of YetiForce Public License 6.5 that can be found in the following directory: licenses/LicenseEN.txt or yetiforce.com]} -->*}
{strip}
    <!-- tpl-Base-inventoryfields-EditViewValue -->
    {assign var=VALUE value=$FIELD->getValue($ITEM_VALUE)}
    {assign var="INPUT_TYPE" value='text'}
    {if $FIELD->isReadOnly() || $FIELD->getMapDetail($REFERENCE_MODULE)}
        {assign var="INPUT_TYPE" value='hidden'}
        <span class="{$FIELD->getColumnName()}Text valueText">
            {$FIELD->getDisplayValue($VALUE, $ITEM_DATA)}
        </span>
    {/if}
    <input name="inventory[{$ROW_NO}][{$FIELD->getColumnName()}]" type="{$INPUT_TYPE}" class="form-control form-control-sm {$FIELD->getColumnName()} valueVal" data-validation-engine="validate[maxSize[{$FIELD->getRangeValues()}]]" value="{$FIELD->getEditValue($VALUE)}" {if $FIELD->isReadOnly()}readonly="readonly" {/if} />
    <!-- /tpl-Base-inventoryfields-EditViewValue -->
{/strip}