<div ng-controller="Tasks.ParentInfoController">
    <div class="clearfix" ng-show="'CASE_FILE' == objectInfo.parentObjectType">
        <div class="row">
            <div class="col-xs-6">
                <h4><a ng-click="onClickTitle()">{{parentCaseInfo.title || 'common.value.unknown' | translate}}</a>
                    ({{parentCaseInfo.status}}) </h4></div>
            <div class="col-xs-6  text-right">
                <h4>
                    <span>{{parentCaseInfo.caseNumber || 'common.value.unknown' | translate}}</span>
                </h4>
            </div>
        </div>
        <div class="row">
            <div class="col-xs-12 col-md-4">
                <div class="h4 font-bold">{{parentCaseInfo.caseType | translateData: 'core.lookups.categories' : lang
                    || 'common.value.unknown' | translate}}
                </div>
                <small class="text-muted">
                    <span translate>tasks.comp.parentinfo.case.subjectType.label</span>
                </small>
            </div>
            <div class="col-xs-12 col-md-4">
                <div class="h4 font-bold">{{parentCaseInfo.created | date: ('common.defaultDateTimeUIFormat' | translate) }}</div>
                <small class="text-muted">
                    <span translate>tasks.comp.parentinfo.case.incidentDate.label</span>
                </small>
            </div>
            <div class="col-xs-12 col-md-4">
                <div class="h4 font-bold">{{parentCaseInfo.priority | translateData: 'core.lookups.priorities' : lang
                    || 'common.value.unknown' | translate}}
                </div>
                <small class="text-muted">
                    <span translate>tasks.comp.parentinfo.case.priority.label</span>
                </small>
            </div>
        </div>
        <div class="row">
            <div class="col-xs-12 col-md-4">
                <div class="h4 font-bold">{{assignee | mapKeyValue: assignableUsers:'object_id_s':'name' ||
                    'Unknown'}}
                </div>
                <small class="text-muted">
                    <span translate>tasks.comp.parentinfo.case.assignee.label</span>
                </small>
            </div>
            <div class="col-xs-12 col-md-4">
                <div class="h4 font-bold">{{owningGroup || 'common.value.unknown' | translate}}</div>
                <small class="text-muted">
                    <span translate>tasks.comp.parentinfo.case.owningGroup.label</span>
                </small>
            </div>
        </div>
    </div>

    <div class="clearfix" ng-show="'CONSULTATION' == objectInfo.parentObjectType">
        <div class="row">
            <div class="col-xs-6">
                <h4><a ng-click="onClickTitle()">{{parentConsultationInfo.title || 'common.value.unknown' | translate}}</a>
                    ({{parentConsultationInfo.status}}) </h4></div>
            <div class="col-xs-6  text-right">
                <h4>
                    <span>{{parentConsultationInfo.consultationNumber || 'common.value.unknown' | translate}}</span>
                </h4>
            </div>
        </div>
        <div class="row">
            <div class="col-xs-12 col-md-4">
                <div class="h4 font-bold">{{parentConsultationInfo.consultationType | translateData: 'core.lookups.categories' : lang
                    || 'common.value.unknown' | translate}}
                </div>
                <small class="text-muted">
                    <span translate>tasks.comp.parentinfo.consultation.subjectType.label</span>
                </small>
            </div>
            <div class="col-xs-12 col-md-4">
                <div class="h4 font-bold">{{parentConsultationInfo.created | date: ('common.defaultDateTimeUIFormat' | translate) }}</div>
                <small class="text-muted">
                    <span translate>tasks.comp.parentinfo.consultation.incidentDate.label</span>
                </small>
            </div>
            <div class="col-xs-12 col-md-4">
                <div class="h4 font-bold">{{parentConsultationInfo.priority | translateData: 'core.lookups.priorities' : lang
                    || 'common.value.unknown' | translate}}
                </div>
                <small class="text-muted">
                    <span translate>tasks.comp.parentinfo.consultation.priority.label</span>
                </small>
            </div>
        </div>
        <div class="row">
            <div class="col-xs-12 col-md-4">
                <div class="h4 font-bold">{{assignee | mapKeyValue: assignableUsers:'object_id_s':'name' ||
                    'Unknown'}}
                </div>
                <small class="text-muted">
                    <span translate>tasks.comp.parentinfo.consultation.assignee.label</span>
                </small>
            </div>
            <div class="col-xs-12 col-md-4">
                <div class="h4 font-bold">{{owningGroup || 'common.value.unknown' | translate}}</div>
                <small class="text-muted">
                    <span translate>tasks.comp.parentinfo.consultation.owningGroup.label</span>
                </small>
            </div>
        </div>
    </div>

    <div class="clearfix" ng-show="'COMPLAINT' == objectInfo.parentObjectType">
        <div class="row">
            <div class="col-xs-6">
                <h4><a ng-click="onClickTitle()">{{parentComplaintInfo.complaintTitle || 'common.value.unknown' | translate}}</a>
                    ({{parentComplaintInfo.status}}) </h4>
            </div>
            <div class="col-xs-6  text-right">
                <h4>{{parentComplaintInfo.complaintNumber}}</h4>
            </div>
        </div>
        <div class="row">
            <div class="col-xs-12 col-md-4">
                <div class="h4 font-bold">{{parentComplaintInfo.complaintType || 'common.value.unknown' | translate}}</div>
                <small class="text-muted">
                    <span translate>tasks.comp.parentinfo.complaint.subjectType.label</span>
                </small>
            </div>
            <div class="col-xs-12 col-md-4">
                <div class="h4 font-bold">{{parentComplaintInfo.incidentDate | date: ('common.defaultDateTimeUIFormat' | translate) }}</div>
                <small class="text-muted">
                    <span translate>tasks.comp.parentinfo.complaint.incidentDate.label</span>
                </small>
            </div>
            <div class="col-xs-12 col-md-4">
                <div class="h4 font-bold">{{parentComplaintInfo.priority || 'common.value.unknown' | translate}}</div>
                <small class="text-muted">
                    <span translate>tasks.comp.parentinfo.complaint.priority.label</span>
                </small>
            </div>
        </div>
        <div class="row">
            <div class="col-xs-12 col-md-4">
                <div class="h4 font-bold">{{assignee || 'common.value.unknown' | translate}}</div>
                <small class="text-muted">
                    <span translate>tasks.comp.parentinfo.complaint.assignee.label</span>
                </small>
            </div>
            <div class="col-xs-12 col-md-4">
                <div class="h4 font-bold">{{owningGroup || 'common.value.unknown' | translate}}</div>
                <small class="text-muted">
                    <span translate>tasks.comp.parentinfo.complaint.owningGroup.label</span>
                </small>
            </div>
        </div>
    </div>
    <div class="clearfix" ng-show="'COSTSHEET' == objectInfo.parentObjectType">
        <div class="row">
            <div class="col-xs-12">
                <h4><a ng-click="onClickTitle()">{{parentCostsheetInfo.title || 'common.value.unknown' | translate}}</a>
                    ({{parentCostsheetInfo.status}}) </h4>
            </div>
        </div>
        <div class="row">
            <div class="col-xs-12 col-md-6">
                <h4 class="font-bold"><small class="text-muted"><span translate>tasks.comp.parentinfo.costsheet.approver.label</span>
                </small> {{costsheetApprover || 'common.value.unknown' | translate}}</h4>
            </div>
        </div>
    </div>

    <div class="clearfix" ng-show="'TIMESHEET' == objectInfo.parentObjectType">
        <div class="row">
            <div class="col-xs-6">
                <h4><a ng-click="onClickTitle()">{{parentTimesheetInfo.title || 'common.value.unknown' | translate}}</a>
                    ({{parentTimesheetInfo.status}}) </h4>
            </div>
        </div>
        <div class="row">
            <div class="col-xs-12 col-md-6">
                <h4 class="font-bold"><small class="text-muted"><span translate>tasks.comp.parentinfo.timesheet.approver.label</span>
                </small> {{timesheetApprover || 'common.value.unknown' | translate}}</h4>
            </div>
        </div>
    </div>
</div></div>
