1 | <%@ page import="com.ether.WebException" %> |
---|
2 | <%@ page import="com.ether.user.UserRole" %> |
---|
3 | <%@ page import="com.ether.user.UserState" %> |
---|
4 | <%@ page language="java" contentType="text/html; charset=UTF-8" %> |
---|
5 | <%@ taglib uri="/WEB-INF/tlds/struts-tiles.tld" prefix="tiles" %> |
---|
6 | <%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %> |
---|
7 | <%@ taglib prefix="ether" tagdir="/WEB-INF/tags" %> |
---|
8 | |
---|
9 | <tiles:insert page="/resources/templates/templateBackoffice.jsp" flush="true"> |
---|
10 | |
---|
11 | <tiles:put name="insertCss" type="string"> |
---|
12 | <ether:htmlCss cssFile="select"/> |
---|
13 | </tiles:put> |
---|
14 | |
---|
15 | <tiles:put name="insertJsOrJsp" type="string"> |
---|
16 | <ether:htmlJs jsFile="classesForJQuery/etherClasses"/> |
---|
17 | <ether:htmlJsp jspFile="user-script"/> |
---|
18 | <ether:htmlJs jsFile="classesForJQuery/Loading"/> |
---|
19 | <ether:htmlJs jsFile="classesForJQuery/Select"/> |
---|
20 | <ether:htmlJs jsFile="calendar/anytime"/> |
---|
21 | </tiles:put> |
---|
22 | |
---|
23 | |
---|
24 | <tiles:put name="title" type="string"><bean:message key="app.title"/> - <bean:message key="bo.user"/></tiles:put> |
---|
25 | |
---|
26 | |
---|
27 | <%-- ****************** CONTENT ****************** --%> |
---|
28 | <tiles:put name="bodytitle" type="string"><bean:message key="bo.user"/></tiles:put> |
---|
29 | |
---|
30 | <tiles:put name="body" type="string"> |
---|
31 | <div id="messages"><bean:message key="bo.user.waitinglist"/> : <BR/><BR/></div> |
---|
32 | |
---|
33 | <div id="generalContainerWaitingUsers"> |
---|
34 | <table class="roundTable" border="1"> |
---|
35 | <tr> |
---|
36 | <th><bean:message key="bo.id"/></th> |
---|
37 | <th><bean:message key="bo.user.lastName"/></th> |
---|
38 | <th><bean:message key="bo.user.firstName"/></th> |
---|
39 | <th><bean:message key="bo.user.email"/></th> |
---|
40 | <th><bean:message key="bo.user.role"/></th> |
---|
41 | <th><bean:message key="bo.user.creationDate"/></th> |
---|
42 | <th colspan="2"><bean:message key="bo.actions"/></th> |
---|
43 | </tr> |
---|
44 | <tbody id="containerWaitingUsers"></tbody> |
---|
45 | </table> |
---|
46 | <bean:message key="bo.user.waitinglist.help"/> |
---|
47 | <BR/> |
---|
48 | </div> |
---|
49 | |
---|
50 | |
---|
51 | <HR width="50%"> |
---|
52 | <div id="messages"><bean:message key="bo.user.list"/> : <BR/><BR/></div> |
---|
53 | |
---|
54 | <div id="generalContainerUsers"> |
---|
55 | <table class="roundTable" border="1"> |
---|
56 | <tr> |
---|
57 | <th><bean:message key="bo.id"/></th> |
---|
58 | <th><bean:message key="bo.user.lastName"/></th> |
---|
59 | <th><bean:message key="bo.user.firstName"/></th> |
---|
60 | <th><bean:message key="bo.user.email"/></th> |
---|
61 | <th><bean:message key="bo.user.role"/></th> |
---|
62 | <th><bean:message key="bo.user.creationDate"/></th> |
---|
63 | <th title="<bean:message key="bo.user.state.help"/>"><bean:message key="bo.user.state"/></th> |
---|
64 | <th title="<bean:message key="bo.user.boAccess.help"/>"><bean:message key="bo.user.boAccess"/></th> |
---|
65 | <th colspan="2"><bean:message key="bo.actions"/></th> |
---|
66 | </tr> |
---|
67 | <tbody id="containerUsers"></tbody> |
---|
68 | </table> |
---|
69 | <BR/> |
---|
70 | </div> |
---|
71 | |
---|
72 | <HR width="50%"> |
---|
73 | <div id="addOrModifyTitle"></div> |
---|
74 | |
---|
75 | <table class="roundTable" border="1" id="addOrModifyForm"> |
---|
76 | <tr> |
---|
77 | <td><bean:message key="bo.user.lastName"/></td> |
---|
78 | <td width="1px"><input id="lastName" size="40"></td> |
---|
79 | |
---|
80 | <td><bean:message key="bo.user.role"/></td> |
---|
81 | <td> |
---|
82 | <div id="containerRoles"></div> |
---|
83 | </td> |
---|
84 | </tr> |
---|
85 | |
---|
86 | <tr> |
---|
87 | <td><bean:message key="bo.user.firstName"/></td> |
---|
88 | <td><input id="firstName" size="40"></td> |
---|
89 | |
---|
90 | <td><bean:message key="bo.user.state"/></td> |
---|
91 | <td> |
---|
92 | <div id="containerStates"></div> |
---|
93 | </td> |
---|
94 | </tr> |
---|
95 | |
---|
96 | <tr> |
---|
97 | <td><bean:message key="bo.user.email"/></td> |
---|
98 | <td><input id="email" size="40"></td> |
---|
99 | |
---|
100 | <td><bean:message key="bo.user.boAccess.help"/></td> |
---|
101 | <td><input id="boAccess" type="checkbox"></td> |
---|
102 | </tr> |
---|
103 | |
---|
104 | <tr> |
---|
105 | <td><bean:message key="bo.user.password"/></td> |
---|
106 | <td><input id="password" size="40"></td> |
---|
107 | |
---|
108 | <td></td> |
---|
109 | <td></td> |
---|
110 | </tr> |
---|
111 | <tr> |
---|
112 | <td><bean:message key="bo.user.password.same"/></td> |
---|
113 | <td><input id="keepSamePassword" type="checkbox"><bean:message key="bo.user.password.same.help"/></td> |
---|
114 | |
---|
115 | <td><bean:message key="bo.action"/></td> |
---|
116 | <td> |
---|
117 | <button id="add_or_modify_user" class="small positive"></button> |
---|
118 | </td> |
---|
119 | </tr> |
---|
120 | |
---|
121 | </table> |
---|
122 | |
---|
123 | <BR/> |
---|
124 | |
---|
125 | <div id="errors"></div> |
---|
126 | |
---|
127 | <script type="text/javascript"> |
---|
128 | var interfaceTexts = $A( "" ); |
---|
129 | interfaceTexts["bo.noUser"] = '<bean:message key="bo.noUser"/>'; |
---|
130 | interfaceTexts["bo.add"] = '<bean:message key="bo.add"/>'; |
---|
131 | interfaceTexts["bo.modify"] = '<bean:message key="bo.modify"/>'; |
---|
132 | interfaceTexts["bo.remove"] = '<bean:message key="bo.remove"/>'; |
---|
133 | interfaceTexts["bo.accept"] = '<bean:message key="bo.accept"/>'; |
---|
134 | interfaceTexts["bo.refuse"] = '<bean:message key="bo.refuse"/>'; |
---|
135 | interfaceTexts["bo.user.remove.confirm"] = '<bean:message key="bo.user.remove.confirm"/>'; |
---|
136 | interfaceTexts["bo.id"] = '<bean:message key="bo.id"/>'; |
---|
137 | interfaceTexts["bo.user.add"] = '<bean:message key="bo.user.add"/>'; |
---|
138 | interfaceTexts["bo.user.modify"] = '<bean:message key="bo.user.modify"/>'; |
---|
139 | |
---|
140 | interfaceTexts["bo.field.lastName"] = '<bean:message key="bo.field.lastName"/>'; |
---|
141 | interfaceTexts["bo.field.email"] = '<bean:message key="bo.field.email"/>'; |
---|
142 | interfaceTexts["bo.field.password"] = '<bean:message key="bo.field.password"/>'; |
---|
143 | |
---|
144 | interfaceTexts["<%=com.ether.user.UserState.ACCEPTED%>"] = "<bean:message key="bo.user.accepted"/>"; |
---|
145 | interfaceTexts["<%=UserState.REFUSED%>"] = "<bean:message key="bo.user.refused"/>"; |
---|
146 | interfaceTexts["<%=UserState.WAITING%>"] = "<bean:message key="bo.user.waiting"/>"; |
---|
147 | |
---|
148 | interfaceTexts["<%=com.ether.user.UserRole.ADMINISTRATOR%>"] = "<bean:message key="bo.user.administrator"/>"; |
---|
149 | interfaceTexts["<%=UserRole.COORDINATOR%>"] = "<bean:message key="bo.user.coordinator"/>"; |
---|
150 | |
---|
151 | interfaceTexts["<%=WebException.WebCode.USER_ALREADY_EXISTS%>"] = "<bean:message key="app.dataProtocol.alreadyExist"/>"; |
---|
152 | interfaceTexts["<%=WebException.WebCode.ERROR_EMAIL_CANNOT_BE_SEND%>"] = "<bean:message key="bo.user.emailNotSend"/>"; |
---|
153 | |
---|
154 | var interfaceBOUser = new interfaceBOUser( ${jSonWaitingUsers}, ${jSonUsers}, ${jSonUserStates}, ${jSonUserRoles} ); |
---|
155 | </script> |
---|
156 | |
---|
157 | </tiles:put> |
---|
158 | |
---|
159 | </tiles:insert> |
---|