Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

Commit

Permalink
[BE][은서] :: url연결
Browse files Browse the repository at this point in the history
  • Loading branch information
eunseoJeong committed Nov 19, 2021
1 parent 489a277 commit d0d651d
Show file tree
Hide file tree
Showing 3 changed files with 129 additions and 103 deletions.
112 changes: 60 additions & 52 deletions account/templates/login.html
Original file line number Diff line number Diff line change
@@ -1,54 +1,62 @@
{%extends "base.html"%}
{% load static %}
{%block title%}로그인{%endblock%}
{%block link%}{% static 'css/login.css' %}{%endblock%}
{%block content%}
{%load static%}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel ="stylesheet" href="{%static 'css/login.css'%}">
<title>로그인</title>
</head>
<body>
<div class="containnerLayout">
<div class="upLayout"></div>
<div class="LMarginLayout"></div>

<div class="LoginLayout">
<div class="LoginCenter">
<div class="logo">
<img src = "{% static 'img/logo.png' %}" alt ="logo">
</div>
<div class="membership">로그인</div>


<form method="POST" action="{% url 'login' %}">
{% csrf_token %}
<div class="email">아이디</div>
<input class="email_submit_bar" type="text" name="username" placeholder="아이디를 입력하세요."><br>
<div class="submit">비밀번호</div>
<input class="email_submit_bar" type="password" name="password" placeholder="비밀번호를 입력하세요.">
<div class ="sureLogin"><button type="submit" id="button">로그인</button></div>
<p>{{ error }}</p>
</form>
<!-- {# <div class="email">#}
{# <div class="email_name">아이디</div>#}
{# <div class="email_bar">#}
{# <div class="idnav">이메일</div>#}
{# </div>#}
{# </div>#}
{##}
{# <div class="emailContainner"></div>#}
{# <div class="email_submit">#}
{# <div class="submit">비밀번호</div>#}
{# <div class="email_submit_bar">#}
{# <div class="pwnav">비밀번호</div>#}
{# </div>#}
{# </div>#}
{# <div class="sureLogin">#}
{# <div class="pwnav">로그인하기</div>#}
{# </div>#} -->
<div class="undercontent">
<div class="loginbutton" id ="join"><a href = {% url 'signup' %}>회원가입</a></div>
<div class="upLayout"></div>
<div class="LMarginLayout"></div>

<div class="LoginLayout">
<div class="LoginCenter">
<div class="logo">
<img src = '{% static 'img/logo.png'%}' alt ="logo">
</div>
</div>
</div>

<div class="RMarginLayout"></div>
<div class="underLayout"></div>
</div>
{%endblock%}
<div class="membership">로그인</div>


<form method="POST" action="{% url 'login' %}">
{% csrf_token %}
<div class="email">아이디</div>
<input class="email_submit_bar" type="text" name="username" placeholder="아이디를 입력하세요."><br>
<div class="submit">비밀번호</div>
<input class="email_submit_bar" type="password" name="password" placeholder="비밀번호를 입력하세요.">
<div class ="sureLogin"><button type="submit" id="button">로그인</button></div>
<p>{{ error }}</p>
</form>
<!-- {# <div class="email">#}
{# <div class="email_name">아이디</div>#}
{# <div class="email_bar">#}
{# <div class="idnav">이메일</div>#}
{# </div>#}
{# </div>#}
{##}
{# <div class="emailContainner"></div>#}
{# <div class="email_submit">#}
{# <div class="submit">비밀번호</div>#}
{# <div class="email_submit_bar">#}
{# <div class="pwnav">비밀번호</div>#}
{# </div>#}
{# </div>#}
{# <div class="sureLogin">#}
{# <div class="pwnav">로그인하기</div>#}
{# </div>#} -->
<div class="undercontent">
<div class="loginbutton" id ="join"><a href = {% url 'signup' %}>회원가입</a></div>
</div>
</div>
</div>

<div class="RMarginLayout"></div>
<div class="underLayout"></div>
</div>

</body>
</html>
10 changes: 5 additions & 5 deletions school/templates/club_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
<div class="middleboard">
<div class="mainboard">
<i class="content">
<a>자유 게시판</a>
<a>스터디 게시판</a>
<a>공모전 게시판</a>
<a>졸업생 게시판</a>
<a>동아리 게시판</a>
<a href="{%url 'free'%}">자유 게시판</a>
<a href="{%url 'study'%}">스터디 게시판</a>
<a href="{%url 'contest'%}">공모전 게시판</a>
<a href="{%url 'graduate'%}">졸업생 게시판</a>
<a href="{%url 'club'%}">동아리 게시판</a>
</i>
</div>
</div>
Expand Down
110 changes: 64 additions & 46 deletions school/templates/study.html
Original file line number Diff line number Diff line change
@@ -1,84 +1,102 @@
{% extends 'base.html' %}
{% load static %}
{% block title %} 공부 게시판{% endblock %}
{% block title %}스터디 게시판{% endblock %}
{% block link %}{% static 'css/study.css' %}{% endblock %}

{% block content %}
{% block content %} -->
<div class="containner">
<div class="header"></div>
<div class="marginL"></div>
<div class="boardnav">
<div class="middleboard">
<div class="mainboard">
<i class="content">
<a>자유 게시판</a>
<a>스터디 게시판</a>
<a>공모전 게시판</a>
<a>졸업생 게시판</a>
<a>동아리 게시판</a>
<a href="{%url 'free'%}">자유 게시판</a>
<a href="{%url 'study'%}">스터디 게시판</a>
<a href="{%url 'contest'%}">공모전 게시판</a>
<a href="{%url 'graduate'%}">졸업생 게시판</a>
<a href="{%url 'club'%}">동아리 게시판</a>
</i>
</div>
</div>
</div>
<div class="marginR"></div>
<div class="main">
<div class="name">스터디</div>
<div class="name">자유게시판</div>
<div class="h"></div>

<div class="writetext">
<div class="test1">
<a href = "{%url 'study_post'%}"><button type="button" class="btn btn-light">글을 작성해 주세요</button></a>
<textarea class="writearea" placeholder="글을 작성해 주세요"></textarea>
</div>
<div class="test2">
<button type="button" class="btn btn-light">Light</button>
</div>
</div>


<div class="h"></div>

<div class="writeList">
<div class="sort_bar">
<div>ㅎ2ㅎ2</div>


{% for a in Study_boards %}
<div class="writeconpent">
<div class="mains">
<h2>제목 : {{ a.Study_title }}</h2> {# 제목 #}
<div class="sub">
<h2 class="sub_1"> 시간 : {{ a.Study_pub_date }}</h2> {# 시간 #}
<h2 class="sub_1">작성자 :{{ a.Study_author }}</h2> {# 작성자 #}
</div>
</div>
<div class="notice_board">
<h2> {{ a.Study_body }}</h2> {# 본문 #}
</div>
<a href="{% url 'study_detail' a.id %}" class="look">자세히 보기</a>
</div>
{%endfor%}
</div>
<div class="mainstory">help...</div>
</div>
</div>

<div class="number">
<nav aria-label="Page navigation example">
<ul class="pagination">

{% if Study_boards.has_previous %}
<a href="?page={{ Study_boards.previous_page_number }}"><</a>
{% endif %}

<span>{{ Study_boards.number }}</span>
<span>/</span>
<span>{{ Study_boards.paginator.num_pages }}</span>

{% if Study_boards.has_next %}
<a href="?page={{ Study_boards.next_page_number }}">></a>
{% endif %}

</ul>
</nav>
</div>
<div class="number">
<nav aria-label="Page navigation example">
<ul class="pagination">
<li class="page-item">
<a class="page-link" href="#" aria-label="Previous">
<span aria-hidden="true">&laquo;</span>
<span class="sr-only"></span>
</a>
</li>
<li class="page-item"><a class="page-link" href="#">1</a></li>
<li class="page-item"><a class="page-link" href="#">2</a></li>
<li class="page-item"><a class="page-link" href="#">3</a></li>
<li class="page-item">
<a class="page-link" href="#" aria-label="Next">
<span aria-hidden="true">&raquo;</span>
<span class="sr-only"></span>
</a>
</li>
</ul>
</nav>
</div>
</div>
<div class="undermargin"></div>

</div>

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<form id="form" method="post" enctype="multipart/form-data">
{% for a in Study_boards %}
<div>
<a href="{% url 'new'}">글쓰기</a>
<a>제목</a>
<h2>{{ a.Study_title }}</h2>
</div>

<h2>{{ a.Study_pub_date }}</h2>
<h2>{{ a.Study_author }}</h2>
<h2>{{ a.Study_body }}</h2>
</div>
{% endfor %}
</form>
</body>
</html>


{% endblock %}


Expand Down

0 comments on commit d0d651d

Please sign in to comment.