<ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder' 
             xmlns:g='urn:import:com.google.gwt.user.client.ui'
             xmlns:b="urn:import:org.gwtbootstrap3.client.ui"
             xmlns:uf="urn:import:org.uberfire.ext.widgets.common.client.common">
  
  <ui:with field="i18n" type="org.dashbuilder.common.client.resources.i18n.DashbuilderCommonConstants"/>

  <ui:style>
    .mainPanel {
      margin-bottom: 5px;
    }
    .form {
      margin-bottom: -3px;
    }
  </ui:style>

  <g:FlowPanel ui:field="mainPanel" addStyleNames="{style.mainPanel}">
    <g:FormPanel ui:field="formPanel" addStyleNames="{style.form}">
      <b:Tooltip container="body" title="" ui:field="errorTooltip">
        <uf:FileUpload ui:field="fileUpload" name="fileUpload"/>
      </b:Tooltip>
    </g:FormPanel>

    <b:Label visible="false" ui:field="fileLabel" title="{i18n.currentFilePath}"/>
    <b:Icon type="REFRESH" spin="true" ui:field="loadingIcon"/>

  </g:FlowPanel>
  
</ui:UiBinder>