<div class="form-group3 row">
  <label for="example-text-input" class=" col-md-3 col-form-label"
    >Document</label
  >
  <div
    form-field
    class="col-md-7"
    fti="ftis['anomalie']"
    ftid="ftis['anomalie'].uid"
    map="map"
    attname="'document'"
    default=""
    uploadfile="uploadfile"
    initvalue="res['anomalie'].properties"
    res="res['anomalie'].properties"
  ></div>
</div>

<td
  ng-if="att.type == 'g2c.attachments' && res['anomalie'].properties['document']!=undefined"
>
  <!-- <div ng-repeat="item in res['anomalie'].properties['document'] | split"> -->
  <div
    ng-if="res['anomalie'].properties['document']!=null"
    ng-repeat="item in res['anomalie'].properties['document'] | split1"
  >
    <a
      ng-click="viewsattachement(item,ftis['anomalie'].uid,currentAnomalie.id )"
    >
      <label>{{ item}}</label>
      <img
        ng-if="attachmentIsImage(item)"
        ng-src="{{pictures[item]}}"
        width="120px"
        style="border:2px solid white;"
      />
    </a>
    &nbsp;
  </div>
</td>

<div class="row">
  <div class="col-xs-8"></div>
  <button
    type="button"
    class="btn btn-default"
    ng-click="updateAnomalie();loadPictures(ftis['anomalie'],currentAnomalie);"
    title="{{'common.save' | translate}}"
  >
    <i class="glyphicon glyphicon-floppy-save"></i>
  </button>

  <button
    type="button"
    class="btn btn-default"
    ng-click="removeAnomalie()"
    title="{{'common.delete' | translate}}"
  >
    <i class="glyphicon glyphicon-trash"></i>
  </button>
</div>
