Files
Babydatenbank/web/xava/errors.jsp
Socrates 9ed0f2a056 test
2020-05-26 10:29:34 +02:00

26 lines
670 B
Plaintext

<%@ include file="imports.jsp"%>
<jsp:useBean id="errors" class="org.openxava.util.Messages" scope="request"/>
<jsp:useBean id="style" class="org.openxava.web.style.Style" scope="request"/>
<%
if (errors.contains()) {
%>
<div class='<%=style.getErrorsWrapper()%>'>
<table id="<xava:id name='errors_table'/>">
<%
java.util.Iterator it = errors.getStrings(request).iterator();
while (it.hasNext()) {
%>
<tr><td class='<%=style.getErrors()%>'>
<%=style.getErrorStartDecoration()%>
<i class="mdi mdi-close" style="cursor: pointer;" onclick="$(this).parent().fadeOut()"></i>
<%=it.next()%>
<%=style.getErrorEndDecoration()%>
</td></tr>
<% } %>
</table>
</div>
<% } %>