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

Commit

Permalink
Merge pull request #35 from eunseoJeong/main
Browse files Browse the repository at this point in the history
[BE][은서] :: 게시판마다 post구현
  • Loading branch information
eunseoJeong authored Nov 19, 2021
2 parents 60d7c63 + 77c0eb0 commit 18a4985
Show file tree
Hide file tree
Showing 10 changed files with 939 additions and 31 deletions.
29 changes: 8 additions & 21 deletions account/templates/login.html
Original file line number Diff line number Diff line change
@@ -1,20 +1,9 @@
{%extends "base.html"%}
{% load static %}
<!DOCTYPE html>
<html lang="kr">
<head>
<meta charset="UTF-8">
<title>mainpage</title>
<link rel ="stylesheet" href=" {% static 'css/login.css' %}">


</head>
<body>
{%block title%}로그인{%endblock%}
{%block link%}{% static 'css/login.css' %}{%endblock%}
{%block content%}
<div class="containnerLayout">





<div class="upLayout"></div>
<div class="LMarginLayout"></div>

Expand All @@ -35,7 +24,7 @@
<div class ="sureLogin"><button type="submit" id="button">로그인</button></div>
<p>{{ error }}</p>
</form>
{# <div class="email">#}
<!-- {# <div class="email">#}
{# <div class="email_name">아이디</div>#}
{# <div class="email_bar">#}
{# <div class="idnav">이메일</div>#}
Expand All @@ -52,16 +41,14 @@
{# <div class="sureLogin">#}
{# <div class="pwnav">로그인하기</div>#}
{# </div>#}
{# </div>#} -->
<div class="undercontent">
<div class="loginbutton" id ="join"><a href ={% url 'signup' %}>회원가입</a></div>
<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>
{%endblock%}
47 changes: 47 additions & 0 deletions school/templates/club_new.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{% extends 'base.html' %}
{% load static %}

{% block title %} 동아리게시판 업로드{% endblock %}
{% block link %}{% static 'css/boardform.css' %}{% endblock %}

{% block content %}

<div id="board_name">
<h2>동아리게시판 업로드</h2>
</div>

<div class="boardcontainner">
<form id="form" action = "{%url 'club_post'%}" method="post" enctype="multipart/form-data">
{% csrf_token %}
<div id="title">
<a>제목</a>
<input id="input" type="text" name="title">
</div>
<div class="imageset">
<label for="chooseFile">
👉 CLICK HERE! 👈
</label>
</div>
<input type="file" id="chooseFile" name="image" accept="image/*" onchange="loadFile(this)">

<div id="text">
<div id="atag"><a>본문</a></div>
<textarea style="resize: none" rows="20" cols="30" name="body"></textarea>
</div>
<div id="submit">
<input type="submit" value="글쓰기">
</div>
</form>
</div>

</div>
<!-- <form action = "{%url 'notice_post'%}" method = "POST" enctype = "multipart/form-data">
{% csrf_token %}
<input type = "text" name = "title" placeholder="제목">
<!-- <input type = "text" name = "author" placeholder="작성자"> -->
<!-- <textarea name = "body" cols = "100" row = "100" placeholder="내용"></textarea>
첨부파일: <input type = "file" name = "image">
<button type = "submit">작성하기</button>
</form>
</body> -->
{% endblock %}
47 changes: 47 additions & 0 deletions school/templates/contest_new.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{% extends 'base.html' %}
{% load static %}

{% block title %} 공모전게시판 업로드{% endblock %}
{% block link %}{% static 'css/boardform.css' %}{% endblock %}

{% block content %}

<div id="board_name">
<h2>공모전게시판 업로드</h2>
</div>

<div class="boardcontainner">
<form id="form" action = "{%url 'contest_post'%}" method="post" enctype="multipart/form-data">
{% csrf_token %}
<div id="title">
<a>제목</a>
<input id="input" type="text" name="title">
</div>
<div class="imageset">
<label for="chooseFile">
👉 CLICK HERE! 👈
</label>
</div>
<input type="file" id="chooseFile" name="image" accept="image/*" onchange="loadFile(this)">

<div id="text">
<div id="atag"><a>본문</a></div>
<textarea style="resize: none" rows="20" cols="30" name="body"></textarea>
</div>
<div id="submit">
<input type="submit" value="글쓰기">
</div>
</form>
</div>

</div>
<!-- <form action = "{%url 'notice_post'%}" method = "POST" enctype = "multipart/form-data">
{% csrf_token %}
<input type = "text" name = "title" placeholder="제목">
<!-- <input type = "text" name = "author" placeholder="작성자"> -->
<!-- <textarea name = "body" cols = "100" row = "100" placeholder="내용"></textarea>
첨부파일: <input type = "file" name = "image">
<button type = "submit">작성하기</button>
</form>
</body> -->
{% endblock %}
47 changes: 47 additions & 0 deletions school/templates/free_new.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{% extends 'base.html' %}
{% load static %}

{% block title %} 자유게시판 업로드{% endblock %}
{% block link %}{% static 'css/boardform.css' %}{% endblock %}

{% block content %}

<div id="board_name">
<h2>자유게시판 업로드</h2>
</div>

<div class="boardcontainner">
<form id="form" action = "{%url 'free_post'%}" method="post" enctype="multipart/form-data">
{% csrf_token %}
<div id="title">
<a>제목</a>
<input id="input" type="text" name="title">
</div>
<div class="imageset">
<label for="chooseFile">
👉 CLICK HERE! 👈
</label>
</div>
<input type="file" id="chooseFile" name="image" accept="image/*" onchange="loadFile(this)">

<div id="text">
<div id="atag"><a>본문</a></div>
<textarea style="resize: none" rows="20" cols="30" name="body"></textarea>
</div>
<div id="submit">
<input type="submit" value="글쓰기">
</div>
</form>
</div>

</div>
<!-- <form action = "{%url 'notice_post'%}" method = "POST" enctype = "multipart/form-data">
{% csrf_token %}
<input type = "text" name = "title" placeholder="제목">
<!-- <input type = "text" name = "author" placeholder="작성자"> -->
<!-- <textarea name = "body" cols = "100" row = "100" placeholder="내용"></textarea>
첨부파일: <input type = "file" name = "image">
<button type = "submit">작성하기</button>
</form>
</body> -->
{% endblock %}
47 changes: 47 additions & 0 deletions school/templates/graduate_new.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{% extends 'base.html' %}
{% load static %}

{% block title %} 졸업생게시판 업로드{% endblock %}
{% block link %}{% static 'css/boardform.css' %}{% endblock %}

{% block content %}

<div id="board_name">
<h2>졸업생게시판 업로드</h2>
</div>

<div class="boardcontainner">
<form id="form" action = "{%url 'graduate_post'%}" method="post" enctype="multipart/form-data">
{% csrf_token %}
<div id="title">
<a>제목</a>
<input id="input" type="text" name="title">
</div>
<div class="imageset">
<label for="chooseFile">
👉 CLICK HERE! 👈
</label>
</div>
<input type="file" id="chooseFile" name="image" accept="image/*" onchange="loadFile(this)">

<div id="text">
<div id="atag"><a>본문</a></div>
<textarea style="resize: none" rows="20" cols="30" name="body"></textarea>
</div>
<div id="submit">
<input type="submit" value="글쓰기">
</div>
</form>
</div>

</div>
<!-- <form action = "{%url 'notice_post'%}" method = "POST" enctype = "multipart/form-data">
{% csrf_token %}
<input type = "text" name = "title" placeholder="제목">
<!-- <input type = "text" name = "author" placeholder="작성자"> -->
<!-- <textarea name = "body" cols = "100" row = "100" placeholder="내용"></textarea>
첨부파일: <input type = "file" name = "image">
<button type = "submit">작성하기</button>
</form>
</body> -->
{% endblock %}
47 changes: 47 additions & 0 deletions school/templates/market_new.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{% extends 'base.html' %}
{% load static %}

{% block title %} 중고서적게시판 업로드{% endblock %}
{% block link %}{% static 'css/boardform.css' %}{% endblock %}

{% block content %}

<div id="board_name">
<h2>중고서적게시판 업로드</h2>
</div>

<div class="boardcontainner">
<form id="form" action = "{%url 'market_post'%}" method="post" enctype="multipart/form-data">
{% csrf_token %}
<div id="title">
<a>제목</a>
<input id="input" type="text" name="title">
</div>
<div class="imageset">
<label for="chooseFile">
👉 CLICK HERE! 👈
</label>
</div>
<input type="file" id="chooseFile" name="image" accept="image/*" onchange="loadFile(this)">

<div id="text">
<div id="atag"><a>본문</a></div>
<textarea style="resize: none" rows="20" cols="30" name="body"></textarea>
</div>
<div id="submit">
<input type="submit" value="글쓰기">
</div>
</form>
</div>

</div>
<!-- <form action = "{%url 'notice_post'%}" method = "POST" enctype = "multipart/form-data">
{% csrf_token %}
<input type = "text" name = "title" placeholder="제목">
<!-- <input type = "text" name = "author" placeholder="작성자"> -->
<!-- <textarea name = "body" cols = "100" row = "100" placeholder="내용"></textarea>
첨부파일: <input type = "file" name = "image">
<button type = "submit">작성하기</button>
</form>
</body> -->
{% endblock %}
2 changes: 2 additions & 0 deletions school/templates/rank.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

{% for row in rank %}
{{row.real_name}}
{{row.uni_num}}
{{row.username}}
{{row.rank_count}}
<br>
{% endfor %}
Expand Down
47 changes: 47 additions & 0 deletions school/templates/study_new.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{% extends 'base.html' %}
{% load static %}

{% block title %} 스터디게시판 업로드{% endblock %}
{% block link %}{% static 'css/boardform.css' %}{% endblock %}

{% block content %}

<div id="board_name">
<h2>스터디게시판 업로드</h2>
</div>

<div class="boardcontainner">
<form id="form" action = "{%url 'study_post'%}" method="post" enctype="multipart/form-data">
{% csrf_token %}
<div id="title">
<a>제목</a>
<input id="input" type="text" name="title">
</div>
<div class="imageset">
<label for="chooseFile">
👉 CLICK HERE! 👈
</label>
</div>
<input type="file" id="chooseFile" name="image" accept="image/*" onchange="loadFile(this)">

<div id="text">
<div id="atag"><a>본문</a></div>
<textarea style="resize: none" rows="20" cols="30" name="body"></textarea>
</div>
<div id="submit">
<input type="submit" value="글쓰기">
</div>
</form>
</div>

</div>
<!-- <form action = "{%url 'notice_post'%}" method = "POST" enctype = "multipart/form-data">
{% csrf_token %}
<input type = "text" name = "title" placeholder="제목">
<!-- <input type = "text" name = "author" placeholder="작성자"> -->
<!-- <textarea name = "body" cols = "100" row = "100" placeholder="내용"></textarea>
첨부파일: <input type = "file" name = "image">
<button type = "submit">작성하기</button>
</form>
</body> -->
{% endblock %}
Loading

0 comments on commit 18a4985

Please sign in to comment.