summaryrefslogtreecommitdiffstats
blob: c4f19114387c970e28924875a2b068e52c9f386e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<f:view xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ice="http://www.icesoft.com/icefaces/component"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:c="http://java.sun.com/jstl/core"
	xmlns:fn="http://java.sun.com/jsp/jstl/functions"
	xmlns:pc="http://www.sungard.de/carnot/web/portal-plugin/portalcommon">

<ice:outputDeclaration doctypeRoot="HTML"
	doctypePublic="-//W3C//DTD HTML 4.01 Transitional//EN"
	doctypeSystem="http://www.w3.org/TR/html4/loose.dtd" />

<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></meta>

		<script type="text/javascript"
			src="#{facesContext.externalContext.requestContextPath}/plugins/processportal/IppProcessPortal.js" />

		<ice:outputStyle href="/plugins/common/css/nirvanaRime.css" />
		<ice:outputStyle href="/plugins/common/css/nirvanaRime-override.css" />
		<ice:outputStyle href="/plugins/common/css/nirvanaPortal.css" />
		<ice:outputStyle href="/plugins/common/css/portalComponentStyle.css" />
	
		<c:forEach items="#{ippPortalApp.skinFiles}" var="skinFile">
			<ice:outputStyle href="#{skinFile}" />
		</c:forEach>
		
		<script>
			function windowLoaded()
			{
				var iFrameId = #{activityDetailsBean.caseIframePopupId};

				if (iFrameId != '')
				{
					var advanceArgs = #{activityDetailsBean.caseIframePopupArgs};
					advanceArgs.width = document.documentElement.scrollWidth + 20;
					advanceArgs.height = document.documentElement.scrollHeight;

					var firefox = false;
					if (parent.BridgeUtils)
					{
						firefox = parent.BridgeUtils.Util.isFF();
					}
					else
					{
						firefox = parent.ippPortalMain.InfinityBpm.Core.isFF();
					}

					if (firefox)
					{
						advanceArgs.anchorYAdjustment = advanceArgs.anchorYAdjustment - 17; 
					}

					if (parent.BridgeUtils)
					{
						parent.BridgeUtils.FrameManager.resizeAndReposition(iFrameId, advanceArgs);
					}
					else
					{
						parent.ippPortalMain.InfinityBpm.ProcessPortal.resizeAndRepositionContentFrame(iFrameId, advanceArgs);
					}
				}
			}
			
			function closeCaseIframe()
			{
				window.setTimeout(function() {parent.BridgeUtils.View.syncActiveView();},200);
			}
			
		</script>
	</head>
	<body style="width: 100%; height:100%; background-color: #F7F7F7;" onLoad="if(windowLoaded){windowLoaded()}">
		<ice:form>
		<ice:panelGroup style="background-color: #EAEAEA;">
			<ice:panelGrid columns="1">
				<!-- Added to give same spacing -->
				<ice:commandLink styleClass="action-link"
					actionListener="#{activityDetailsBean.openAttachToCase}" immediate="true" onclick="closeCaseIframe();">
					<pc:automationTag
						value="auto-PP-ActivityPnl-ToolbarCase-AttachCase" />
					<ice:panelGrid columns="2" style="margin-left:2px;">
						<ice:outputText style="white-space: nowrap;"
							value="#{views_common_msgPropsBean['views.createCase.menubar.attachToCase']}" />
					</ice:panelGrid>
				</ice:commandLink>
				<!-- Create Case without permission -->
				<ice:panelGrid columns="1" style="margin-left:2px;" 
					rendered="#{!activityDetailsBean.enableCreateCase}">
					<ice:outputText
						style="white-space: nowrap;color: #B9B5AE !important;"
						value="#{views_common_msgPropsBean['views.createCase.menubar.createCase']}" />
				</ice:panelGrid>
				<!-- Create Case with permission -->
				<ice:commandLink styleClass="action-link"
					actionListener="#{activityDetailsBean.openCreateCase}"
					rendered="#{activityDetailsBean.enableCreateCase}" immediate="true" onclick="closeCaseIframe();">
					<pc:automationTag
						value="auto-PP-ActivityPnl-ToolbarCase-CreateCase" />
					<ice:panelGrid columns="1" style="margin-left:2px;">
						<ice:outputText style="white-space: nowrap;"
							value="#{views_common_msgPropsBean['views.createCase.menubar.createCase']}" />
					</ice:panelGrid>
				</ice:commandLink>
			</ice:panelGrid>
		</ice:panelGroup>
	</ice:form>
	</body>
</html>
</f:view>