<label>{{admin_file.title}}</label>
<div class="card.card-body uploadfile file-{{admin_file.varname}}"
     data-flow-init="{target: 'api/admin/files/' + admin_file.varname}"
     data-flow-files-submitted="$flow.upload()"
     data-flow-file-success="reload()"
     data-flow-file-single
     data-flow-drop
     extend-flow-valid-size="admin_file.size">
  <span data-ng-show="!public.node[admin_file.varname]">
    <div class="custom-file">
      <input data-ng-attr-id="customFile-{{admin_file.varname}}" class="custom-file-input" type="file" data-flow-btn />
      <label class="btn btn-sm btn-primary" data-ng-attr-for="customFile-{{admin_file.varname}}">
        <i class="fa-solid fa-upload"></i>
        <span data-translate>Upload</span>
      </label>
    </div>
  </span>
  <span data-ng-show="public.node[admin_file.varname]">
    <a class="btn btn-sm btn-primary" href="{{'s/' + admin_file.varname}}" download="{{admin_file.filename}}">
      <i class="fa-solid fa-download"></i>
      <span data-translate>Download</span>
    </a>
    <button class="btn btn-sm btn-danger" data-ng-click="delete_file('api/admin/files/' + admin_file.varname)">
      <i class="fa-solid fa-trash"></i>
      <span data-translate>Delete</span>
    </button>
  </span>
  <div data-single-error-upload></div>
</div>
