Skip to content
master.xhtml 3 KiB
Newer Older
<!DOCTYPE html>
<html lang="en"
      xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:ds="http://deltaspike.apache.org/jsf">
    <h:head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
        <title>
            <ui:insert name="title"></ui:insert>
        </title>

        <h:outputStylesheet library="css" name="bootstrap.css"></h:outputStylesheet>
        <h:outputStylesheet library="css" name="bootstrap-theme.min.css"></h:outputStylesheet>
        <h:outputStylesheet library="css" name="animation.css"></h:outputStylesheet>
        <h:outputStylesheet library="css" name="fontello.css"></h:outputStylesheet>
        <h:outputStylesheet library="css" name="style.css"></h:outputStylesheet>
        <h:outputScript library="js" name="lib/jquery-1.11.3.min.js"></h:outputScript>
        <h:outputScript library="js" name="lib/bootstrap.min.js"></h:outputScript>
        <h:outputScript library="js" name="common.js"></h:outputScript>
        <script>TSM.init('${config.restPath}', '${keepalive.windowId}');</script>
        <ui:insert name="scripts"></ui:insert>
    </h:head>

    <h:body>
        <ui:insert name="content" />
        <h:panelGroup rendered="#{view.viewId ne '/tapSchemaEditing.xhtml'}">
            <br/><br/>
        </h:panelGroup>        
        <footer class="text-center#{view.viewId eq '/tapSchemaEditing.xhtml' ? ' footer-no-margin' : '' }">
            TASMAN ${config.version}  &#8211; Powered by IA2
        </footer>

        <div class="modal fade" tabindex="-1" role="dialog" id="errorModal" data-backdrop="static">
            <div class="modal-dialog">
                <div class="modal-content">
                    <div class="modal-header">
                        <h4 class="modal-title text-danger">
                            <span class="glyphicon glyphicon-alert"></span>
                            Error
                        </h4>
                    </div>
                    <div class="modal-body">
                        <p>An error occurred. The page will be reloaded.</p>
                        <div class="alert alert-danger" role="alert">
                            <p><strong class="errorName"></strong></p>
                            <p class="errorMessage"></p>
                        </div>
                    </div>
                    <div class="modal-footer">
                        <h:form>
                            <h:commandLink class="btn btn-primary">Ok</h:commandLink>
                        </h:form>
                    </div>
                </div>
            </div>
        </div>

Sonia Zorba's avatar
Sonia Zorba committed
        <div class="loading hide">
            <div class="icon-wrapper">
                <span class="glyphicon glyphicon-refresh animate-spin"></span>
            </div>
        </div>