<span ng-if="dataProvider.getFieldData()[$ctrl.fieldName].file_name">
  <i class="crm-i {{ dataProvider.getFieldData()[$ctrl.fieldName].icon }}"></i>
  {{ dataProvider.getFieldData()[$ctrl.fieldName].file_name }}
  <a class="crm-hover-button" title="{{:: ts('Replace') }}" ng-click="dataProvider.getFieldData()[$ctrl.fieldName].file_name = null">
    <i class="crm-i fa-times" aria-hidden="true"></i>
  </a>
</span>
<input type="file" nv-file-select
       ng-if="!dataProvider.getFieldData()[$ctrl.fieldName].file_name"
       ng-required="$ctrl.defn.required"
       uploader="$ctrl.afFieldset.afFormCtrl.fileUploader"
       options="{crmApiParams: $ctrl.getFileUploadParams}">
