00009 spring-oauth-server project add Bootstrap CSS

0.3
lishengzhao 2015-05-19 15:54:14 +08:00
parent 4eb92dca2b
commit 66bdfb1c4f
3 changed files with 20 additions and 15 deletions

View File

@ -9,25 +9,30 @@
<!DOCTYPE HTML> <!DOCTYPE HTML>
<html> <html>
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8"/>
<c:set var="contextPath" value="${pageContext.request.contextPath}" scope="application"/> <c:set var="contextPath" value="${pageContext.request.contextPath}" scope="application"/>
<meta name="viewport" content="width=device-width,user-scalable=no"/> <meta name="viewport" content="width=device-width,user-scalable=no"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
<title><decorator:title default=""/> - Spring Security&Oauth2</title> <title><decorator:title default=""/> - Spring Security&Oauth2</title>
<link href="http://cdn.bootcss.com/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet"/>
<decorator:head/> <decorator:head/>
</head> </head>
<body> <body class="container">
<div> <div>
<decorator:body/> <div>
</div> <decorator:body/>
<div> </div>
<hr/> <div>
<p> <hr/>
<a href="mailto:monkeyk1987@gmail.com">monkeyk1987@gmail.com</a>, from <a href="http://git.oschina.net/shengzhao/spring-oauth-server" target="_blank">spring-oauth-server</a> <p>
</p> <a href="mailto:monkeyk1987@gmail.com">monkeyk1987@gmail.com</a>, from <a
href="http://git.oschina.net/shengzhao/spring-oauth-server" target="_blank">spring-oauth-server</a>
</p>
</div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -17,11 +17,11 @@
<form id='confirmationForm' name='confirmationForm' action='${pageContext.request.contextPath}/oauth/authorize' <form id='confirmationForm' name='confirmationForm' action='${pageContext.request.contextPath}/oauth/authorize'
method='post'> method='post'>
<input name='user_oauth_approval' value='true' type='hidden'/> <input name='user_oauth_approval' value='true' type='hidden'/>
<label> <input name='authorize' value='Authorize' type='submit'></label> <label> <input name='authorize' value='Authorize' type='submit' class="btn btn-success"/></label>
</form> </form>
<form id='denialForm' name='denialForm' action='${pageContext.request.contextPath}/oauth/authorize' method='post'> <form id='denialForm' name='denialForm' action='${pageContext.request.contextPath}/oauth/authorize' method='post'>
<input name='user_oauth_approval' value='false' type='hidden'/> <input name='user_oauth_approval' value='false' type='hidden'/>
<label><input name='deny' value='Deny' type='submit'></label> <label><input name='deny' value='Deny' type='submit' class="btn btn-warning"/></label>
</form> </form>
</body> </body>
</html> </html>

View File

@ -22,15 +22,15 @@
<label for="password">Password:</label> <label for="password">Password:</label>
<input type="password" name="j_password" id="password" value="" required="required"/> <input type="password" name="j_password" id="password" value="" required="required"/>
<br/> <br/>
<input type="submit" value="Login"/> <input type="submit" value="Login" class="btn btn-primary"/>
<span style="color:red;"> <span class="text-danger">
<c:if test="${param.authorization_error eq 2}">Access denied !!!</c:if> <c:if test="${param.authorization_error eq 2}">Access denied !!!</c:if>
<c:if test="${param.authentication_error eq 1}">Authentication Failure</c:if> <c:if test="${param.authentication_error eq 1}">Authentication Failure</c:if>
</span> </span>
</form> </form>
<div> <div>
<p>You can use the users to login as follow:</p> <p>You can use the users to login as follow:</p>
<table style="border: 1px solid #eee;"> <table class="table table-bordered">
<thead> <thead>
<tr> <tr>
<th>Username</th> <th>Username</th>