<span ng-if="dataProvider.getFieldData()[$ctrl.fieldName].name">
  <i class="crm-i {{ dataProvider.getFieldData()[$ctrl.fieldName].icon }}"></i>
  {{ dataProvider.getFieldData()[$ctrl.fieldName].name }}
  <a class="crm-hover-button" title="{{:: ts('Replace') }}" ng-click="dataProvider.getFieldData()[$ctrl.fieldName].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].name"
       ng-required="$ctrl.defn.required"
       uploader="$ctrl.afFieldset.afFormCtrl.fileUploader"
       options="{crmApiParams: $ctrl.getFileUploadParams}">
