aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorWeitian LI <liweitianux@gmail.com>2014-04-18 21:18:50 +0800
committerWeitian LI <liweitianux@gmail.com>2014-04-18 21:18:50 +0800
commita4d102896cd261ced64316fce45dd264a797a903 (patch)
treef8a06526f5817b7e3f7b7a08de9434766c6b1a9a /templates
parenta50364c081a5aa4857223474207c154cb82896ee (diff)
downloaddjango-skaschool-a4d102896cd261ced64316fce45dd264a797a903.tar.bz2
* updated settings.py, added settings_email.py
* created directories 'static' and 'templates' * added app 'account', 'notice' * added app 'demo'
Diffstat (limited to 'templates')
-rw-r--r--templates/base.html25
-rw-r--r--templates/bootstrap.html3
-rw-r--r--templates/form.html17
-rw-r--r--templates/form_horizontal.html17
-rw-r--r--templates/form_inline.html17
-rw-r--r--templates/form_with_files.html17
-rw-r--r--templates/home.html7
-rw-r--r--templates/pagination.html25
-rw-r--r--templates/registration/activation_email.txt14
-rw-r--r--templates/registration/activation_email_subject.txt1
-rw-r--r--templates/test.html3
11 files changed, 146 insertions, 0 deletions
diff --git a/templates/base.html b/templates/base.html
new file mode 100644
index 0000000..df9c111
--- /dev/null
+++ b/templates/base.html
@@ -0,0 +1,25 @@
+{% extends 'bootstrap.html' %}
+
+{% load url from future %}
+
+{% load bootstrap3 %}
+
+{% block bootstrap3_content %}
+ <div class="container">
+ <h1>{% block title %}(no title){% endblock %}</h1>
+
+ <p>
+ <a href="{% url 'home' %}">home</a>
+ <a href="{% url 'form_default' %}">form</a>
+ <a href="{% url 'form_horizontal' %}">form_horizontal</a>
+ <a href="{% url 'form_inline' %}">form_inline</a>
+ <a href="{% url 'form_with_files' %}">form_with_files</a>
+ <a href="{% url 'pagination' %}">pagination</a>
+ </p>
+
+ {% bootstrap_messages %}
+
+ {% block content %}(no content){% endblock %}
+ </div>
+
+{% endblock %}
diff --git a/templates/bootstrap.html b/templates/bootstrap.html
new file mode 100644
index 0000000..5e5b581
--- /dev/null
+++ b/templates/bootstrap.html
@@ -0,0 +1,3 @@
+{% extends 'bootstrap3/bootstrap3.html' %}
+
+{% block bootstrap3_title %}{% block title %}{% endblock %}{% endblock %}
diff --git a/templates/form.html b/templates/form.html
new file mode 100644
index 0000000..dca0f83
--- /dev/null
+++ b/templates/form.html
@@ -0,0 +1,17 @@
+{% extends 'base.html' %}
+
+{% load bootstrap3 %}
+
+{% block title %}
+ Forms
+{% endblock %}
+
+{% block content %}
+
+ <form role="form" method="post">
+ {% csrf_token %}
+ {% bootstrap_form form %}
+ {% buttons submit='OK' reset="Cancel" %}{% endbuttons %}
+ </form>
+
+{% endblock %}
diff --git a/templates/form_horizontal.html b/templates/form_horizontal.html
new file mode 100644
index 0000000..d9fc0c3
--- /dev/null
+++ b/templates/form_horizontal.html
@@ -0,0 +1,17 @@
+{% extends 'base.html' %}
+
+{% load bootstrap3 %}
+
+{% block title %}
+ Forms
+{% endblock %}
+
+{% block content %}
+
+ <form role="form" class="form-horizontal" method="post">
+ {% csrf_token %}
+ {% bootstrap_form form layout="horizontal" %}
+ {% buttons submit='OK' reset='Cancel' layout='horizontal' %}{% endbuttons %}
+ </form>
+
+{% endblock %}
diff --git a/templates/form_inline.html b/templates/form_inline.html
new file mode 100644
index 0000000..493bd18
--- /dev/null
+++ b/templates/form_inline.html
@@ -0,0 +1,17 @@
+{% extends 'base.html' %}
+
+{% load bootstrap3 %}
+
+{% block title %}
+ Forms
+{% endblock %}
+
+{% block content %}
+
+ <form role="form" class="form-inline" method="post">
+ {% csrf_token %}
+ {% bootstrap_form form layout='inline' %}
+ {% buttons submit='OK' reset='Cancel' layout='inline' %}{% endbuttons %}
+ </form>
+
+{% endblock %}
diff --git a/templates/form_with_files.html b/templates/form_with_files.html
new file mode 100644
index 0000000..3e5e83f
--- /dev/null
+++ b/templates/form_with_files.html
@@ -0,0 +1,17 @@
+{% extends 'demo/base.html' %}
+
+{% load bootstrap3 %}
+
+{% block title %}
+ Forms
+{% endblock %}
+
+{% block content %}
+
+ <form role="form" method="post" enctype="multipart/form-data" {% if layout != 'vertical' %}class="form-{{ layout }}"{% endif %}>
+ {% csrf_token %}
+ {% bootstrap_form form layout=layout %}
+ {% buttons submit='OK' reset="Cancel" %}{% endbuttons %}
+ </form>
+
+{% endblock %}
diff --git a/templates/home.html b/templates/home.html
new file mode 100644
index 0000000..64d4501
--- /dev/null
+++ b/templates/home.html
@@ -0,0 +1,7 @@
+{% extends 'base.html' %}
+
+{% block title %}django-bootstrap3{% endblock %}
+
+{% block content %}
+ This is <em>bootstrap3</em> for <strong>Django</strong>.
+{% endblock %}
diff --git a/templates/pagination.html b/templates/pagination.html
new file mode 100644
index 0000000..ed11d4f
--- /dev/null
+++ b/templates/pagination.html
@@ -0,0 +1,25 @@
+{% extends 'base.html' %}
+
+{% load bootstrap3 %}
+
+{% block title %}
+ Pagination
+{% endblock %}
+
+{% block content %}
+
+ <table class="table">
+ {% for line in lines %}
+ <tr>
+ <td>{{ line }}</td>
+ </tr>
+ {% endfor %}
+ </table>
+
+ <hr>
+
+ {% bootstrap_pagination lines url="/pagination?page=1&flop=flip" extra="q=foo" size="small" %}
+
+ {% bootstrap_pagination lines url="/pagination?page=1" size="large" %}
+
+{% endblock %}
diff --git a/templates/registration/activation_email.txt b/templates/registration/activation_email.txt
new file mode 100644
index 0000000..48bee50
--- /dev/null
+++ b/templates/registration/activation_email.txt
@@ -0,0 +1,14 @@
+Dear {% username %},
+
+Please follow the link below to activate your account at
+"2014 SKA Summer School".
+
+{% activation_key %}
+{% expiration_days %}
+{% site %}
+
+
+Best regards.
+
+2014 SKA Summer School Team
+
diff --git a/templates/registration/activation_email_subject.txt b/templates/registration/activation_email_subject.txt
new file mode 100644
index 0000000..d5fe380
--- /dev/null
+++ b/templates/registration/activation_email_subject.txt
@@ -0,0 +1 @@
+激活您的账号
diff --git a/templates/test.html b/templates/test.html
new file mode 100644
index 0000000..85ec3e6
--- /dev/null
+++ b/templates/test.html
@@ -0,0 +1,3 @@
+{% extends 'base.html' %}
+
+{# vim: set ts=8 sw=4 tw=0 fenc=utf-8 ft=htmldjango.html: #}