<?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:ui="http://xmlns.jcp.org/jsf/facelets" xmlns:h="http://xmlns.jcp.org/jsf/html" xmlns:p="http://primefaces.org/ui"
    xmlns:pe="http://primefaces.org/ui/extensions" xmlns:e="http://www.ivu.de/elect/tags" xmlns:c="http://xmlns.jcp.org/jsp/jstl/core">

    <!--@elvariable id="msgs" type="de.ivu.elect.business.lokalisierung.control.LokalisierungResourceBundle"-->

    <e:form id="frmVirusScanStatus" rendered="#{virusScanTestView.virusScanPossible}" styleClass="interface-status-test">
        <e:outputFormSeparator value="#{msgs['virus.scan.status']}" />

        <e:outputPanel layout="inline" deferred="true">
            <e:inputColor id="inVirusScanKonfiguriert" disabled="true" value="#{msgs['interfaces.status.test.konfiguriert.color.'.concat(virusScanTestView.virusScanAvailable)]}"
                    title="#{msgs['virus.scan.test.konfiguriert.'.concat(virusScanTestView.virusScanAvailable)]}" label="#{msgs['virus.scan.test.konfiguriert']}" />

            <p:outputPanel rendered="#{virusScanTestView.virusScanAvailable}">

                <e:inputColor id="inVirusScanErreichbar" disabled="true" value="#{msgs['interfaces.status.test.erreichbarkeit.color.'.concat(virusScanTestView.virusScannerWorking)]}"
                        title="#{msgs['virus.scan.test.erreichbar.'.concat(virusScanTestView.virusScannerWorking)]}" label="#{msgs['virus.scan.test.erreichbar']}"/>

                <ui:decorate template="/WEB-INF/templates/edit.xhtml">
                    <ui:param name="id" value="ctnProgressMessages" />
                    <ui:param name="label" value="#{msgs['virus.scan.test.progressMessages.label']}" />
                    <ui:param name="disabled" value="true" />

                    <ui:define name="inputComponent">
                        <ui:fragment id="#{id}">
                            <ui:fragment rendered="#{not empty virusScanTestView.messages}">
                                <ul class="ui-outputlist">
                                    <ui:repeat value="#{virusScanTestView.messages}" var="progressMessage">
                                        <li><h:outputText value="#{progressMessage}" /></li>
                                    </ui:repeat>
                                </ul>
                            </ui:fragment>

                            <h:outputText rendered="#{empty virusScanTestView.messages}" value="#{msgs['component.data.table.empty.message']}" />
                        </ui:fragment>
                    </ui:define>
                </ui:decorate>

            </p:outputPanel>
        </e:outputPanel>
    </e:form>
</ui:composition>
