<div>
  <span class="crm-export-row-handle crm-i fa-arrows" aria-hidden="true"></span>
  <input class="big" crm-ui-select="{data: getFields, allowClear: true, placeholder: 'clear'}" ng-model="field.select" />
</div>
<div ng-if="fields[field.select].relationship_type_id">
  <input class="big" crm-ui-select="{data: getRelatedFields(fields[field.select].related_contact_type), allowClear: true, placeholder: ts('Choose field')}" ng-model="field.name" />
</div>
<div>
  <span ng-if="field.name && fields[field.name