2012-06-30 02:26:21 -03:00
|
|
|
<%@page pageEncoding="UTF-8" %>
|
2012-04-05 00:01:51 -03:00
|
|
|
<%@ include file="/jsp/init.jsp" %>
|
2012-02-12 02:55:42 -03:00
|
|
|
|
2012-06-30 02:26:21 -03:00
|
|
|
<%--@elvariable id="isHsql" type="boolean"--%>
|
|
|
|
|
2012-06-06 00:48:46 -03:00
|
|
|
<script type="text/javascript" language="javascript">
|
2012-09-10 23:51:53 -03:00
|
|
|
$(function () {
|
|
|
|
$('.btn-primary').click(function () {
|
2012-06-06 00:48:46 -03:00
|
|
|
$(this).button("loading");
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
2012-09-10 23:51:53 -03:00
|
|
|
<div id="row-fluid">
|
|
|
|
<div class="span1"></div>
|
|
|
|
<div class="span5" style="margin-top: 20px">
|
|
|
|
<h1><spring:message code="WELCOME_TO_WISEMAPPING"/></h1>
|
|
|
|
<spring:message code="WELCOME_DETAILS"/>
|
2012-02-12 02:55:42 -03:00
|
|
|
</div>
|
2012-09-10 23:51:53 -03:00
|
|
|
<div class="span1"></div>
|
|
|
|
<div id="login" class="fform span4">
|
2012-02-12 02:55:42 -03:00
|
|
|
<h1>
|
|
|
|
<spring:message code="SIGN_IN"/>
|
|
|
|
</h1>
|
|
|
|
|
2012-05-13 18:28:00 -03:00
|
|
|
<form action="<c:url value='/c/j_spring_security_check'/>" method="POST">
|
2012-05-19 01:19:55 -03:00
|
|
|
<fieldset>
|
2012-05-24 00:35:17 -03:00
|
|
|
<label for="email"><spring:message code="EMAIL"/></label>
|
|
|
|
<input type='email' tabindex="1" id="email" name='j_username' required="required"/>
|
2012-02-12 02:55:42 -03:00
|
|
|
|
2012-05-24 00:35:17 -03:00
|
|
|
<label for="password"><spring:message code="PASSWORD"/></label>
|
|
|
|
<input type='password' tabindex="2" id="password" name='j_password' required="required"/>
|
2012-05-19 01:19:55 -03:00
|
|
|
|
2012-05-24 00:35:17 -03:00
|
|
|
<c:if test="${not empty param.login_error}">
|
2012-05-19 01:58:37 -03:00
|
|
|
<c:choose>
|
2012-05-24 00:35:17 -03:00
|
|
|
<c:when test="${param.login_error == 3}">
|
|
|
|
<div class="alert alert-error"><spring:message code="USER_INACTIVE"/></div>
|
|
|
|
</c:when>
|
|
|
|
<c:otherwise>
|
|
|
|
<div class="alert alert-error"><spring:message code="LOGIN_ERROR"/></div>
|
|
|
|
</c:otherwise>
|
2012-05-19 01:58:37 -03:00
|
|
|
</c:choose>
|
2012-05-24 00:35:17 -03:00
|
|
|
</c:if>
|
2012-05-19 01:58:37 -03:00
|
|
|
|
2012-05-24 00:35:17 -03:00
|
|
|
<div class="form-inline">
|
2012-08-15 00:07:03 -03:00
|
|
|
<button class="btn btn-primary" data-loading-text="<spring:message code="SIGN_ING"/>" tabindex="4">
|
2012-06-06 00:48:46 -03:00
|
|
|
<spring:message code="SIGN_IN"/></button>
|
|
|
|
|
2012-08-15 00:07:03 -03:00
|
|
|
<input type="checkbox" id="rememberme" name="_spring_security_remember_me" tabindex="3"/>
|
2012-05-24 00:35:17 -03:00
|
|
|
<label for="rememberme"><spring:message code="REMEMBER_ME"/></label>
|
|
|
|
</div>
|
2012-05-19 01:19:55 -03:00
|
|
|
</fieldset>
|
2012-02-12 02:55:42 -03:00
|
|
|
</form>
|
2012-06-16 14:32:26 -03:00
|
|
|
<a href="<c:url value="/c/user/resetPassword"/>"><spring:message code="FORGOT_PASSWORD"/></a>
|
2012-02-12 02:55:42 -03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2012-09-10 23:51:53 -03:00
|
|
|
<div class="row-fluid">
|
|
|
|
<div id="register" class="span12">
|
|
|
|
<b><spring:message code="NOT_READY_A_USER"/></b>
|
|
|
|
<spring:message code="NOT_READY_A_USER_MESSAGE"/>
|
|
|
|
<a href="c/user/registration">
|
|
|
|
<spring:message code="JOIN_NOW"/>
|
|
|
|
</a>
|
|
|
|
</div>
|
2012-02-12 02:55:42 -03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<c:if test="${isHsql== 'true'}">
|
2012-09-10 23:51:53 -03:00
|
|
|
<div class="row-fluid">
|
|
|
|
<div class="alert alert-info span offset12">
|
|
|
|
<span class="label label-important"><spring:message code="WARNING"/></span> <spring:message
|
|
|
|
code="NO_PRODUCTION_DATABASE_CONFIGURED"/> <a
|
|
|
|
href="http://www.wisemapping.org/documentation/configu"><spring:message code="HERE"/></a>.
|
|
|
|
</div>
|
2012-04-05 00:01:51 -03:00
|
|
|
</div>
|
2012-02-12 02:55:42 -03:00
|
|
|
</c:if>
|