diff options
author | Alvin Li <liweitianux@gmail.com> | 2013-08-15 00:20:55 +0800 |
---|---|---|
committer | Alvin Li <liweitianux@gmail.com> | 2013-08-15 00:20:55 +0800 |
commit | 5bcf6aa3b784c81aad353b3cefb433493f05f4a0 (patch) | |
tree | 4d99f2d5643b50100f1ec6659efd5518cb2c328c /97suifangqa/templates | |
parent | 8a7b2f6ff9e2760c872625fcd906afcbdf75c2e4 (diff) | |
download | 97dev-5bcf6aa3b784c81aad353b3cefb433493f05f4a0.tar.bz2 |
* 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!
Diffstat (limited to '97suifangqa/templates')
-rw-r--r-- | 97suifangqa/templates/base.html | 133 | ||||
-rw-r--r-- | 97suifangqa/templates/search/search.html | 2 |
2 files changed, 69 insertions, 66 deletions
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 @@ -<!doctype html> -{% load staticfiles %} -{#-- https://github.com/paulirish/html5-boilerplate/blob/master/index.html -#} -{#-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -#} +<!DOCTYPE html> +{% 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 @@ <!--[if IE 8 ]> <html lang="en" class="no-js ie8 ie"> <![endif]--> <!--[if (gte IE 9)|!(IE)]><!--> <html lang="en" class="no-js"> <!--<![endif]--> <head> - <meta charset="utf-8"> - <meta http-equiv="content-type" content="text/html; charset=utf-8"> - <meta http-equiv="X-UA-Compatible" content="IE=edge" /> - <title>{% block title %}97 随访{% endblock %}</title> - {% block css %} - <link rel="stylesheet" href="{% static "stylesheets/base.css" %}"> - {% block othercss %}{% endblock %} - {% endblock %} - <!-- HTML5 shim, for IE6-8 support of HTML5 elements --> - <!--[if lt IE 9]> - <script type="text/javascript" src="{% static "javascripts/html5shiv.js" %}"></script> - <script type="text/javascript" src="{% static "javascripts/css3-mediaqueries.js" %}"></script> - <script type="text/javascript" src="{% static "javascripts/respond.min.js" %}"></script> - <![endif]--> + <meta charset="utf-8" /> + <meta http-equiv="content-type" content="text/html; charset=utf-8" /> + <meta http-equiv="X-UA-Compatible" content="IE=edge" /> + <title>{% block title %}97 随访{% endblock %}</title> + {% block css %} + <link rel="stylesheet" href="{% static "stylesheets/base.css" %}"> + {% block othercss %}{% endblock %} + {% endblock css %} + <!-- HTML5 shim, for IE6-8 support of HTML5 elements --> + <!--[if lt IE 9]> + <script type="text/javascript" src="{% static "javascripts/html5shiv.js" %}"></script> + <script type="text/javascript" src="{% static "javascripts/css3-mediaqueries.js" %}"></script> + <script type="text/javascript" src="{% static "javascripts/respond.min.js" %}"></script> + <![endif]--> - {% block favicons %} - <!-- Fav and touch icons --> - <link rel="apple-touch-icon-precomposed" sizes="144x144" href="{% static "images/apple-touch-icon-144-precomposed.png" %}"> - <link rel="apple-touch-icon-precomposed" sizes="114x114" href="{% static "images/apple-touch-icon-114-precomposed.png" %}"> - <link rel="apple-touch-icon-precomposed" sizes="72x72" href="{% static "images/apple-touch-icon-72-precomposed.png" %}"> - <link rel="apple-touch-icon-precomposed" href="{% static "images/apple-touch-icon-57-precomposed.png" %}"> - <link rel="shortcut icon" href="{% static "images/favicon.png" %}"> - {% endblock favicons %} + {% block favicons %} + <!-- Fav and touch icons --> + <link rel="apple-touch-icon-precomposed" sizes="144x144" href="{% static "images/apple-touch-icon-144-precomposed.png" %}"> + <link rel="apple-touch-icon-precomposed" sizes="114x114" href="{% static "images/apple-touch-icon-114-precomposed.png" %}"> + <link rel="apple-touch-icon-precomposed" sizes="72x72" href="{% static "images/apple-touch-icon-72-precomposed.png" %}"> + <link rel="apple-touch-icon-precomposed" href="{% static "images/apple-touch-icon-57-precomposed.png" %}"> + <link rel="shortcut icon" href="{% static "images/favicon.png" %}"> + {% endblock favicons %} - {% block headjs %}{% endblock %} - {% block endhead %}{% endblock %} + {% block headjs %}{% endblock %} + {% block endhead %}{% endblock %} </head> <body class="{% if user.is_authenticated %}logged-in{% else %}not-logged-in{% endif %} {% block bodyclasses %}{% endblock %}"> {% block page %} - <div id="page"> - <div id="main" role="main"> - {% block before_content %}{% endblock %} - <section id="content" class="content"> - <div class="region-wrap"> - {% block body %} - {% endblock %} - </div> - </section> - {% block sidebar_first %}{% endblock %} - {% block sidebar_second %}{% endblock %} - {% block after_content %}{% endblock %} - </div> - <div class="modal-dialog-box" id="modal-dialog-box"> - <div class="close-box"></div> - <div class="content-wrap"></div> - </div> - <div class="image-enlargement-box" id="image-enlargement-box"> - <img src="{% static "images/loading.gif" %}" alt="" class="loading-image"> - <div class="image-container"></div> - </div> - <div class="modal-page-overlay hidden" id="modal-page-overlay"></div> - </div> - {% endblock page %} + <div id="page"> + <div id="main" role="main"> + {% block before_content %}{% endblock %} + <section id="content" class="content"> + <div class="region-wrap"> + {% block body %} + {% endblock %} + </div> + </section> + {% block sidebar_first %}{% endblock %} + {% block sidebar_second %}{% endblock %} + {% block after_content %}{% endblock %} + </div> + <div class="modal-dialog-box" id="modal-dialog-box"> + <div class="close-box"></div> + <div class="content-wrap"></div> + </div> + <div class="image-enlargement-box" id="image-enlargement-box"> + <img src="{% static "images/loading.gif" %}" alt="" class="loading-image"> + <div class="image-container"></div> + </div> + <div class="modal-page-overlay hidden" id="modal-page-overlay"></div> + </div> + {% endblock page %} - {% block js %} - {% block jquery %} - <script src="{% static "javascripts/jquery-1.9.1.min.js" %}"></script> - {% endblock %} + {% block js %} + {% block jquery %} + <script src="{% static "javascripts/jquery-1.9.1.min.js" %}"></script> + {% endblock %} - {% block scripts %} - <script type="text/javascript" src="{% static "javascripts/jquery.waitforimages.min.js" %}"></script> - <script type="text/javascript" src="{% static "javascripts/jquery.placeholder.min.js" %}"></script> - <script type="text/javascript" src="{% static "javascripts/main.js" %}"></script> - <script type="text/javascript"> - $('input, textarea').placeholder(); - </script> - {% block otherscripts %}{% endblock %} - {% endblock scripts %} - {% endblock js %} + {% block scripts %} + <script type="text/javascript" src="{% static "javascripts/jquery.waitforimages.min.js" %}"></script> + <script type="text/javascript" src="{% static "javascripts/jquery.placeholder.min.js" %}"></script> + <script type="text/javascript" src="{% static "javascripts/main.js" %}"></script> + <script type="text/javascript"> + $('input, textarea').placeholder(); + </script> + {% block otherscripts %}{% endblock %} + {% endblock scripts %} + {% endblock js %} </body> </html> {# vim: set ts=2 sw=2 tw=0 fenc=utf-8 ft=htmldjango.html: #} diff --git a/97suifangqa/templates/search/search.html b/97suifangqa/templates/search/search.html index 7308de0..43f1210 100644 --- a/97suifangqa/templates/search/search.html +++ b/97suifangqa/templates/search/search.html @@ -37,3 +37,5 @@ {% endif %} </form> {% endblock %} + +<!-- vim: set ts=2 sw=4 tw=0 fenc=utf-8 ft=htmldjango.html: --> |