informative-h1.tag 1.35 KB
Newer Older
1
2
3
4
5
6
7
8
<%@ tag description="Display menu with menu items" pageEncoding="UTF-8" %>
<%@ tag body-content="empty" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="security" uri="http://www.springframework.org/security/tags" %>
<%@ taglib prefix="local" tagdir="/WEB-INF/tags" %>
<%@ taglib prefix="cms" tagdir="/WEB-INF/tags/cms" %>
<%@ attribute name="title" required="true" type="java.lang.String" %>
Matija Obreza's avatar
Matija Obreza committed
9
<%@ attribute name="titleArgument" required="false" type="java.lang.String" %>
10
11
<%@ attribute name="fancy" required="false" rtexprvalue="true" type="java.lang.Boolean" %>
<%@ attribute name="info" required="false" type="java.lang.String" %>
Matija Obreza's avatar
Matija Obreza committed
12

Matija Obreza's avatar
Matija Obreza committed
13
14
<c:if test="${fancy eq true}">
	<div class="informative-h1 green-bg row">
Matija Obreza's avatar
Matija Obreza committed
15
16
		<div class="col-md-12 col-sm-12">
			<h1>
Matija Obreza's avatar
Matija Obreza committed
17
				<spring:message code="${title}" arguments="${titleArgument}" />
Matija Obreza's avatar
Matija Obreza committed
18
			</h1>
Matija Obreza's avatar
Matija Obreza committed
19
			<c:if test="${info ne null and info ne ''}">
Matija Obreza's avatar
Matija Obreza committed
20
			<p><spring:message code="${info}" /></p>
Matija Obreza's avatar
Matija Obreza committed
21
			</c:if>
Matija Obreza's avatar
Matija Obreza committed
22
23
24
25
26
27
28
		</div>
		<%-- <div class="col-md-6 hidden-sm">
			xxxx
		</div> --%>
	</div>
</c:if>
<c:if test="${fancy eq null or not fancy or info eq null}">
Matija Obreza's avatar
Matija Obreza committed
29
30
31
	<div class="informative-h1 green-bg row">
		<div class="col-md-12 col-sm-12">
			<h1>
Matija Obreza's avatar
Matija Obreza committed
32
				<spring:message code="${title}" arguments="${titleArgument}" />
Matija Obreza's avatar
Matija Obreza committed
33
34
35
			</h1>
		</div>
	</div>
Matija Obreza's avatar
Matija Obreza committed
36
</c:if>