<div class="row">
  <dl class="dl-horizontal">
    <div class="col-sm-6" ng-if="item.id"><dt>{{ "ID" | translate }}:</dt><dd><a ng-href="#/objects/list/{{item.id}}" ng-click="(vm.okOnModal || okOnModal)()">{{item.id}}</a></dd></div>
    <div class="col-sm-6" ng-if="item.Title"><dt>{{ "TITLE" | translate }}:</dt><dd>{{item.Title}}</dd></div>
    <div class="col-sm-6" ng-if="item.First_Name"><dt>{{ "FIRSTNAME" | translate }}:</dt><dd>{{item.First_Name}}</dd></div>
    <div class="col-sm-6" ng-if="item.Last_Name"><dt>{{ "LASTNAME" | translate }}:</dt><dd>{{item.Last_Name}}</dd></div>
    <div class="col-sm-6" ng-if="item.Full_Name"><dt>{{ "FULLNAME" | translate }}:</dt><dd>{{item.Full_Name}}</dd></div>
    <div class="col-sm-6" ng-if="item.Alias"><dt>{{ "ALIAS" | translate }}:</dt><dd>{{item.Alias}}</dd></div>
    <div class="col-sm-6" ng-if="item.Gender"><dt>{{ "GENDER" | translate }}:</dt><dd>{{item.Gender}}</dd></div>
    <div class="col-sm-6" ng-if="item.POB"><dt>{{ "POB" | translate }}:</dt><dd>{{item.POB}}</dd></div>
    <div class="col-sm-6" ng-if="item.Code"><dt>{{ "CODE" | translate }}:</dt><dd>{{item.Code}}</dd></div>
    <div class="col-sm-6" ng-if="item.Country"><dt>{{ "COUNTRY" | translate }}:</dt><dd>{{item.Country}}</dd></div>
    <div class="col-sm-6" ng-if="item.Country_Of_Origin"><dt>{{ "COUNTRY_ORG" | translate }}:</dt><dd>{{item.Country_Of_Origin}}</dd></div>
    <div class="col-sm-6" ng-if="item.Country_Of_Activity"><dt>{{ "COUNTRY_ACT" | translate }}:</dt><dd>{{item.Country_Of_Activity}}</dd></div>
    <div class="col-sm-6" ng-if="item.Category"><dt>{{ "CATEGORY" | translate }}:</dt><dd>{{item.Category}}</dd></div>
    <div class="col-sm-6" ng-if="item.List"><dt>{{ "LIST" | translate }}:</dt><dd>{{item.List}}</dd></div>
    <div class="col-sm-6" ng-if="item.Additional_Information"><dt>{{ "ADDITIONAL_INFORMATION" | translate }}:</dt><dd>{{item.Additional_Information}}</dd></div>
    <div class="col-sm-6" ng-if="item.Type"><dt>{{ "TYPE" | translate }}:</dt><dd>{{item.Type}}</dd></div>
    <div class="col-sm-6" ng-if="item.Companies"><dt>{{ "COMPANIES" | translate }}:</dt><dd>{{item.Companies}}</dd></div>
    <div class="col-sm-6" ng-if="item.DOB"><dt>{{ "DOB" | translate }}:</dt><dd>{{item.DOB}}</dd></div>
    <div class="col-sm-6" ng-if="item.Case"><dt>{{ "CASE" | translate }}:</dt><dd>{{item.Case}}</dd></div>
    <div class="col-sm-6" ng-if="item.Date_Of_Information"><dt>{{ "DATE_OF_INFORMATION" | translate }}:</dt><dd>{{item.Date_Of_Information}}</dd></div>
    <div class="col-sm-6" ng-if="item.Passport_Number"><dt>{{ "PASSPORT_NUMBER" | translate }}:</dt><dd>{{item.Passport_Number}}</dd></div>
    <div class="col-sm-6" ng-if="item.Publication_Date"><dt>{{ "PUBLICATION_DATE" | translate }}:</dt><dd>{{item.Publication_Date}}</dd></div>
    <div class="col-sm-6" ng-if="item.Authority"><dt>{{ "AUTHORITY" | translate }}:</dt><dd>{{item.Authority}}</dd></div>
    <div class="col-sm-6" ng-if="item.Whitelist"><dt>{{ "WHITELIST" | translate }}:</dt><dd>{{item.Whitelist}}</dd></div>
    <div class="col-sm-6" ng-if="item.type_of_list"><dt>{{ "TYPE_OF_LIST" | translate }}:</dt><dd>{{item.type_of_list}}</dd></div>
    <div class="col-sm-6" ng-if="item.published_by"><dt>{{ "PUBLISHED_BY" | translate }}:</dt><dd>{{item.published_by}}</dd></div>
    <div class="col-sm-6" ng-if="item.editor"><dt>{{ "EDITOR" | translate }}:</dt><dd>{{item.editor}}</dd></div>
    <div class="col-sm-6" ng-if="item.age"><dt>{{ "AGE" | translate }}:</dt><dd>{{item.age}}</dd></div>
    <div class="col-sm-6" ng-if="item.address"><dt>{{ "ADDRESS" | translate }}:</dt><dd>{{item.address}}</dd></div>
    <div class="col-sm-6" ng-if="item.activity_class !== 'null'"><dt>{{ "ACTIVITY_CLASS" | translate }}:</dt><dd>{{item.activity_class}}</dd></div>
    <div class="col-sm-6" ng-if="item.no_longer_on_list"><dt>{{ "NO_LONGER_ON_LIST" | translate }}:</dt><dd>{{item.no_longer_on_list}}</dd></div>
    <div class="col-sm-6" ng-if="item.entity_type"><dt>{{ "ENTITY_TYPE" | translate }}:</dt><dd>{{item.entity_type}}</dd></div>
    <div class="col-sm-6" ng-if="item.age_date"><dt>{{ "AGE_DATE" | translate }}:</dt><dd>{{item.age_date}}</dd></div>
    <div class="col-sm-6" ng-if="item.updated"><dt>{{ "UPDATED" | translate }}:</dt><dd>{{item.updated}}</dd></div>
  </dl>
</div>

<div ng-if="item.Function">
  <h3>{{ "FUNCTIONS" | translate }}</h3>
  <table class="table table-striped">
    <thead>
      <tr>
        <th>{{ "FUNCTION" | translate }}</th>
        <th>{{ "CATEGORY" | translate }}</th>
        <th>{{ "NOT_IN_CHARGE_SINCE" | translate }}</th>
      </tr>
    </thead>
    <tbody>
      <tr ng-repeat="row in item.Function.split('; OTHER FUNCTION: ')">
        <td>{{row.split(' CATEGORY: ')[0].split(' NOT IN CHARGE SINCE: ')[0].trim()}}</td>
        <td>{{row.split(' CATEGORY: ')[1].trim()}}</td>
        <td>{{row.split(' CATEGORY: ')[0].split(' NOT IN CHARGE SINCE: ')[1].trim()}}</td>
      </tr>
    </tbody>
  </table>
</div>
