{{!--
/*
 * 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.
 */
--}}

<div class="tab-pane active">
    {{#if collection.length}}
        <ul class="unstyled listed">
            {{#each collection.models}}
                <li>
                    {{#if ../../row_actions}}
                        <div class="actions pull-right">
                            {{#each ../../row_actions}}
                                {{field ../../../this model=../this}}
                            {{/each}}
                        </div>
                    {{/if}}
                    <p  style="padding-left: 0px;">
                        {{#if attributes.assigned_user_id}}
                        {{else}}
                            <span class="fa-stack pull-left">
                                <i class="fa fa-user"></i>
                                <i class="fa fa-question-circle"></i>
                            </span>
                        {{/if}}
                        <a href="#{{buildRoute model=this}}">{{fieldValue this "name"}}</a>
                    </p>
                    {{#if ../overdueBadge}}
                        {{#with ../../overdueBadge}}
                            {{field ../../../this model=../../this template='detail'}}
                        {{/with}}
                    {{/if}}
                    <div class="details"   style="padding-left: 0px;">
                        {{fieldValue this "prj_module_name"}}&#44;&nbsp;
                        {{#if attributes.assigned_user_id}}
                            <a href="#{{buildRoute module="Employees" id=attributes.assigned_user_id action="detail"}}">
                                {{fieldValue this "assigned_user_name"}}
                            </a>
                        {{else}}
                            {{str "LBL_UNASSIGNED" this.module}}
                        {{/if}}
                        {{#if useRelativeTime}}
                            &nbsp;created
                            <date class="date">{{relativeTime attributes.record_date}}</date>
                        {{else}}
                            &nbsp;created on
                            <date class="date">{{formatDate attributes.record_date}}</date>
                        {{/if}}
                    </div>
                </li>
            {{/each}}
        </ul>
    {{else}}
        <div class="block-footer">{{#if ../collection.dataFetched}}{{str "LBL_NO_DATA_AVAILABLE" this.module}}{{else}}{{str "LBL_LOADING" this.module}}{{/if}}</div>
    {{/if}}
</div>
