{{!--
/*
 * Your installation or use of this SugarCRM file is subject to the applicable
 * terms available at
 * http://support.sugarcrm.com/Resources/Master_Subscription_Agreements/.
 * If you do not agree to all of the applicable terms or do not have the
 * authority to bind the entity as an authorized representative, then do not
 * install or use this SugarCRM file.
 *
 * Copyright (C) SugarCRM Inc. All rights reserved.
 */
--}}
{{~#if this.def.isMultiSelect~}}
    {{#if value}}
        {{#if ellipsis}}
            <div class="ellipsis_inline" data-placement="bottom"
                 title="{{#each value}}{{#eachOptions ../items}}{{#eq key ../this}}{{#notEq @index 0}}, {{/notEq}}{{value}}{{/eq}}{{/eachOptions}}{{/each}}">
        {{/if}}
        {{#each value}}{{#eachOptions ../items}}{{#eq key ../this}}{{#notEq @index 0}}, {{/notEq}}{{value}}{{/eq}}{{/eachOptions}}{{/each}}
        {{#if ellipsis}}
            </div>
        {{/if}}
    {{/if}}
{{else~}}
    {{#if value~}}
        {{#eachOptions items~}}
            {{#eq this.key ../value~}}
                {{#if ../../ellipsis~}}
                    <div class="ellipsis_inline" data-placement="bottom" title="{{value}}">
                {{/if~}}
                {{value~}}
                {{#if ../ellipsis~}}
                    </div>
                {{/if~}}
            {{/eq~}}
        {{/eachOptions~}}
    {{/if~}}
{{/if~}}
