

emr_demo
@ 2
emr_demo / web_emr - Copy / src / main / resources / static / index2.jsp
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 |
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%> <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html lang="en"> <head> <meta charset="UTF-8"> <title>JWT Spring Security Demo</title> <!-- Latest compiled and minified CSS --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous"> <!-- Optional theme --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap-theme.min.css" integrity="sha384-fLW2N01lMqjakBkx3l/M9EahuwpSfeNvV63J5ezn3uZzapT0u7EYsXMjQV+0En5r" crossorigin="anonymous"> </head> <body> <div class="container"> <h1>JWT Spring Security Demo</h1> <div class="alert alert-danger" id="notLoggedIn">Not logged in!</div> <div class="row"> <div class="col-md-6"> <div class="panel panel-default" id="login"> <div class="panel-heading"> <h3 class="panel-title">Login</h3> </div> <div class="panel-body"> <form id="loginForm"> <div class="form-group"> <input type="text" class="form-control" id="exampleInputEmail1" placeholder="username" required name="username"> </div> <div class="form-group"> <input type="password" class="form-control" id="exampleInputPassword1" placeholder="password" required name="password"> </div> <div class="well"> Try one of the following logins <ul> <li>admin & admin</li> <li>user & password</li> <li>disabled & password</li> </ul> </div> <button type="submit" class="btn btn-default">login</button> </form> </div> </div> <div id="userInfo"> <div class="panel panel-default"> <div class="panel-heading"> <h3 class="panel-title">Authenticated user</h3> </div> <div class="panel-body"> <div id="userInfoBody"></div> <button type="button" class="btn btn-default" id="logoutButton">logout</button> </div> </div> </div> </div> <div class="col-md-6"> <div class="panel panel-default" id="register"> <div class="panel-heading"> <h3 class="panel-title">Registration</h3> </div> <div class="panel-body"> <form:form method="POST" id="regForm" modelAttribute="user"> <div class="form-group"> First Name:<input type="text" class="form-control" id="exampleInputEmail1" placeholder="First Name" required name="firstname"> </div> <div class="form-group"> Last Name:<input type="text" class="form-control" id="exampleInputPassword1" placeholder="Last Name" required name="lastname"> </div> <div class="form-group"> User Name:<input type="text" class="form-control" id="exampleInputPassword1" placeholder="User Name" required name="username"> </div> <div class="form-group"> Password:<input type="password" class="form-control" id="exampleInputPassword1" placeholder="password" required name="password"> </div> <div class="form-group"> Email:<input type="email" class="form-control" id="exampleInputPassword1" placeholder="Email" required name="email"> </div> <button type="submit" class="btn btn-default">register</button> </form:form> </div> </div> </div> <div class="col-md-6"> <div class="btn-group" role="group" aria-label="..." style="margin-bottom: 16px;"> <button type="button" class="btn btn-default" id="exampleServiceBtn">call example service</button> <button type="button" class="btn btn-default" id="adminServiceBtn">call admin protected service</button> </div> <div class="panel panel-default"> <div class="panel-heading"> <h3 class="panel-title">Response:</h3> </div> <div class="panel-body"> <pre id="response"></pre> </div> </div> </div> </div> <div class="row"> <div id="loggedIn" class="col-md-6"> <div class="panel panel-default"> <div class="panel-heading"> <h3 class="panel-title">Token information</h3> </div> <div class="panel-body" id="loggedInBody"></div> </div> </div> </div> </div> <div class="modal fade" tabindex="-1" role="dialog" id="loginErrorModal"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> <h4 class="modal-title">Login unsuccessful</h4> </div> <div class="modal-body"></div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal">Close</button> </div> </div><!-- /.modal-content --> </div><!-- /.modal-dialog --> </div><!-- /.modal --> <script src="https://code.jquery.com/jquery-2.2.2.js" integrity="sha256-4/zUCqiq0kqxhZIyp4G0Gk+AOtCJsY1TA00k5ClsZYE=" crossorigin="anonymous"></script> <!-- Latest compiled and minified JavaScript --> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script> <script src="js/libs/jwt-decode.min.js"></script> <script src="js/client.js"></script> </body> </html> |
Commits for emr_demo/web_emr - Copy/src/main/resources/static/index2.jsp
Revision | Author | Commited | Message |
---|---|---|---|
2 |
![]() |
Thu 11 Oct, 2018 04:44:08 +0000 | initial commit |