75 lines
2.9 KiB
HTML
75 lines
2.9 KiB
HTML
<!DOCTYPE html>
|
|
<html layout:decorate="~{layout/layout-login}" xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
|
|
xmlns:th="http://www.thymeleaf.org">
|
|
|
|
<div layout:fragment="content">
|
|
<div id="content" role="main">
|
|
<div class="inner">
|
|
<div class="logo">
|
|
<img th:src="@{/static/assets/images/common/logo_kri.svg}" class="profile-img" alt="kri 로고 이미지" />
|
|
</div>
|
|
<div class="content-inner">
|
|
<section class="form-area">
|
|
<form method="post" th:action="@{/login}" name="loginForm">
|
|
<div class="input-group">
|
|
<div class="input-label">
|
|
<p class="label-txt">
|
|
<label for="floatingInput">아이디</label>
|
|
</p>
|
|
</div>
|
|
<div class="component-input">
|
|
<div class="input-field">
|
|
<input type="text" id="floatingInput" name="username" placeholder="아이디 입력" maxlength="15">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="input-group">
|
|
<div class="input-label">
|
|
<p class="label-txt">
|
|
<label for="floatingPassword">비밀번호</label>
|
|
</p>
|
|
</div>
|
|
<div class="component-input">
|
|
<div class="input-field">
|
|
<input type="password" id="floatingPassword" name="password" placeholder="비밀번호 입력" maxlength="5">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="component-btns">
|
|
<button type="submit" class="btn btn-primary btn-full" >
|
|
<span class="btn-txt">로그인</span>
|
|
</button>
|
|
</div>
|
|
</form>
|
|
</section>
|
|
<ul class="logo-list">
|
|
<li>
|
|
<img th:src="@{/static/assets/images/common/logo_forest.svg}" class="profile-img" alt="kri 로고 이미지" />
|
|
</li>
|
|
<li>
|
|
<img th:src="@{/static/assets/images/common/logo_kofpi.svg}" class="profile-img" alt="kri 로고 이미지" />
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<!-- <div class="row" th:if="${session['SPRING_SECURITY_LAST_EXCEPTION']} != null">
|
|
<div class="alert alert-danger fw-bold"
|
|
th:utext="${session['SPRING_SECURITY_LAST_EXCEPTION'].message}">
|
|
</div>
|
|
</div>-->
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<th:block layout:fragment="script">
|
|
<script th:inline="javascript">
|
|
|
|
document.addEventListener('DOMContentLoaded', function() {
|
|
const errorMessage = /*[[${session['SPRING_SECURITY_LAST_EXCEPTION']?.message}]]*/ null;
|
|
if (errorMessage) {
|
|
alert("입력하신 정보가 맞지 않습니다.\n 다시 확인해주세요.");
|
|
document.loginForm.reset();
|
|
}
|
|
});
|
|
</script>
|
|
</th:block>
|
|
</html>
|