[280] | 1 | <%@ page import="com.ether.WebException" %> |
---|
[275] | 2 | <%@ page import="com.ether.user.UserRole" %> |
---|
[273] | 3 | <%@ page import="com.ether.user.UserState" %> |
---|
[227] | 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" %> |
---|
[89] | 8 | |
---|
[247] | 9 | <tiles:insert page="/resources/templates/templateBackoffice.jsp" flush="true"> |
---|
[89] | 10 | |
---|
[287] | 11 | <tiles:put name="insertCss" type="string"> |
---|
| 12 | <ether:htmlCss cssFile="select"/> |
---|
| 13 | </tiles:put> |
---|
[89] | 14 | |
---|
[287] | 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> |
---|
[170] | 22 | |
---|
[89] | 23 | |
---|
[287] | 24 | <tiles:put name="title" type="string"><bean:message key="app.title"/> - <bean:message key="bo.user"/></tiles:put> |
---|
[89] | 25 | |
---|
[273] | 26 | |
---|
[287] | 27 | <%-- ****************** CONTENT ****************** --%> |
---|
| 28 | <tiles:put name="bodytitle" type="string"><bean:message key="bo.user"/></tiles:put> |
---|
[154] | 29 | |
---|
[287] | 30 | <tiles:put name="body" type="string"> |
---|
| 31 | <div class="title2"><bean:message key="bo.user.waitinglist"/> :</div> |
---|
| 32 | <BR/> |
---|
[273] | 33 | |
---|
[287] | 34 | <%-- ****************** WAITING USERS ****************** --%> |
---|
| 35 | <div id="generalContainerWaitingUsers"> |
---|
| 36 | <table class="roundTable" border="1"> |
---|
| 37 | <tr> |
---|
| 38 | <th><bean:message key="bo.id"/></th> |
---|
| 39 | <th><bean:message key="bo.user.lastName"/></th> |
---|
| 40 | <th><bean:message key="bo.user.firstName"/></th> |
---|
| 41 | <th><bean:message key="bo.user.email"/></th> |
---|
| 42 | <th><bean:message key="bo.user.role"/></th> |
---|
| 43 | <th><bean:message key="bo.user.creationDate"/></th> |
---|
| 44 | <th colspan="2"><bean:message key="bo.actions"/></th> |
---|
| 45 | </tr> |
---|
| 46 | <tbody id="containerWaitingUsers"></tbody> |
---|
| 47 | </table> |
---|
| 48 | <bean:message key="bo.user.waitinglist.help"/> |
---|
| 49 | <BR/> |
---|
| 50 | </div> |
---|
[273] | 51 | |
---|
| 52 | |
---|
[287] | 53 | <HR width="50%"> |
---|
| 54 | <div class="title2"><bean:message key="bo.user.list"/> :</div> |
---|
| 55 | <BR/> |
---|
[273] | 56 | |
---|
[287] | 57 | |
---|
| 58 | <%-- ****************** SORTS ****************** --%> |
---|
| 59 | <div class="containerSorts"> |
---|
| 60 | <div style="float:left"><bean:message key="bo.sort.asc"/> : </div> |
---|
| 61 | <div id="containerSorts" style="float:left"></div> |
---|
| 62 | </div> |
---|
| 63 | |
---|
| 64 | <div class="containerSorts"> |
---|
| 65 | <div style="float:left"><bean:message key="bo.user.role"/> : </div> |
---|
| 66 | <div id="containerSorts_roles" style="float:left"></div> |
---|
| 67 | </div> |
---|
| 68 | |
---|
| 69 | <div class="containerSorts"> |
---|
| 70 | <div style="float:left"><bean:message key="bo.user.state"/> : </div> |
---|
| 71 | <div id="containerSorts_states" style="float:left"></div> |
---|
| 72 | </div> |
---|
| 73 | |
---|
| 74 | <div class="containerSorts"> |
---|
| 75 | <div style="float:left"><bean:message key="bo.user.boAccess.help"/> : </div> |
---|
| 76 | <div style="float:left"> |
---|
| 77 | <input id="sort_accessBO_true" type="checkbox" checked="checked"><bean:message key="app.yes"/> |
---|
| 78 | <input id="sort_accessBO_false" type="checkbox" checked="checked"><bean:message key="app.no"/> |
---|
[273] | 79 | </div> |
---|
[287] | 80 | </div> |
---|
[273] | 81 | |
---|
[287] | 82 | <div class="containerSorts"> |
---|
| 83 | <div style="float:left"><bean:message key="bo.viewBy"/> : </div> |
---|
| 84 | <div id="containerSorts_display" style="float:left"></div> |
---|
| 85 | </div> |
---|
[273] | 86 | |
---|
[287] | 87 | <div style="float:right"> |
---|
| 88 | <button id="sortButton" class="small positive"><bean:message key="bo.go"/></button> |
---|
| 89 | </div> |
---|
| 90 | <BR/><BR/> |
---|
[273] | 91 | |
---|
| 92 | |
---|
[287] | 93 | <%-- ****************** USERS ****************** --%> |
---|
| 94 | <div id="generalContainerUsers"> |
---|
| 95 | <table class="roundTable" border="1"> |
---|
[273] | 96 | <tr> |
---|
[287] | 97 | <th><bean:message key="bo.id"/></th> |
---|
| 98 | <th><bean:message key="bo.user.lastName"/></th> |
---|
| 99 | <th><bean:message key="bo.user.firstName"/></th> |
---|
| 100 | <th><bean:message key="bo.user.email"/></th> |
---|
| 101 | <th><bean:message key="bo.user.role"/></th> |
---|
| 102 | <th><bean:message key="bo.user.creationDate"/></th> |
---|
| 103 | <th title="<bean:message key="bo.user.state.help"/>"><bean:message key="bo.user.state"/></th> |
---|
| 104 | <th title="<bean:message key="bo.user.boAccess.help"/>"><bean:message key="bo.user.boAccess"/></th> |
---|
| 105 | <th colspan="2"><bean:message key="bo.actions"/></th> |
---|
[273] | 106 | </tr> |
---|
[287] | 107 | <tbody id="containerUsers"></tbody> |
---|
| 108 | </table> |
---|
| 109 | <BR/> |
---|
| 110 | </div> |
---|
[273] | 111 | |
---|
[287] | 112 | <div style="float:left"><bean:message key="bo.total.number"/> : |
---|
| 113 | <div id="nbResults" style="float:right"></div> |
---|
| 114 | </div> |
---|
[273] | 115 | |
---|
[287] | 116 | <%-- ****************** PAGINATION ****************** --%> |
---|
| 117 | <div style="float:right"> |
---|
| 118 | <button id="next" class="small"><bean:message key="bo.next"/></button> |
---|
| 119 | </div> |
---|
| 120 | <div style="float:right"><span id="page">1</span>/<span id="maxPages">0</span> </div> |
---|
| 121 | <div style="float:right"> |
---|
| 122 | <button id="previous" class="small"><bean:message key="bo.previous"/></button> |
---|
| 123 | </div> |
---|
[273] | 124 | |
---|
| 125 | |
---|
[287] | 126 | <BR/> |
---|
| 127 | <HR width="50%"> |
---|
[280] | 128 | |
---|
[287] | 129 | <%-- ****************** ADD OR MODIFY AN USER ****************** --%> |
---|
| 130 | <div id="addOrModifyTitle" class="title2"></div> |
---|
[273] | 131 | |
---|
[287] | 132 | <table class="roundTable" border="1" id="addOrModifyForm"> |
---|
| 133 | <tr> |
---|
| 134 | <td><bean:message key="bo.user.lastName"/></td> |
---|
| 135 | <td width="1px"><input id="lastName" size="40"></td> |
---|
[275] | 136 | |
---|
[287] | 137 | <td><bean:message key="bo.user.role"/></td> |
---|
| 138 | <td> |
---|
| 139 | <div id="containerRoles"></div> |
---|
| 140 | </td> |
---|
| 141 | </tr> |
---|
[273] | 142 | |
---|
[287] | 143 | <tr> |
---|
| 144 | <td><bean:message key="bo.user.firstName"/></td> |
---|
| 145 | <td><input id="firstName" size="40"></td> |
---|
[275] | 146 | |
---|
[287] | 147 | <td><bean:message key="bo.user.state"/></td> |
---|
| 148 | <td> |
---|
| 149 | <div id="containerStates"></div> |
---|
| 150 | </td> |
---|
| 151 | </tr> |
---|
[273] | 152 | |
---|
[287] | 153 | <tr> |
---|
| 154 | <td><bean:message key="bo.user.email"/></td> |
---|
| 155 | <td><input id="email" size="40"></td> |
---|
[275] | 156 | |
---|
[287] | 157 | <td><bean:message key="bo.user.boAccess.help"/></td> |
---|
| 158 | <td><input id="boAccess" type="checkbox"></td> |
---|
| 159 | </tr> |
---|
[273] | 160 | |
---|
[287] | 161 | <tr> |
---|
| 162 | <td><bean:message key="bo.user.password"/></td> |
---|
| 163 | <td><input id="password" size="40"></td> |
---|
[273] | 164 | |
---|
[287] | 165 | <td></td> |
---|
| 166 | <td></td> |
---|
| 167 | </tr> |
---|
| 168 | <tr> |
---|
| 169 | <td><bean:message key="bo.user.password.same"/></td> |
---|
| 170 | <td><input id="keepSamePassword" type="checkbox"><bean:message key="bo.user.password.same.help"/></td> |
---|
[273] | 171 | |
---|
[287] | 172 | <td><bean:message key="bo.actions"/></td> |
---|
| 173 | <td> |
---|
| 174 | <button id="add_or_modify_user" class="small positive"></button> |
---|
[306] | 175 | <button id="init" class="small positive"><bean:message key="visualization.button.init"/></button> |
---|
[287] | 176 | </td> |
---|
| 177 | </tr> |
---|
[273] | 178 | |
---|
[287] | 179 | </table> |
---|
[227] | 180 | |
---|
[287] | 181 | <BR/> |
---|
| 182 | |
---|
| 183 | <div id="errors"></div> |
---|
| 184 | |
---|
| 185 | <script type="text/javascript"> |
---|
| 186 | var interfaceTexts = $A( "" ); |
---|
| 187 | interfaceTexts["bo.noUser"] = '<bean:message key="bo.noUser"/>'; |
---|
| 188 | interfaceTexts["bo.add"] = '<bean:message key="bo.add"/>'; |
---|
| 189 | interfaceTexts["bo.modify"] = '<bean:message key="bo.modify"/>'; |
---|
| 190 | interfaceTexts["bo.remove"] = '<bean:message key="bo.remove"/>'; |
---|
| 191 | interfaceTexts["bo.accept"] = '<bean:message key="bo.accept"/>'; |
---|
| 192 | interfaceTexts["bo.refuse"] = '<bean:message key="bo.refuse"/>'; |
---|
| 193 | interfaceTexts["bo.user.remove.confirm"] = '<bean:message key="bo.user.remove.confirm"/>'; |
---|
| 194 | interfaceTexts["bo.id"] = '<bean:message key="bo.id"/>'; |
---|
| 195 | interfaceTexts["bo.user.add"] = '<bean:message key="bo.user.add"/>'; |
---|
| 196 | interfaceTexts["bo.user.modify"] = '<bean:message key="bo.user.modify"/>'; |
---|
| 197 | interfaceTexts["bo.user.lastName"] = '<bean:message key="bo.user.lastName"/>'; |
---|
| 198 | interfaceTexts["bo.user.email"] = '<bean:message key="bo.user.email"/>'; |
---|
| 199 | interfaceTexts["bo.user.creationDate"] = '<bean:message key="bo.user.creationDate"/>'; |
---|
| 200 | interfaceTexts["bo.all"] = '<bean:message key="bo.all"/>'; |
---|
| 201 | |
---|
| 202 | interfaceTexts["bo.field.lastName"] = '<bean:message key="bo.field.lastName"/>'; |
---|
| 203 | interfaceTexts["bo.field.email"] = '<bean:message key="bo.field.email"/>'; |
---|
| 204 | interfaceTexts["bo.field.password"] = '<bean:message key="bo.field.password"/>'; |
---|
| 205 | |
---|
| 206 | interfaceTexts["<%=com.ether.user.UserState.ACCEPTED%>"] = "<bean:message key="bo.user.accepted"/>"; |
---|
| 207 | interfaceTexts["<%=UserState.REFUSED%>"] = "<bean:message key="bo.user.refused"/>"; |
---|
| 208 | interfaceTexts["<%=UserState.WAITING%>"] = "<bean:message key="bo.user.waiting"/>"; |
---|
| 209 | |
---|
| 210 | interfaceTexts["<%=UserRole.ADMINISTRATOR%>"] = "<bean:message key="bo.user.administrator"/>"; |
---|
| 211 | interfaceTexts["<%=UserRole.COORDINATOR%>"] = "<bean:message key="bo.user.coordinator"/>"; |
---|
| 212 | interfaceTexts["<%=UserRole.TECHNICIEN%>"] = "<bean:message key="bo.user.technician"/>"; |
---|
| 213 | |
---|
[306] | 214 | interfaceTexts["<%=WebException.WebCode.USER_ALREADY_EXISTS%>"] = "<bean:message key="login.dataProtocol.alreadyExist"/>"; |
---|
[287] | 215 | interfaceTexts["<%=WebException.WebCode.ERROR_EMAIL_CANNOT_BE_SEND%>"] = "<bean:message key="bo.user.emailNotSend"/>"; |
---|
| 216 | |
---|
| 217 | var interfaceBOUser = new interfaceBOUser( ${usersNumber}, ${jSonWaitingUsers}, ${jSonUsers}, ${jSonUserStates}, ${jSonUserRoles} ); |
---|
| 218 | </script> |
---|
| 219 | |
---|
| 220 | </tiles:put> |
---|
| 221 | |
---|
[154] | 222 | </tiles:insert> |
---|