<div ng-if="!item[var]._id" class="form-group">
  <label>Carregar ficheiro</label>
  <input type="file" file-model ng-model="item.newFile[var]" class="form-control"/>
</div>
<a ng-if="!!docid" ng-href="api/document/download/{{docid}}" target="_blank">
  <span class="fa fa-download"></span> Download ficheiro
</a>
