From 5bd3311371eddda6952ea85b41c6f59d36d7dd3b Mon Sep 17 00:00:00 2001 From: Weitian LI Date: Sun, 20 Apr 2014 17:01:59 +0800 Subject: * updated django_skaschool/settings.py o LOGIN_URL, LOGIN_REDIRECT_URL, LOGOUT_URL * added login/logout views to account urls.py * added account templates for login, logout, profile --- account/templates/account/login.html | 24 ++++++++++++++++++++++++ account/templates/account/logout.html | 19 +++++++++++++++++++ account/templates/account/profile.html | 21 +++++++++++++++++++++ 3 files changed, 64 insertions(+) create mode 100644 account/templates/account/login.html create mode 100644 account/templates/account/logout.html create mode 100644 account/templates/account/profile.html (limited to 'account/templates') diff --git a/account/templates/account/login.html b/account/templates/account/login.html new file mode 100644 index 0000000..b41844e --- /dev/null +++ b/account/templates/account/login.html @@ -0,0 +1,24 @@ +{% extends 'base.html' %} +{% load staticfiles %} +{% load url from future %} +{% load bootstrap3 %} + +{# login template #} + +{% block title %} +登录 | 2014 SKA Summer School +{% endblock %} + +{% block content %} +
+

登录

+
+
+ {% csrf_token %} + {% bootstrap_form form layout='horizontal' %} + {% buttons submit='提交' reset='取消' layout='horizontal' %}{% endbuttons %} +
+
+{% endblock %} + +{# vim: set ts=8 sw=2 tw=0 fenc=utf-8 ft=htmldjango.html: #} diff --git a/account/templates/account/logout.html b/account/templates/account/logout.html new file mode 100644 index 0000000..7e3ac4a --- /dev/null +++ b/account/templates/account/logout.html @@ -0,0 +1,19 @@ +{% extends 'base.html' %} +{% load staticfiles %} +{% load url from future %} +{% load bootstrap3 %} + +{# login template #} + +{% block title %} +已退出 | 2014 SKA Summer School +{% endblock %} + +{% block content %} +
+

已退出

+

您已成功退出。

+
+{% endblock %} + +{# vim: set ts=8 sw=2 tw=0 fenc=utf-8 ft=htmldjango.html: #} diff --git a/account/templates/account/profile.html b/account/templates/account/profile.html new file mode 100644 index 0000000..aac992f --- /dev/null +++ b/account/templates/account/profile.html @@ -0,0 +1,21 @@ +{% extends 'base.html' %} +{% load staticfiles %} +{% load url from future %} +{% load bootstrap3 %} + +{# login template #} + +{% block title %} +个人主页 | 2014 SKA Summer School +{% endblock %} + +{% block content %} +
+

个人主页

+

TODO ...

+ +
+
+{% endblock %} + +{# vim: set ts=8 sw=2 tw=0 fenc=utf-8 ft=htmldjango.html: #} -- cgit v1.2.2