<?xml version="1.0" encoding="UTF-8"?>

<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://xmlns.jcp.org/jsf/core" xmlns:h="http://xmlns.jcp.org/jsf/html" xmlns:ui="http://xmlns.jcp.org/jsf/facelets" xmlns:p="http://primefaces.org/ui"
  xmlns:e="http://www.ivu.de/elect/tags">

  <!--@elvariable id="nlExportView" type="de.ivu.elect.presentation.wahl.exchange.AbstractNlExportArtefaktNachSystemExportstatusBulkExportView"-->
  #{nlExportView.preRenderView()}

  <e:formExport exportView="#{nlExportView}">
    <ui:define name="buttonsFirst">
      <ui:insert name="nlExportButtonsFirst" />
    </ui:define>

    <ui:define name="buttons">
      <ui:insert name="nlExportButtons" />
    </ui:define>
  </e:formExport>

  <!-- ELECTVAPP-794, ELECTVAPP-795 -->
  <e:modalDialog dialogName="RedirectToDownloads" visible="#{nlExportView.needsRedirectToDownloads}" header="#{msgs['dokument.nach.system.exportstatus.export.redirect.header']}">
    <p:panel id="ctnRedirectToDownloads">
      <h:outputText value="#{nlExportView.needsRedirectToDownloadsMessage}" styleClass="ui-dialog-message-multiline" />

      <f:facet name="footer">
        <p:commandButton id="btnRedirectToDownloads" action="#{nlExportView.redirectToDownloads}" ajax="false" immediate="true" value="#{msgs['dokument.nach.system.exportstatus.export.redirect.action.redirect']}" />

        <p:commandButton id="btnRedirectToDownloadsCancel" action="#{nlExportView.cancel}" ajax="false" immediate="true" value="#{msgs['dokument.nach.system.exportstatus.export.redirect.action.cancel']}" styleClass="ui-button--flat" />
      </f:facet>
    </p:panel>
  </e:modalDialog>
</ui:composition>
