Page 573 - Nodejs 교과서 개정2판
P. 573

<label	for="password">비밀번호</label>
           																<input	type="password"	id="password"	name="password"	required>
           														</div>
           														<a	href="/join"	id="join"	class="btn">회원가입</a>
           														<button	id="login"	class="btn"	type="submit">로그인</button>
           												</form>
           										{%	endif	%}
           								</div>
           								<footer>
           										Made	by <a	href="https://www.zerocho.com"	target="_blank">ZeroCho</a>
           								</footer>
           								{%	block	good	%}
           								{%	endblock	%}
           						</div>
           						{%	block	content	%}
           						{%	endblock	%}
           				</div>
           				<script>
           						window.onload	=	()	=>	{
           								if	(new	URL(location.href).searchParams.get('loginError'))	{
           										alert(new	URL(location.href).searchParams.get('loginError'));
           								}
           						};
           				</script>
           		</body>
           </html>




         ӒܻҊ ݫੋ ചݶਸ ׸׼ೞח NBJO IUNM ౵ੌਸ ੘ࢿ೤פ׮

          views/main.html

           {%	extends	'layout.html'	%}


           {%	block	content	%}
           		<div	class="timeline">
           				<h2>경매	진행	목록</h2>
           				<table	id="good-list">
           						<tr>
           								<th>상품명</th>
           								<th>이미지</th>
           								<th>시작	가격</th>
           								<th>종료	시간</th>
           								<th>입장</th>
           						</tr>
           						{%	for	good	in	goods	%}
   568   569   570   571   572   573   574   575   576   577   578