Created
April 1, 2017 15:24
-
-
Save nck2/bff5617422b6f56abee26bd8929b5b7f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% load staticfiles %} | |
<!DOCTYPE html> | |
<html lang="ko"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<link href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet"> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script> | |
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script> | |
<link rel="stylesheet" href="{% static 'classnoti/css/classnoti.css' %}" > | |
<title>모바일용 세부</title> | |
</head> | |
<body> | |
<p class="container"> | |
{% if torf == 1 %} | |
<div class="indentcc">[알림] 저장하였습니다.!!</div> | |
{% elif torf == 2 %} | |
<div class="indentcc">[알림] 비번확인필요!</div> | |
{% elif torf == 3 %} | |
<div class="indentcc">[알림] 학생이름을 선택하세요!</div> | |
{% endif %} | |
<div class="btn-group indentcc" role="group" aria-label="연습"> | |
<a href="{% url 'classnoti:mobilesebu' ban=1 %}" class="btn btn-default" role="button">1반</a> | |
<a href="{% url 'classnoti:mobilesebu' ban=2 %}" class="btn btn-default" role="button">2반</a> | |
<a href="{% url 'classnoti:mobilesebu' ban=3 %}" class="btn btn-default" role="button">3반</a> | |
</div> | |
<p> | |
<form action="" method="post" class="indentcc" > | |
<p class="input-group input-group-sm" style="width:160px;"> | |
<span class="input-group-addon" id="basic-addon1">@</span> | |
<input type="password" class="form-control" placeholder="Password" aria-describedby="basic-addon1" name="password1"> | |
<input type="hidden" name="ban" value={{ban}}> | |
</p> | |
{% csrf_token %} | |
<div class="row"> | |
<div class="col-xs-6 col-md-6"> | |
<!-- {{formde.as_ul}} --> | |
{{formde.contents}}<br> | |
<input type="submit" value="저장" class="btn btn-default"/> | |
{{formde.created_date.as_hidden}} | |
<!-- {{formde.student }} --> | |
<!-- {{formde.created_date.as_hidden}} --> | |
<!-- <input type="submit" value="저장" /> --> | |
</div> | |
<div class="col-xs-6 col-md-6"> | |
<!-- {{formde.contents}} --> | |
{{formde.student }} | |
</div> | |
</div> | |
</form> | |
</p> | |
<form action="{% url 'classnoti:logpr' %}" method="post" class="indentcc"> | |
<p class="input-group input-group-sm" style="width:160px;"> | |
<span class="input-group-addon" id="basic-addon1">@</span> | |
{% csrf_token %} | |
<input type="password" class="form-control" placeholder="Password" aria-describedby="basic-addon1" name="password2"> | |
</p> | |
<input type="submit" value="수업사이트로!!" class="btn btn-default"/> | |
</form> | |
<div style="padding-left: 40px;"> | |
<h3>{{ban}}반 공지사항</h3> | |
{% for post in posts %} | |
{% if post.noticeall %} | |
<div class="label label-warning">{{post.created_date}}(공지)</div> | |
{% else %} | |
<div class="label label-info">{{post.created_date}}</div> | |
{% endif %} | |
<div>{{post.mytext|safe|linebreaks}}</div> | |
<br> | |
{% endfor %} | |
</div> | |
</p> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment