update ui

This commit is contained in:
DOHA 2015-04-01 21:21:46 +02:00
parent 5ab6b9e611
commit 2ebf9bea07
16 changed files with 342 additions and 243 deletions

View File

@ -5,25 +5,30 @@
<html> <html>
<head> <head>
<link href="<c:url value="/resources/bootstrap.css" />" rel="stylesheet"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
<title><spring:message code="label.pages.home.title"></spring:message></title> <title><spring:message code="label.pages.home.title"></spring:message></title>
</head> </head>
<body> <body>
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand"href="<c:url value="/home.html" />"><spring:message code="label.pages.home.title"></spring:message></a>
</div>
<ul class="nav navbar-nav navbar-right">
<li><a href="<c:url value="/j_spring_security_logout" />"><spring:message code="label.pages.logout"></spring:message></a> </li>
</ul>
</div>
</nav>
<div class="container"> <div class="container">
<div class="span12">
<sec:authorize ifNotGranted="WRITE_PRIVILEGE"> <sec:authorize ifNotGranted="WRITE_PRIVILEGE">
<spring:message code="message.unauth"></spring:message> <spring:message code="message.unauth"></spring:message>
</sec:authorize> </sec:authorize>
<sec:authorize ifAnyGranted="WRITE_PRIVILEGE"> <sec:authorize ifAnyGranted="WRITE_PRIVILEGE">
<H1> <h1>
<spring:message code="label.pages.admin.message"></spring:message> <spring:message code="label.pages.admin.message"></spring:message>
</H1> </h1>
</sec:authorize> </sec:authorize>
<a href="<c:url value="/j_spring_security_logout" />"><spring:message
code="label.pages.logout"></spring:message></a> <a
href="<c:url value="/home.html" />"><spring:message
code="label.pages.home.title"></spring:message></a>
</div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -7,17 +7,17 @@
<%@ page session="true"%> <%@ page session="true"%>
<html> <html>
<head> <head>
<link href="<c:url value="/resources/bootstrap.css" />" rel="stylesheet"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
<title><spring:message <title><spring:message
code="label.badUser.title"></spring:message></title> code="label.badUser.title"></spring:message></title>
</head> </head>
<body> <body>
<h1> <div class="container">
<div class="alert alert-error"> <h1 class="alert alert-danger">
${param.message} ${param.message}
</h1> </h1>
<br> <br>
<a href="<c:url value="/registration.html" />"><spring:message <a class="btn btn-default" href="<c:url value="/registration.html" />"><spring:message
code="label.form.loginSignUp"></spring:message></a> code="label.form.loginSignUp"></spring:message></a>
<c:if test="${param.expired}"> <c:if test="${param.expired}">
@ -27,7 +27,6 @@ code="label.form.loginSignUp"></spring:message></a>
<spring:message code="label.form.resendRegistrationToken"></spring:message> <spring:message code="label.form.resendRegistrationToken"></spring:message>
</button> </button>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script type="text/javascript"> <script type="text/javascript">
function resendToken(){ function resendToken(){
@ -50,5 +49,6 @@ $(document).ajaxStart(function() {
}); });
</script> </script>
</c:if> </c:if>
</div>
</body> </body>
</html> </html>

View File

@ -0,0 +1,72 @@
<!DOCTYPE html>
<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="sec"
uri="http://www.springframework.org/security/tags"%>
<%@ page session="false"%>
<html>
<head>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title><spring:message code="message.changePassword"></spring:message></title>
</head>
<body>
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand"href="#"><spring:message code="label.pages.home.title"></spring:message></a>
</div>
<ul class="nav navbar-nav navbar-right">
<li><a href="<c:url value="/j_spring_security_logout" />"><spring:message code="label.pages.logout"></spring:message></a> </li>
</ul>
</div>
</nav>
<div class="container">
<div class="row">
<div id="errormsg" class="alert alert-danger" style="display:none"></div>
<h1> <spring:message code="message.changePassword"></spring:message> </h1>
<div >
<br>
<label class="col-sm-2"><spring:message code="label.user.oldPassword"></spring:message></label>
<span class="col-sm-5"><input class="form-control" id="oldpass" name="oldpassword" type="password" value="" /></span>
<span class="col-sm-5"></span>
<br><br>
<label class="col-sm-2"><spring:message code="label.user.newPassword"></spring:message></label>
<span class="col-sm-5"><input class="form-control" id="pass" name="password" type="password" value="" /></span>
<span class="col-sm-5"></span>
<br><br>
<label class="col-sm-2"><spring:message code="label.user.confirmPass"></spring:message></label>
<span class="col-sm-5"><input class="form-control" id="passConfirm" type="password" value="" /></span>
<span id="error" class="alert alert-danger" style="display:none"><spring:message code="PasswordMatches.user"></spring:message></span>
<br><br>
<button class="btn btn-primary" type="submit" onclick="savePass()">
<spring:message code="message.changePassword"></spring:message>
</button>
</div>
</div>
</div>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script type="text/javascript">
function savePass(){
var pass = $("#pass").val();
var valid = pass == $("#passConfirm").val();
if(!valid) {
$("#error").show();
return;
}
$.post("<c:url value="/user/updatePassword"></c:url>",{password: pass, oldpassword: $("#oldpass").val()} ,function(data){
window.location.href = "<c:url value="/console.html"></c:url>" + "?message="+data.message;
})
.fail(function(data) {
$("#errormsg").show().html(data.responseJSON.message);
});
}
</script>
</body>
</html>

View File

@ -4,11 +4,26 @@
<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%> <%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<html> <html>
<head> <head>
<link href="<c:url value="/resources/bootstrap.css" />" rel="stylesheet"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
</head> </head>
<body> <body>
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand"href="<c:url value="/home.html" />"><spring:message code="label.pages.home.title"></spring:message></a>
</div>
<ul class="nav navbar-nav navbar-right">
<li><a href="<c:url value="/j_spring_security_logout" />"><spring:message code="label.pages.logout"></spring:message></a> </li>
</ul>
</div>
</nav>
<div class="container"> <div class="container">
<div class="span12"> <c:if test="${param.message != null}">
<div class="alert alert-info">
${param.message}
</div>
</c:if>
<h1>This is the landing page for the admin</h1> <h1>This is the landing page for the admin</h1>
<sec:authorize access="hasRole('READ_PRIVILEGE')"> <sec:authorize access="hasRole('READ_PRIVILEGE')">
This text is only visible to a user This text is only visible to a user
@ -18,11 +33,9 @@
This text is only visible to an admin This text is only visible to an admin
<br /> <br />
</sec:authorize> </sec:authorize>
<a href="<c:url value="/j_spring_security_logout" />"><spring:message <a class="btn btn-default" href="<c:url value="/changePassword.html" />"><spring:message code="message.changePassword"></spring:message></a>
code="label.pages.logout"></spring:message></a> <a
href="<c:url value="/admin.html" />"><spring:message <a class="btn btn-default" href="<c:url value="/admin.html" />"><spring:message code="label.pages.admin"></spring:message></a>
code="label.pages.admin"></spring:message></a>
</div>
</div> </div>
</body> </body>

View File

@ -2,18 +2,16 @@
<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%> <%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<html> <html>
<head> <head>
<link href="<c:url value="/resources/bootstrap.css" />" rel="stylesheet"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
<title><spring:message code="label.pages.home.title"></spring:message></title> <title><spring:message code="label.pages.home.title"></spring:message></title>
</head> </head>
<body> <body>
<div class="container"> <div class="container">
<div class="span12"> <h1 class="alert alert-danger">
<h1 class="alert alert-error">
<spring:message code="message.email.config.error"></spring:message> <spring:message code="message.email.config.error"></spring:message>
</h1> </h1>
</div> </div>
</div>
</body> </body>
</html> </html>

View File

@ -8,16 +8,17 @@
<html> <html>
<head> <head>
<link href="<c:url value="/resources/bootstrap.css" />" rel="stylesheet"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
<title><spring:message code="label.pages.home.title"></spring:message></title> <title><spring:message code="label.pages.home.title"></spring:message></title>
</head> </head>
<body> <body>
<h1> <div class="container">
<h1 class="alert alert-info">
<spring:message code="auth.message.expired"></spring:message> <spring:message code="auth.message.expired"></spring:message>
</h1> </h1>
<br> <br>
<a href="<c:url value="/registration.html" />"><spring:message <a class="btn btn-default" href="<c:url value="registration.html" />"><spring:message
code="label.form.loginSignUp"></spring:message></a> code="label.form.loginSignUp"></spring:message></a>
</div>
</body> </body>
</html> </html>

View File

@ -8,37 +8,26 @@
<%@ page session="false"%> <%@ page session="false"%>
<html> <html>
<head> <head>
<link href="<c:url value="/resources/bootstrap.css" />" rel="stylesheet"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title><spring:message code="message.resetPassword"></spring:message></title> <title><spring:message code="message.resetPassword"></spring:message></title>
</head> </head>
<body> <body>
<div class="container"> <div class="container">
<div class="span12"> <h1><spring:message code="message.resetPassword"></spring:message></h1>
<h1> <br>
<spring:message code="message.resetPassword"></spring:message> <div class="row">
</h1> <label class="col-sm-1"><spring:message code="label.user.email"></spring:message></label>
<div> <span class="col-sm-5"><input class="form-control" id="email" name="email" type="email" value="" /></span>
<br> <button class="btn btn-primary" type="submit" onclick="resetPass()"><spring:message code="message.resetPassword"></spring:message></button>
<tr>
<td><label><spring:message code="label.user.email"></spring:message></label></td>
<td><input id="email" name="email" type="email" value="" /></td>
</tr>
<button class="btn btn-primary" type="submit" onclick="resetPass()">
<spring:message code="message.resetPassword"></spring:message>
</button>
</div> </div>
<br> <br>
<a href="<c:url value="/registration.html" />"><spring:message code="label.form.loginSignUp"></spring:message></a> <a class="btn btn-default" href="<c:url value="registration.html" />"><spring:message code="label.form.loginSignUp"></spring:message></a>
<br> <br><br>
<a href="<c:url value="login.html" />"><spring:message code="label.form.loginLink"></spring:message></a> <a class="btn btn-default" href="<c:url value="login.html" />"><spring:message code="label.form.loginLink"></spring:message></a>
</div> </div>
</div>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script type="text/javascript"> <script type="text/javascript">
function resetPass(){ function resetPass(){

View File

@ -4,19 +4,26 @@
<html> <html>
<head> <head>
<link href="<c:url value="/resources/bootstrap.css" />" rel="stylesheet"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
<title><spring:message code="label.pages.home.title"></spring:message></title> <title><spring:message code="label.pages.home.title"></spring:message></title>
</head> </head>
<body> <body>
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand"href="#"><spring:message code="label.pages.home.title"></spring:message></a>
</div>
<ul class="nav navbar-nav navbar-right">
<li><a href="<c:url value="/j_spring_security_logout" />"><spring:message code="label.pages.logout"></spring:message></a> </li>
</ul>
</div>
</nav>
<div class="container"> <div class="container">
<div class="span12">
<h1> <h1>
<spring:message code="label.pages.home.message"></spring:message> <spring:message code="label.pages.home.message"></spring:message>
</h1> </h1>
<a href="<c:url value="/j_spring_security_logout" />"><spring:message
code="label.pages.logout"></spring:message></a>
</div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -5,14 +5,23 @@
<%@ page session="true"%> <%@ page session="true"%>
<html> <html>
<head> <head>
<link href="<c:url value="/resources/bootstrap.css" />" rel="stylesheet"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
<title><spring:message code="label.pages.home.title"></spring:message></title> <title><spring:message code="label.pages.home.title"></spring:message></title>
</head> </head>
<body> <body>
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand"href="<c:url value="/home.html" />"><spring:message code="label.pages.home.title"></spring:message></a>
</div>
<ul class="nav navbar-nav navbar-right">
<li><a href="<c:url value="/j_spring_security_logout" />"><spring:message code="label.pages.logout"></spring:message></a> </li>
</ul>
</div>
</nav>
<div class="container"> <div class="container">
<div class="span12">
<sec:authorize access="hasRole('READ_PRIVILEGE')"> <sec:authorize access="hasRole('READ_PRIVILEGE')">
<spring:message code="label.pages.user.message"></spring:message> <spring:message code="label.pages.user.message"></spring:message>
<br /> <br />
@ -23,13 +32,7 @@
<br /> <br />
</sec:authorize> </sec:authorize>
${param.user} ${param.user}
<a href="<c:url value="/j_spring_security_logout" />"><spring:message <a class="btn btn-default" href="<c:url value="/admin.html" />"><spring:message code="label.pages.admin"></spring:message></a>
code="label.pages.logout"></spring:message></a> <a
href="<c:url value="/home.html" />"><spring:message
code="label.pages.home.title"></spring:message></a> <a
href="<c:url value="/admin.html" />"><spring:message
code="label.pages.admin"></spring:message></a>
</div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -2,19 +2,17 @@
<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%> <%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<html> <html>
<head> <head>
<link href="<c:url value="/resources/bootstrap.css" />" rel="stylesheet"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
<title><spring:message code="label.pages.home.title"></spring:message></title> <title><spring:message code="label.pages.home.title"></spring:message></title>
</head> </head>
<body> <body>
<div class="container"> <div class="container">
<div class="span12"> <h1 class="alert alert-danger">
<h1 class="alert alert-error">
<spring:message code="message.sessionExpired"></spring:message> <spring:message code="message.sessionExpired"></spring:message>
</h1> </h1>
<a href="<c:url value="login.html" />"><spring:message <a class="btn btn-primary" href="<c:url value="login.html" />"><spring:message
code="label.form.loginLink"></spring:message></a> code="label.form.loginLink"></spring:message></a>
</div> </div>
</div>
</body> </body>
</html> </html>

View File

@ -11,24 +11,24 @@
<c:choose> <c:choose>
<c:when <c:when
test="${SPRING_SECURITY_LAST_EXCEPTION.message == 'User is disabled'}"> test="${SPRING_SECURITY_LAST_EXCEPTION.message == 'User is disabled'}">
<div class="alert alert-error"> <div class="alert alert-danger">
<spring:message code="auth.message.disabled"></spring:message> <spring:message code="auth.message.disabled"></spring:message>
</div> </div>
</c:when> </c:when>
<c:when <c:when
test="${SPRING_SECURITY_LAST_EXCEPTION.message == 'User account has expired'}"> test="${SPRING_SECURITY_LAST_EXCEPTION.message == 'User account has expired'}">
<div class="alert alert-error"> <div class="alert alert-danger">
<spring:message code="auth.message.expired"></spring:message> <spring:message code="auth.message.expired"></spring:message>
</div> </div>
</c:when> </c:when>
<c:when <c:when
test="${SPRING_SECURITY_LAST_EXCEPTION.message == 'blocked'}"> test="${SPRING_SECURITY_LAST_EXCEPTION.message == 'blocked'}">
<div class="alert alert-error"> <div class="alert alert-danger">
<spring:message code="auth.message.blocked"></spring:message> <spring:message code="auth.message.blocked"></spring:message>
</div> </div>
</c:when> </c:when>
<c:otherwise> <c:otherwise>
<div class="alert alert-error"> <div class="alert alert-danger">
<!-- <c:out value="${SPRING_SECURITY_LAST_EXCEPTION.message}"/> --> <!-- <c:out value="${SPRING_SECURITY_LAST_EXCEPTION.message}"/> -->
<spring:message code="message.badCredentials"></spring:message> <spring:message code="message.badCredentials"></spring:message>
</div> </div>
@ -38,7 +38,7 @@
<html> <html>
<head> <head>
<link href="<c:url value="/resources/bootstrap.css" />" rel="stylesheet"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
<title><spring:message code="label.pages.home.title"></spring:message></title> <title><spring:message code="label.pages.home.title"></spring:message></title>
<script type="text/javascript"> <script type="text/javascript">
function validate() { function validate() {
@ -60,6 +60,10 @@
} }
} }
</script> </script>
<style type="text/css">
.wrapper{width:400px;margin-left:auto;margin-right:auto}
label{padding-left:0 !important}
</style>
</head> </head>
<body> <body>
<c:if test="${param.message != null}"> <c:if test="${param.message != null}">
@ -69,38 +73,34 @@ ${param.message}
</c:if> </c:if>
<div class="container"> <div class="container">
<div class="span12"> <div class="row wrapper">
<h1> <h1>
<spring:message code="label.form.loginTitle"></spring:message> <spring:message code="label.form.loginTitle"></spring:message>
</h1> </h1>
<a href="?lang=en"><spring:message code="label.form.loginEnglish"></spring:message></a> <a href="?lang=en"><spring:message code="label.form.loginEnglish"></spring:message></a>
| <a href="?lang=es_ES"><spring:message | <a href="?lang=es_ES"><spring:message
code="label.form.loginSpanish"></spring:message></a> code="label.form.loginSpanish"></spring:message></a>
<br><br>
<form name='f' action="j_spring_security_check" method='POST' <form name='f' action="j_spring_security_check" method='POST'
onsubmit="return validate();"> onsubmit="return validate();">
<table>
<tr> <label class="col-sm-2"><spring:message code="label.form.loginEmail"></spring:message></label>
<td><label><spring:message <span class="col-sm-10"><input class="form-control" type='text' name='j_username' value=''></span>
code="label.form.loginEmail"></spring:message></label></td>
<td><input type='text' name='j_username' value=''></td> <br><br>
</tr> <label class="col-sm-2"><spring:message code="label.form.loginPass"></spring:message></label>
<tr> <span class="col-sm-10"><input class="form-control" type='password' name='j_password' /></span>
<td><label><spring:message
code="label.form.loginPass"></spring:message></label></td> <br><br>
<td><input type='password' name='j_password' /></td> <input class="btn btn-primary" name="submit" type="submit"
</tr> value=<spring:message code="label.form.submit"></spring:message> />
<tr>
<td><input class="btn btn-primary" name="submit" type="submit"
value=<spring:message code="label.form.submit"></spring:message> /></td>
</tr>
</table>
</form> </form>
<br> Current Locale : ${pageContext.response.locale} <br> <a <br> Current Locale : ${pageContext.response.locale} <br><br>
href="<c:url value="/registration.html" />"><spring:message <a class="btn btn-default" href="<c:url value="registration.html" />"><spring:message
code="label.form.loginSignUp"></spring:message></a> code="label.form.loginSignUp"></spring:message></a>
<br><br><br> <br><br>
<a href="<c:url value="/forgetPassword.html" />"><spring:message <a class="btn btn-default" href="<c:url value="/forgetPassword.html" />"><spring:message
code="message.resetPassword"></spring:message></a> code="message.resetPassword"></spring:message></a>
</div> </div>
</div> </div>

View File

@ -5,11 +5,11 @@
<html> <html>
<head> <head>
<link href="<c:url value="/resources/bootstrap.css" />" rel="stylesheet"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
<c:if test="${not empty SPRING_SECURITY_LAST_EXCEPTION}"> <c:if test="${not empty SPRING_SECURITY_LAST_EXCEPTION}">
<div id="error"> <h1 id="error" class="alert alert-danger">
<spring:message code="message.logoutError"></spring:message> <spring:message code="message.logoutError"></spring:message>
</div> </h1>
</c:if> </c:if>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title><spring:message code="label.pages.home.title"></spring:message></title> <title><spring:message code="label.pages.home.title"></spring:message></title>
@ -17,16 +17,15 @@
<body> <body>
<div class="container"> <div class="container">
<div class="span12">
<c:if test="${param.logSucc == true}"> <c:if test="${param.logSucc == true}">
<div id="success"> <h1 id="success" class="alert alert-info">
<spring:message code="message.logoutSucc"></spring:message> <spring:message code="message.logoutSucc"></spring:message>
</div> </h1>
</c:if> </c:if>
<a href="<c:url value="login.html" />"><spring:message <a class="btn btn-primary" href="<c:url value="login.html" />"><spring:message
code="label.form.loginLink"></spring:message></a> code="label.form.loginLink"></spring:message></a>
</div> </div>
</div>
</body> </body>
</html> </html>

View File

@ -6,7 +6,13 @@
<html> <html>
<head> <head>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
<style>
.password-verdict{
color:#000;
}
</style>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script src="<c:url value="/resources/pwstrength.js" />"></script>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title><spring:message code="label.form.title"></spring:message></title> <title><spring:message code="label.form.title"></spring:message></title>
</head> </head>
@ -57,6 +63,14 @@
</div> </div>
<script type="text/javascript"> <script type="text/javascript">
$(document).ready(function () {
options = {
common: {minChar:8},
ui: {showVerdictsInsideProgressBar:true}
};
$('#password').pwstrength(options);
});
function register(){ function register(){
event.preventDefault(); event.preventDefault();
$(".alert").html("").hide(); $(".alert").html("").hide();

View File

@ -10,13 +10,14 @@
</c:if> </c:if>
<html> <html>
<head> <head>
<link href="<c:url value="/resources/bootstrap.css" />" rel="stylesheet"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title><spring:message code="label.pages.home.title"></spring:message></title> <title><spring:message code="label.pages.home.title"></spring:message></title>
</head> </head>
<body> <body>
<div>
<spring:message code="message.regSucc"></spring:message> <h1 class="alert alert-info"><spring:message code="message.regSucc"></spring:message></h1>
<a href="<c:url value="login.html" />"><spring:message code="label.login"></spring:message></a> <a class="btn btn-primary" href="<c:url value="login.html" />"><spring:message code="label.login"></spring:message></a>
</div>
</body> </body>
</html> </html>

View File

@ -8,31 +8,26 @@
<%@ page session="false"%> <%@ page session="false"%>
<html> <html>
<head> <head>
<link href="<c:url value="/resources/bootstrap.css" />" rel="stylesheet"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title><spring:message code="message.updatePassword"></spring:message></title> <title><spring:message code="message.updatePassword"></spring:message></title>
</head> </head>
<body> <body>
<sec:authorize access="hasRole('READ_PRIVILEGE')"> <sec:authorize access="hasRole('READ_PRIVILEGE')">
<div class="container"> <div class="container">
<div class="span12"> <div class="row">
<H1> <h1> <spring:message code="message.resetYourPassword"></spring:message> </h1>
<spring:message code="message.resetYourPassword"></spring:message>
</H1>
<div > <div >
<br> <br>
<tr> <label class="col-sm-2"><spring:message code="label.user.password"></spring:message></label>
<td><label><spring:message code="label.user.password"></spring:message></label></td> <span class="col-sm-5"><input class="form-control" id="pass" name="password" type="password" value="" /></span>
<td><input id="pass" name="password" type="password" value="" /></td> <span class="col-sm-5"></span>
</tr> <br><br>
<tr> <label class="col-sm-2"><spring:message code="label.user.confirmPass"></spring:message></label>
<td><label><spring:message code="label.user.confirmPass"></spring:message></label></td> <span class="col-sm-5"><input class="form-control" id="passConfirm" type="password" value="" /></span>
<td> <span id="error" class="alert alert-danger" style="display:none"><spring:message code="PasswordMatches.user"></spring:message></span>
<input id="passConfirm" type="password" value="" />
<span id="error" class="alert alert-error" style="display:none"><spring:message code="PasswordMatches.user"></spring:message></span>
</td>
</tr>
<br><br> <br><br>
<button class="btn btn-primary" type="submit" onclick="savePass()"> <button class="btn btn-primary" type="submit" onclick="savePass()">
<spring:message code="message.updatePassword"></spring:message> <spring:message code="message.updatePassword"></spring:message>

File diff suppressed because one or more lines are too long