<div class="dict-validation-preview-container">
  <div class="preview" id="dict-validation-preview">
    <embed ng-src="{{previewAttachment.src}}" type="application/pdf" width="100%" height="{{previewHeight}}"/>
  </div>
  <div class="footer">
    <div class="select-row">
      <div>
        <div>
          <span translate>dict.selectDoc</span>
        </div>
        <select
          class="form-control"
          ng-options="attachment as attachment for attachment in previewAttachmentNames"
          ng-model="previewAttachment.name"
          ng-change="onValidDocPreviewChange(null)"
        ></select>
      </div>
      <div>
        <span translate>dict.numFile</span>
        <span>{{selectedDocument.properties.numconsultationchantier}}</span>
      </div>
    </div>
    <div class="buttons">
      <button type="button" class="btn btn-default" ng-click="deleteDraft(true, true);"
        ng-disabled="previewIsWorking">
        {{'dict.dismiss' | translate}}
      </button>
      <button type="button" class="btn btn-primary" ng-click="toggleValidateDocument(selectedDocument, true, true, true);"
        ng-disabled="previewIsWorking">
        {{'common.validate' | translate}}
      </button>
      <button
        type="button"
        class="btn btn-default"
        ng-click="clearToValidAttachementPreview()"
        title="{{'dict.close' | translate}}"
      >{{'dict.quit' | translate}}
      </button>
    </div>
  </div>
</div>


