From 5bcf6aa3b784c81aad353b3cefb433493f05f4a0 Mon Sep 17 00:00:00 2001 From: Alvin Li Date: Thu, 15 Aug 2013 00:20:55 +0800 Subject: * updated 'apps/indicator/templates/indicator/' pages, extends "base.html", make use of the django template system * added 'static_url', 'indicator_url' js variables * implemented the AJAX function for 'apps/indicator/templates/' pages TODO: * finish 'indicator.views': get_card_data_chart(), get_card_data_table() * link the front pages with the django models, forms and search! --- 97suifangqa/templates/base.html | 133 ++++++++++++++++++++-------------------- 1 file changed, 67 insertions(+), 66 deletions(-) (limited to '97suifangqa/templates/base.html') diff --git a/97suifangqa/templates/base.html b/97suifangqa/templates/base.html index 5c2628f..ae80e81 100644 --- a/97suifangqa/templates/base.html +++ b/97suifangqa/templates/base.html @@ -1,7 +1,8 @@ - -{% load staticfiles %} -{#-- https://github.com/paulirish/html5-boilerplate/blob/master/index.html -#} -{#-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -#} + +{% load static from staticfiles %} +{# https://github.com/h5bp/html5-boilerplate #} +{# http://html5boilerplate.com/ #} +{# http://paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ #} {% comment %} @note Justification for lang="en" @author Zhao Yichen @@ -22,76 +23,76 @@ - - - - {% block title %}97 随访{% endblock %} - {% block css %} - - {% block othercss %}{% endblock %} - {% endblock %} - - + + + + {% block title %}97 随访{% endblock %} + {% block css %} + + {% block othercss %}{% endblock %} + {% endblock css %} + + - {% block favicons %} - - - - - - - {% endblock favicons %} + {% block favicons %} + + + + + + + {% endblock favicons %} - {% block headjs %}{% endblock %} - {% block endhead %}{% endblock %} + {% block headjs %}{% endblock %} + {% block endhead %}{% endblock %} {% block page %} -
-
- {% block before_content %}{% endblock %} -
-
- {% block body %} - {% endblock %} -
-
- {% block sidebar_first %}{% endblock %} - {% block sidebar_second %}{% endblock %} - {% block after_content %}{% endblock %} -
- -
- -
-
- -
- {% endblock page %} +
+
+ {% block before_content %}{% endblock %} +
+
+ {% block body %} + {% endblock %} +
+
+ {% block sidebar_first %}{% endblock %} + {% block sidebar_second %}{% endblock %} + {% block after_content %}{% endblock %} +
+ +
+ +
+
+ +
+ {% endblock page %} - {% block js %} - {% block jquery %} - - {% endblock %} + {% block js %} + {% block jquery %} + + {% endblock %} - {% block scripts %} - - - - - {% block otherscripts %}{% endblock %} - {% endblock scripts %} - {% endblock js %} + {% block scripts %} + + + + + {% block otherscripts %}{% endblock %} + {% endblock scripts %} + {% endblock js %} {# vim: set ts=2 sw=2 tw=0 fenc=utf-8 ft=htmldjango.html: #} -- cgit v1.2.2