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 #31 from Yoochangmin/main
Browse files Browse the repository at this point in the history
[FE][창민] :: check ,chcekdetail study 폼 완료
  • Loading branch information
Yoochangmin authored Nov 19, 2021
2 parents fcd0cf0 + 9bf80e7 commit 59f7cca
Show file tree
Hide file tree
Showing 9 changed files with 481 additions and 63 deletions.
49 changes: 49 additions & 0 deletions account/static/css/check.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
:root {
--maincolor: #CDF0FF; /*메인 색상*/
--font50: 50px; /*메인 폰트 사이즈*/
--font30: 30px;
--font15: 15px;
--fonit20: 20px;
}

.gridContainner{
display: grid;

grid-template-areas:
'LMarginLayout main RMarginLayout';
grid-template-rows: auto;
grid-template-columns: 1fr 1200px 1fr;
}

.LMarginLayout{
grid-area: LMarginLayout;
}
.RMarginLayout{
grid-area: RMarginLayout;
}

.upmargin{
height: 60px;
}
.undermargin{
height: 60px;
}
.bc{
display: flex;
background-color: var(--maincolor);
border-radius: 60px;
flex-direction: column;
justify-content: center;
padding: 30px;
}
tr td{
padding-bottom: 30px;
border: white 2px solid;
vertical-align: center;
justify-items: center;
}

table{
border: white 2px solid;
border-radius: 60px;
}
55 changes: 55 additions & 0 deletions account/static/css/check_detail.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
:root {
--maincolor: #CDF0FF; /*메인 색상*/
--font50: 50px; /*메인 폰트 사이즈*/
--font30: 30px;
--font15: 15px;
--fonit20: 20px;
}

.gridContainner{
display: grid;

grid-template-areas:
'LMarginLayout main RMarginLayout';
grid-template-rows: auto;
grid-template-columns: 1fr 1200px 1fr;
}

.main{
grid-area:main ;
background-color: var(--maincolor);
padding: 20px;
border-radius: 50px;
}
.LMarginLayout{
grid-area: LMarginLayout;
}
.RMarginLayout{
grid-area: RMarginLayout;
}

.upmargin{
height: 60px;
}
.undermargin{
height: 60px;
}
.check_containner{
display: flex;
justify-content: center;
flex-direction: column;
align-items: center;
}


.complete{
padding-bottom: 20px;
color: white;
}
button{
background-color: var(--maincolor);
}
img{
border: 2px solid white;
background-color: var(--maincolor);
}
74 changes: 54 additions & 20 deletions account/templates/check.html
Original file line number Diff line number Diff line change
@@ -1,20 +1,54 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=, initial-scale=1.0">
<title>Document</title>
</head>
<body>
[회원가입 승인]
<br>
<br>
{%for a in check_users%}
{{a.username}}|{{a.real_name}}|{{a.uni_num}}|{{a.email}}|{{a.status}}|{{a.approval}}</p>
<a href = "{% url 'check_detail' a.id %}">관리</a>
<br>
<br>
{%endfor%}
</body>
</html>
{% extends 'base.html' %}
{% load static %}

{% block link %}{% static 'css/check.css' %} {% endblock %}
{% block content %}
<div class="upmargin"></div>
<div class="gridContainner">

<div class="LMarginLayout"></div>
<div class="RMarginLayout"></div>
<div class="main">
<div id="board_name">
<h2>회원관리</h2>
</div>

<div class="boardcontainner">
<div class="">
[회원관리 상태]
</div>
<br>
<br>
<div class="bc">
<table class="bulletin_board_table">
<tr class="test"><!-- 첫번째 줄 시작 -->
<div class="hh">
<td class="id">아이디</td>
<td class="realname">이름</td>
<td class="classnumber">학번</td>
<td class="email">이메일</td>
<td class="등록형태">등록형태</td>
<td class="등록형태">승인상태</td>
</div>
</tr>
{% for a in check_users %}
<tr class="test"><!-- 첫번째 줄 시작 -->
<div class="gg">
<td class="id"> {{ a.username }}</td>
<td class="realname">{{ a.real_name }}</td>
<td class="classnumber">{{ a.uni_num }}</td>
<td class="email">{{ a.email }}</td>
<td class="등록형태">{{ a.status }} </td>
<td class="등록형태">{{ a.approval }}</td>
</div>
</tr>
{% endfor %}
</table>
</div>
</div>
</div>
</div>
<div class="undermargin"></div>


{% endblock %}
50 changes: 36 additions & 14 deletions account/templates/check_detail.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,36 @@
<!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>
<p><img src="{{check_detail_user.card.url}}" width = "200" height ="200" alt ="x"/></p>
<a href="{% url 'update_status' check_detail_user.id %}"><input type="submit" value="승인완료"></a>
<a href="{% url 'delete_user' check_detail_user.id %}"><input type="submit" value="삭제"></a>
</body>
</html>
{% extends 'base.html' %}
{% load static %}

{% block link %}{% static 'css/check_detail.css' %} {% endblock %}
{% block content %}

<div class="upmargin"></div>
<div class="gridContainner">

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

<div class="main">
<div id="board_name">
<h2>회원관리</h2>
</div>

<div class="boardcontainner">
<div class="">
[회원관리 승인]
</div>
<br>
<br>
<div class="check_containner">
<p><img src="{{ check_detail_user.card.url }}" width="500" height="500" alt="x"/></p>
<div class="complete"><a href="{% url 'update_status' check_detail_user.id %}"><button type="submit" value="승인완료" class="btn btn-info">승인완료</a></div>
<div class="delete"><a href="{% url 'delete_user' check_detail_user.id %}"><button type="submit" value="삭제" class="btn btn-info">삭제</a></div>
</div>
</div>
</div>
</div>
</div>
<div class="undermargin"></div>


{% endblock %}
File renamed without changes.
1 change: 1 addition & 0 deletions school/static/css/mainpage.css
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ html{
height: auto;
border-bottom: black 1px solid ;
padding: 10px;
background-color: var(--maincolor);
}

.writeList > .title{
Expand Down
Loading

0 comments on commit 59f7cca

Please sign in to comment.