left-side-bar.xhtml 7.85 KB
Newer Older
michael.simon's avatar
michael.simon committed
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
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
		"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
		xmlns:c="http://java.sun.com/jsp/jstl/core"
		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:p="http://primefaces.org/ui">
<head>
	<title>Left side bar</title>
</head>
<body>
	<ui:composition>
    <h:panelGroup rendered="#{! sessionManager.isLoggedIn()}">
      <div style="color: #e5e5e5;"><h:outputText value="#{messages.login}" /></div>    	
	</h:panelGroup>
      
    <h:panelGroup rendered="#{sessionManager.isLoggedIn()}">
      <div class="submenu">
	    <div class="submenu-title">#{messages.user}</div>
		<div class="submenu-content">
		  <ul>
	        <li><span class="ui-icon ui-icon-home" style="display:inline-block; vertical-align: bottom;" /><a href="#{request.contextPath}/index.xhtml">#{messages.index}</a></li>
            <li><span class="ui-icon ui-icon-star" style="display:inline-block; vertical-align: bottom;" />
	    	  <h:link outcome="#{request.contextPath}/user/index.xhtml" value="#{messages.user_properties}" />
			</li>
28
29
30
31
32
			<h:panelGroup rendered="#{authorizationBean.appConfig.getConfigValue('show_user_attribute_source').equalsIgnoreCase('true')}">
	            <li><span class="ui-icon ui-icon-suitcase" style="display:inline-block; vertical-align: bottom;" />
		    	  <h:link outcome="#{request.contextPath}/user/attribute-sources.xhtml" value="#{messages.my_attribute_sources}" />
				</li>
			</h:panelGroup>				
michael.simon's avatar
michael.simon committed
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
          </ul>
        </div>
      </div>
	
      <ui:repeat var="registry" value="#{authorizationBean.userRegistryList}">
       <div class="submenu">
        <div class="submenu-title">#{registry.service.name}</div>
        <div class="submenu-content">
		  <div>
		    <ul>
	          <li><span class="ui-icon ui-icon-script" style="display:inline-block; vertical-align: bottom;" />
	    	    <h:link outcome="/service/index.xhtml" value="#{messages.service_desc}">
    	        	<f:param name="serviceId" value="#{registry.service.id}" />
	    	    </h:link>
			  </li>
	          <li>
	              <span class="ui-icon ui-icon-link" style="display:inline-block; vertical-align: bottom;" />
    	          <h:link outcome="/service/registry-detail.xhtml" value="#{messages.registry_details}">
    	        	<f:param name="regId" value="#{registry.id}" />
    	          </h:link>
	          </li>
	          <h:panelGroup rendered="#{registry.registryStatus == 'ACTIVE' and authorizationBean.isPasswordCapable(registry.service)}">
	            <li>
	              <span class="ui-icon ui-icon-locked" style="display:inline-block; vertical-align: bottom;" />
    	          <h:link outcome="/service/set-password.xhtml" value="#{messages.set_password}">
    	        	<f:param name="registryId" value="#{registry.id}" />
    	          </h:link>
	            </li>
   	          </h:panelGroup>
            </ul>
          </div>
        </div>
       </div>
	  </ui:repeat>

      <ui:repeat var="service" value="#{authorizationBean.unregisteredServiceList}">
       <div class="submenu">
        <div class="submenu-title">#{service.name}</div>
        <div class="submenu-content">
		  <div>
		    <ul>
	          <li><span class="ui-icon ui-icon-script" style="display:inline-block; vertical-align: bottom;" />
	    	    <h:link outcome="/service/index.xhtml" value="#{messages.service_desc}">
	   	        	<f:param name="serviceId" value="#{service.id}" />
	    	    </h:link>
			  </li>
            </ul>
          </div>
        </div>
       </div>
	  </ui:repeat>

85
      <ui:repeat var="service" value="#{authorizationBean.serviceAdminList}">
michael.simon's avatar
michael.simon committed
86
       <div class="submenu">
87
        <div class="submenu-title">#{service.name} Admin</div>
michael.simon's avatar
michael.simon committed
88
89
90
91
92
        <div class="submenu-content">
		  <div>
		    <ul>
	          <li><span class="ui-icon ui-icon-carat-1-e" style="display:inline-block; vertical-align: bottom;" />
    	        <h:link outcome="/service-admin/index.xhtml" value="#{messages.service_props}">
93
    	        	<f:param name="serviceId" value="#{service.id}" />
michael.simon's avatar
michael.simon committed
94
95
96
97
    	        </h:link>
			  </li>
	          <li><span class="ui-icon ui-icon-carat-1-e" style="display:inline-block; vertical-align: bottom;" />
    	        <h:link outcome="/service-admin/list-service-users.xhtml" value="#{messages.service_users}">
98
    	        	<f:param name="serviceId" value="#{service.id}" />
99
100
101
102
    	        </h:link>
	          </li>
	          <li><span class="ui-icon ui-icon-carat-1-e" style="display:inline-block; vertical-align: bottom;" />
    	        <h:link outcome="/service-admin/list-service-users-for-depro.xhtml" value="#{messages.service_users_depro}">
103
    	        	<f:param name="serviceId" value="#{service.id}" />
michael.simon's avatar
michael.simon committed
104
105
106
107
    	        </h:link>
	          </li>
	          <li><span class="ui-icon ui-icon-signal" style="display:inline-block; vertical-align: bottom;" />
    	        <h:link outcome="/service-admin/service-stats.xhtml" value="#{messages.statistics}">
108
    	        	<f:param name="serviceId" value="#{service.id}" />
michael.simon's avatar
michael.simon committed
109
110
111
112
113
114
115
    	        </h:link>
	          </li>
            </ul>
          </div>
        </div>
       </div>
	  </ui:repeat>
116

117
      <ui:repeat var="service" value="#{authorizationBean.serviceHotlineList}">
michael.simon's avatar
michael.simon committed
118
       <div class="submenu">
119
        <div class="submenu-title">#{service.name} Hotline</div>
michael.simon's avatar
michael.simon committed
120
121
122
123
124
        <div class="submenu-content">
		  <div>
		    <ul>
	          <li><span class="ui-icon ui-icon-carat-1-e" style="display:inline-block; vertical-align: bottom;" />
    	        <h:link outcome="/service-admin/list-service-users.xhtml" value="#{messages.service_users}">
125
    	        	<f:param name="serviceId" value="#{service.id}" />
michael.simon's avatar
michael.simon committed
126
127
128
129
130
131
132
133
    	        </h:link>
	          </li>
            </ul>
          </div>
        </div>
       </div>
	  </ui:repeat>
	  	
134
      <ui:repeat var="serviceId" value="#{authorizationBean.serviceApproverList}">
michael.simon's avatar
michael.simon committed
135
       <div class="submenu">
136
        <div class="submenu-title">#{service.name} Approver</div>
michael.simon's avatar
michael.simon committed
137
138
139
140
141
        <div class="submenu-content">
		  <div>
		    <ul>
	          <li><span class="ui-icon ui-icon-carat-1-e" style="display:inline-block; vertical-align: bottom;" />
    	        <h:link outcome="/service-approver/index.xhtml" value="#{messages.new_approvals}">
142
    	        	<f:param name="serviceId" value="#{service.id}" />
michael.simon's avatar
michael.simon committed
143
144
145
146
147
148
149
150
    	        </h:link>
			  </li>
            </ul>
          </div>
        </div>
       </div>
	  </ui:repeat>

151
      <ui:repeat var="serviceId" value="#{authorizationBean.serviceGroupAdminList}">
michael.simon's avatar
michael.simon committed
152
       <div class="submenu">
153
        <div class="submenu-title">#{service.name} GroupAdmin</div>
michael.simon's avatar
michael.simon committed
154
155
156
157
158
        <div class="submenu-content">
		  <div>
		    <ul>
	          <li><span class="ui-icon ui-icon-carat-1-e" style="display:inline-block; vertical-align: bottom;" />
    	        <h:link outcome="/service-group-admin/index.xhtml" value="#{messages.groups}">
159
    	        	<f:param name="serviceId" value="#{service.id}" />
michael.simon's avatar
michael.simon committed
160
161
162
163
164
165
166
    	        </h:link>
			  </li>
            </ul>
          </div>
        </div>
       </div>
	  </ui:repeat>
167
	</h:panelGroup>
michael.simon's avatar
michael.simon committed
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
	
	<h:panelGroup>
		<h:form id="languageForm">
			<div class="panel" style="padding: 10px; text-align: center;">
				<p:selectOneMenu value="#{sessionManager.locale}" styleClass="language-label" panelStyleClass="language-list">
					<f:selectItem itemLabel="Browsersprache" itemValue="#{null}"/>
				    <f:selectItems value="#{localeSwitcherBean.localeList}" 
				            		var="loc" itemLabel="#{loc.displayLanguage}" itemValue="#{loc.language}"/>
				    <p:ajax oncomplete="window.location.replace(window.location.href);"/>
				</p:selectOneMenu>
			</div>
		</h:form>
	</h:panelGroup>
	 	
	</ui:composition>
</body>
</html>