{##
 # File upload template
 #}

<xlite-file-uploader inline-template {% if this.hasMultipleSelector() %}:multiple="true"{% endif %}>
  <div class="{{ this.getDivStyle() }}" data-object-id="{{ this.getObjectId() }}" v-data='{ "basePath": "{{ this.getVModel() }}" }'>
    {% if this.isRemovable() %}
      <input type="checkbox" name="{{ this.getName() }}[delete]" v-model="delete" value="1" class="input-delete" v-data='{ "delete": false }' />
    {% endif %}
    {% if this.isMultiple() %}
      <input type="hidden" name="{{ this.getName() }}[position]" v-model="position" value="{{ this.getPosition() }}" class="input-position" />
    {% endif %}
    {% if this.isTemporary() %}
      <input type="hidden" name="{{ this.getName() }}[temp_id]" v-model="temp_id" value="{{ this.object.id }}" class="input-temp-id" />
    {% endif %}
    <a href="{{ this.getLink() }}" class="link" data-toggle="dropdown">
      {{ this.getPreview()|raw }}
      <div class="icon">
        <i class="{{ this.getIconStyle() }}"></i>
      </div>
    </a>
    <ul class="dropdown-menu" role="menu">
      {{ widget_list('file-uploader.menu') }}
    </ul>
  </div>
</xlite-file-uploader>
