setup-admin.jsp 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3. <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
  4. <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
  5. <%@ taglib uri="http://www.springframework.org/tags" prefix="spring" %>
  6. <html>
  7. <head profile="<c:url value="/profile.txt"/>">
  8. <title><fmt:message key="setup.admin.title"/></title>
  9. <link media="screen" href="<c:url value="/css/global.css"/>" type="text/css" rel="stylesheet" />
  10. </head>
  11. <body>
  12. <h1><fmt:message key="setup.admin.title"/></h1>
  13. <p><fmt:message key="setup.admin.intro"/></p>
  14. <spring:hasBindErrors name="command">
  15. <div class="error-intro">
  16. <spring:bind path="command.settings">
  17. <c:choose>
  18. <c:when test="${status.errors.errorCount > 1}">
  19. <ul>
  20. <c:forEach items="${status.errors.allErrors}" var="error">
  21. <li>
  22. <spring:message code="${error.code}" arguments="${error.arguments}"/><br />
  23. </li>
  24. </c:forEach>
  25. </ul>
  26. </c:when>
  27. <c:when test="${status.errors.errorCount == 1}">
  28. <c:set var="error" value="${status.errors.allErrors[0]}"/>
  29. <spring:message code="${error.code}" arguments="${error.arguments}"/><br />
  30. </c:when>
  31. </c:choose>
  32. </spring:bind>
  33. </div>
  34. </spring:hasBindErrors>
  35. <form method="post" action="<c:url value="/setup/wizard.do"/>">
  36. <c:if test="${command.settings['setup.complete'] == 'true' or command.settings['setup.adminexists'] == 'true'}">
  37. <div>
  38. <spring:bind path="command.skipAdminUser">
  39. <input type="hidden" name="_${status.expression}"
  40. value="visible"/>
  41. <input type="checkbox" name="${status.expression}"
  42. value="true" <c:if test="${status.value == 'true'}">checked="checked"</c:if> />
  43. </spring:bind>
  44. <fmt:message key="setup.admin.skip.caption"/>
  45. </div>
  46. <br />
  47. </c:if>
  48. <spring:nestedPath path="command.user">
  49. <table class="form">
  50. <tr>
  51. <th><fmt:message key="name.displayName"/></th>
  52. <td>
  53. <spring:bind path="name">
  54. <input type="text" maxlength="64"
  55. value="${status.value}"
  56. name="${status.expression}"/>
  57. </spring:bind>
  58. <div class="caption"><fmt:message key="name.caption"/></div>
  59. </td>
  60. </tr>
  61. <tr>
  62. <th><fmt:message key="email.displayName"/></th>
  63. <td colspan="3">
  64. <spring:bind path="email">
  65. <input type="text" maxlength="128"
  66. value="${status.value}"
  67. name="${status.expression}"/>
  68. </spring:bind>
  69. <div class="caption"><fmt:message key="email.caption"/></div>
  70. </td>
  71. </tr>
  72. <tr>
  73. <th><fmt:message key="login.displayName"/></th>
  74. <td colspan="3">
  75. <spring:bind path="login">
  76. <input type="text" maxlength="32"
  77. value="${status.value}"
  78. name="${status.expression}"/>
  79. </spring:bind>
  80. <div class="caption"><fmt:message key="login.caption"/></div>
  81. </td>
  82. </tr>
  83. <tr>
  84. <th><fmt:message key="password.displayName"/></th>
  85. <td colspan="3">
  86. <spring:bind path="password">
  87. <input type="password" maxlength="64"
  88. value="${status.value}"
  89. name="${status.expression}"/>
  90. </spring:bind>
  91. <div class="caption"><fmt:message key="password.caption"/></div>
  92. </td>
  93. </tr>
  94. <tr>
  95. <th />
  96. <td>
  97. <input type="submit" name="_target4" value="<fmt:message key="back.displayName"/>"/>
  98. <input type="submit" name="_target6" value="<fmt:message key="continue.displayName"/>"/>
  99. </td>
  100. </tr>
  101. </table>
  102. </spring:nestedPath>
  103. </form>
  104. </body>
  105. </html>