FAISP/src/main/resources/templates/login/login.html

87 lines
3.8 KiB
HTML
Raw Normal View History

<!DOCTYPE html>
<html lang="ko" xmlns:th="http://www.thymeleaf.org"
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
layout:decorate="~{layout/layout}">
<th:block layout:fragment="css">
<link rel="stylesheet" th:href="@{/css/login/login.css}">
</th:block>
<th:block layout:fragment="script">
<script type="text/javascript" th:src="@{/js/login/login.js}"></script>
</th:block>
<div layout:fragment="content">
<div class="index_warp form-login">
<form action="/login" method="post">
<!-- Spring Security가 적용되면 POST 방식으로 보내는 모든 데이터는 csrf 토큰 값이 필요 -->
<input type="hidden" name="_csrf_header" th:value="${_csrf.headerName}"/>
<input type="hidden" th:name="${_csrf.parameterName}" th:value="${_csrf.token}"/>
<p th:if="${loginError}" class="error text-warning login-Fail">로그인에 실패하였습니다.</p>
<!-- 로그인 시 아이디의 name 애트리뷰트 값은 username -->
<!-- 파라미터명을 변경하고 싶을 경우 config class formlogin()에서 .usernameParameter("") 명시 -->
<h1>사이버외사정보시스템</h1>
<h2>FOREIGN AFFAIRS INTELLIGENCE CYBER SYSTEM</h2>
<ul>
<li>
<div><img src="img/logo_big.png" alt="해양경찰청"></div>
</li>
<li>
<img src="img/logo.png" alt="해양경찰청">
<h3>FOREIGN AFFAIRS DIVISION</h3>
<h4>LOGIN</h4>
<input type="text" name="username" id="username" placeholder="아이디" onfocus="this.placeholder=''"
onblur="this.placeholder='아이디'" class="form_01 form_log">
<input type="password" name="password" id="password" placeholder="비밀번호" onfocus="this.placeholder=''"
onblur="this.placeholder='비밀번호'" class="form_01 form_pw">
<!-- <input name="idcchk" type="checkbox" id="idcchk" class="form_02"> 아이디저장-->
<!--<div class="checkbox mb-3">
<label>
<input type="checkbox" class="disabled" value="remember-me"> 계정저장(비활성화)
</label>
</div>-->
<input type="submit" name="login" id="login" value="로그인" class="btn_login">
<!--<div class="join">
<a href="#" data-bs-toggle="modal" data-bs-target="#userInsertModal">회원가입</a>
</div>-->
<div class="row my-2 justify-content-between">
<div class="col-auto">
<a href="#" id="userSginModal">회원가입</a>
</div>
</div>
<a href="#">
<div class="find">아이디/패스워드찾기</div>
</a>
</li>
</ul>
</form>
</div>
</div>
<div class="modal fade" id="userInsertModal" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1" aria-labelledby="userEditModalLabel" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content " id="userInsertModalContent">
<div class="modal-header bg-dark">
<h5 class="modal-title text-white" id="userInsertModalLabel">사용자 신청</h5>
<button type="button" class="btn-close f-invert" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<div class="mb-3 mt-3 row">
<label for="dicCode" class="col-sm-2 col-form-label col-form-label-sm text-center ">공무원식별번호</label>
<div class="col-sm-3">
<input type="text" class="form-control form-control-sm" id="dicCode" name="dicCode" autocomplete="off">
</div>
<button type="button" class="btn btn-sm btn-outline-primary col-sm-1" id="dicCodeSearchBtn">검색</button>
</div>
</div>
</div>
</div>
</div>
</div>
</html>