--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ui:composition
+ xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
+ xmlns:h="http://xmlns.jcp.org/jsf/html"
+ xmlns:f="http://xmlns.jcp.org/jsf/core"
+ >
+
+ <div class="message_box_mini">
+ <div class="message_header">
+ <h:outputText value="#{msg.MESSAGE_BOX_TITLE}" />
+ </div>
+
+ <ui:fragment rendered="#{not empty message}">
+ <ui:fragment rendered="#{not empty styleClass}">
+ <div class="para">
+ <h:outputText styleClass="#{styleClass}" value="#{message}" />
+ </div>
+ </ui:fragment>
+
+ <ui:fragment rendered="#{empty styleClass}">
+ <div class="para">
+ <h:outputText styleClass="okay" value="#{message}" />
+ </div>
+ </ui:fragment>
+ </ui:fragment>
+
+ <ui:fragment rendered="#{empty message}">
+ <div class="errors para">
+ <h:outputText value="#{msg.MESSAGE_BOX_PARAMETER_MESSAGE_EMPTY}" />
+ </div>
+ </ui:fragment>
+ </div>
+</ui:composition>
<ui:include src="/WEB-INF/templates/login/user/user_menu.tpl" />
</ui:fragment>
<ui:fragment rendered="#{not userLoginController.isUserLoggedIn()}">
- <ui:include src="/WEB-INF/templates/generic/message_box.tpl">
+ <ui:include src="/WEB-INF/templates/generic/message_box_mini.tpl">
<ui:param name="message" value="#{msg.USER_NOT_LOGGED_IN}" />
<ui:param name="styleClass" value="errors" />
</ui:include>
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
- <h:panelGroup styleClass="table" layout="block">
- <div class="table_header">
+ <h:panelGroup styleClass="message_box" layout="block">
+ <div class="message_header">
<h:outputText value="#{msg.TABLE_HEADER_ERROR_USER_NOT_LOGGED_IN}" />
</div>
color: gold;
}
-.message_box {
+.message_box, .message_box_mini {
border: 1px solid #888888;
border-top-right-radius: 8px;
border-bottom-left-radius: 8px;
background-color: #f0f0fa;
+}
+
+.message_box {
width: 400px;
}
+.message_box_mini {
+ width: 160px;
+}
+
.message_header {
border-bottom: 1px solid #888888;
background-image: linear-gradient(#eeeeee, #aaaaaa);