aboutsummaryrefslogtreecommitdiffstats
path: root/97suifangqa/apps/indicator/templates
diff options
context:
space:
mode:
authorAlvin Li <liweitianux@gmail.com>2013-08-15 00:20:55 +0800
committerAlvin Li <liweitianux@gmail.com>2013-08-15 00:20:55 +0800
commit5bcf6aa3b784c81aad353b3cefb433493f05f4a0 (patch)
tree4d99f2d5643b50100f1ec6659efd5518cb2c328c /97suifangqa/apps/indicator/templates
parent8a7b2f6ff9e2760c872625fcd906afcbdf75c2e4 (diff)
download97dev-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/apps/indicator/templates')
-rw-r--r--97suifangqa/apps/indicator/templates/indicator/NewDeleteIndex.html42
-rw-r--r--97suifangqa/apps/indicator/templates/indicator/SheetDefault.html42
-rw-r--r--97suifangqa/apps/indicator/templates/indicator/SideBar.html28
-rw-r--r--97suifangqa/apps/indicator/templates/indicator/index.html27
-rw-r--r--97suifangqa/apps/indicator/templates/indicator/popup/DeleteCardTip.html29
-rw-r--r--97suifangqa/apps/indicator/templates/indicator/popup/EditHistoryData.html38
-rw-r--r--97suifangqa/apps/indicator/templates/indicator/popup/IndexDesc.html29
7 files changed, 161 insertions, 74 deletions
diff --git a/97suifangqa/apps/indicator/templates/indicator/NewDeleteIndex.html b/97suifangqa/apps/indicator/templates/indicator/NewDeleteIndex.html
index 5c1b568..29c15d0 100644
--- a/97suifangqa/apps/indicator/templates/indicator/NewDeleteIndex.html
+++ b/97suifangqa/apps/indicator/templates/indicator/NewDeleteIndex.html
@@ -1,17 +1,35 @@
-<!DOCTYPE HTML>
-{% load staticfiles %}
-<html>
-<head>
- <meta http-equiv="content-type" content="text/html;charset=UTF-8">
- <title>添加或删除关注指标</title>
+{% extends "base.html" %}
+{% load static from staticfiles %}
+
+{% block title %}
+指标状态 | 随访工具 | 97 随访
+{% endblock %}
+
+{% block css %}
<link rel="stylesheet" type="text/css" href="{% static "css/normalize.css" %}"/>
- <link rel="stylesheet" type="text/css" href="{% static "plugins/thickbox/thickbox.css" %}"/>
<link rel="stylesheet" type="text/css" href="{% static "css/new_delete_index.css" %}"/>
+ <link rel="stylesheet" type="text/css" href="{% static "plugins/thickbox/thickbox.css" %}"/>
+{% endblock %}
+
+{% block jquery %}
<script type="text/javascript" src="{% static "javascripts/jquery-1.6.min.js" %}"></script>
- <script type="text/javascript" src="{% static "plugins/thickbox/thickbox.js" %}"></script>
+{% endblock %}
+
+{% block scripts %}
<script type="text/javascript" src="{% static "javascripts/new_delete_index.js" %}"></script>
-</head>
-<body>
+ <script type="text/javascript" src="{% static "plugins/thickbox/thickbox.js" %}"></script>
+
+ <!-- set variables
+ 'static_url': used in js to load staticfiles
+ 'indicator_url': root url of 'apps/indicator'
+ -->
+ <script>
+ var static_url = "{{ STATIC_URL }}";
+ var indicator_url = "/indicator/";
+ </script>
+{% endblock %}
+
+{% block page %}
<!--
<iframe align="left" width="420" height="720" src="SideBar.html" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
-->
@@ -423,6 +441,6 @@
<div style="clear:both;"></div>
</div>
</div>
-</body>
-</html>
+{% endblock page %}
+
{# vim: set ts=2 sw=2 tw=0 fenc=utf-8 ft=htmldjango.html: #}
diff --git a/97suifangqa/apps/indicator/templates/indicator/SheetDefault.html b/97suifangqa/apps/indicator/templates/indicator/SheetDefault.html
index 50d71d7..56d0e6a 100644
--- a/97suifangqa/apps/indicator/templates/indicator/SheetDefault.html
+++ b/97suifangqa/apps/indicator/templates/indicator/SheetDefault.html
@@ -1,14 +1,22 @@
-<!DOCTYPE HTML>
-{% load staticfiles %}
-<html>
-<head>
- <meta http-equiv="content-type" content="text/html;charset=UTF-8">
- <title>页面4</title>
+{% extends "base.html" %}
+{% load static from staticfiles %}
+
+{% block title %}
+指标状态 | 随访工具 | 97 随访
+{% endblock %}
+
+{% block css %}
<link rel="stylesheet" type="text/css" href="{% static "css/normalize.css" %}"/>
<link rel="stylesheet" type="text/css" href="{% static "plugins/datepicker/datepicker.css" %}"/>
<link rel="stylesheet" type="text/css" href="{% static "plugins/thickbox/thickbox.css" %}"/>
<link rel="stylesheet" type="text/css" href="{% static "css/sheet_default.css" %}"/>
+{% endblock %}
+
+{% block jquery %}
<script type="text/javascript" src="{% static "javascripts/jquery-1.6.min.js" %}"></script>
+{% endblock %}
+
+{% block scripts %}
<script type="text/javascript" src="{% static "plugins/datepicker/datepicker.js" %}"></script>
<script type="text/javascript" src="{% static "plugins/datepicker/language-zh-CN.js" %}"></script>
<script type="text/javascript" src="{% static "plugins/thickbox/thickbox.js" %}"></script>
@@ -16,8 +24,18 @@
<script type="text/javascript" src="{% static "plugins/highcharts/highcharts-more.js" %}"></script>
<script type="text/javascript" src="{% static "javascripts/sheetdefault.js" %}"></script>
<script type="text/javascript" src="{% static "javascripts/load_card.js" %}"></script>
-</head>
-<body>
+
+ <!-- set variables
+ 'static_url': used in js to load staticfiles
+ 'indicator_url': root url of 'apps/indicator'
+ -->
+ <script>
+ var static_url = "{{ STATIC_URL }}";
+ var indicator_url = "/indicator/";
+ </script>
+{% endblock %}
+
+{% block page %}
<!--
<iframe align="left" width="420" height="720" src="SideBar.html" style="position:fixed;left:0;top:0" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
-->
@@ -203,10 +221,12 @@
</div>
<div class="act_card_container index_card_sec">
- <div class="act_card"><a href="NewDeleteIndex.html">添加或删除关注指标</a></div>
+ <div class="act_card">
+ <a href="{% url follow_indicator %}">添加或删除关注指标</a>
+ </div>
</div>
</div>
</div>
-</body>
-</html>
+{% endblock page %}
+
{# vim: set ts=2 sw=2 tw=0 fenc=utf-8 ft=htmldjango.html: #}
diff --git a/97suifangqa/apps/indicator/templates/indicator/SideBar.html b/97suifangqa/apps/indicator/templates/indicator/SideBar.html
index a6db044..710a8dd 100644
--- a/97suifangqa/apps/indicator/templates/indicator/SideBar.html
+++ b/97suifangqa/apps/indicator/templates/indicator/SideBar.html
@@ -1,15 +1,24 @@
-<!DOCTYPE HTML>
-{% load staticfiles %}
-<html>
-<head>
- <meta charset=UTF-8">
- <title>demo</title>
+{% extends "base.html" %}
+{% load static from staticfiles %}
+
+{% block title %}
+边栏 | 随访工具 | 97 随访
+{% endblock %}
+
+{% block css %}
<link rel="stylesheet" type="text/css" href="{% static "css/normalize.css" %}"/>
<link rel="stylesheet" type="text/css" href="{% static "css/sidebar.css" %}"/>
+{% endblock %}
+
+{% block jquery %}
<script type="text/javascript" src="{% static "javascripts/jquery-1.6.min.js" %}"></script>
+{% endblock %}
+
+{% block scripts %}
<script type="text/javascript" src="{% static "javascripts/sidebar.js" %}"></script>
-</head>
-<body>
+{% endblock %}
+
+{% block page %}
<div id="sidebar_container">
<!-- ====================== navigation ====================== -->
<div id="nav_container">
@@ -73,5 +82,6 @@
</div>
</div>
-</body>
+{% endblock page %}
+
{# vim: set ts=2 sw=2 tw=0 fenc=utf-8 ft=htmldjango.html: #}
diff --git a/97suifangqa/apps/indicator/templates/indicator/index.html b/97suifangqa/apps/indicator/templates/indicator/index.html
index 94ab354..7c280f7 100644
--- a/97suifangqa/apps/indicator/templates/indicator/index.html
+++ b/97suifangqa/apps/indicator/templates/indicator/index.html
@@ -1,12 +1,15 @@
-<!DOCTYPE HTML>
-<html>
-<head>
- <meta http-equiv="content-type" content="text/html;charset=UTF-8">
- <title>首页</title>
-</head>
-<body>
- <a href="{% url indicator_status %}">指标状态</a>
- <a href="{% url follow_indicator %}">关注指标</a>
-</body>
-</html>
-<!-- vim: set ts=2 sw=2 tw=0 fenc=utf-8 ft=html: -->
+{% extends "base.html" %}
+{% load static from staticfiles %}
+
+{% block title %}
+首页 | 随访工具 | 97 随访
+{% endblock %}
+
+{% block body %}
+ <ul>
+ <li><a href="{% url indicator_status %}">指标状态</a></li>
+ <li><a href="{% url follow_indicator %}">关注指标</a></li>
+ </ul>
+{% endblock %}
+
+{# vim: set ts=2 sw=2 tw=0 fenc=utf-8 ft=htmldjango.html: #}
diff --git a/97suifangqa/apps/indicator/templates/indicator/popup/DeleteCardTip.html b/97suifangqa/apps/indicator/templates/indicator/popup/DeleteCardTip.html
index 3aed409..7424930 100644
--- a/97suifangqa/apps/indicator/templates/indicator/popup/DeleteCardTip.html
+++ b/97suifangqa/apps/indicator/templates/indicator/popup/DeleteCardTip.html
@@ -1,15 +1,24 @@
-<!DOCTYPE HTML>
-{% load staticfiles %}
-<html>
-<head>
- <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
- <title>取消关注卡片提示</title>
+{% extends "base.html" %}
+{% load static from staticfiles %}
+
+{% block title %}
+取消关注卡片提示 | 随访工具 | 97 随访
+{% endblock %}
+
+{% block css %}
<link rel="stylesheet" type="text/css" href="{% static "css/normalize.css" %}"/>
<link rel="stylesheet" type="text/css" href="{% static "css/delete_card_tip.css" %}"/>
+{% endblock %}
+
+{% block jquery %}
<script type="text/javascript" src="{% static "javascripts/jquery-1.6.min.js" %}"></script>
+{% endblock %}
+
+{% block scripts %}
<script type="text/javascript" src="{% static "javascripts/delete_card_tip.js" %}"></script>
-</head>
-<body>
+{% endblock %}
+
+{% block page %}
<div id="delete_card_tip_container">
<div class="delete_card_tip_title_line">
<div class="delete_card_tip_title">提示</div>
@@ -21,6 +30,6 @@
<a class="action_confirm_ignore">继续关注</a>
</div>
</div>
-</body>
-</html>
+{% endblock page %}
+
{# vim: set ts=2 sw=2 tw=0 fenc=utf-8 ft=htmldjango.html: #}
diff --git a/97suifangqa/apps/indicator/templates/indicator/popup/EditHistoryData.html b/97suifangqa/apps/indicator/templates/indicator/popup/EditHistoryData.html
index 094766d..2cf58d1 100644
--- a/97suifangqa/apps/indicator/templates/indicator/popup/EditHistoryData.html
+++ b/97suifangqa/apps/indicator/templates/indicator/popup/EditHistoryData.html
@@ -1,15 +1,33 @@
-<!DOCTYPE HTML>
-{% load staticfiles %}
-<html>
-<head>
- <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
- <title>编辑历史数据</title>
+{% extends "base.html" %}
+{% load static from staticfiles %}
+
+{% block title %}
+编辑历史数据 | 随访工具 | 97 随访
+{% endblock %}
+
+{% block css %}
<link rel="stylesheet" type="text/css" href="{% static "css/normalize.css" %}"/>
<link rel="stylesheet" type="text/css" href="{% static "css/edit_history_data.css" %}"/>
+{% endblock %}
+
+{% block jquery %}
<script type="text/javascript" src="{% static "javascripts/jquery-1.6.min.js" %}"></script>
+{% endblock %}
+
+{% block scripts %}
<script type="text/javascript" src="{% static "javascripts/edit_history_data.js" %}"></script>
-</head>
-<body>
+
+ <!-- set variables
+ 'static_url': used in js to load staticfiles
+ 'indicator_url': root url of 'apps/indicator'
+ -->
+ <script>
+ var static_url = "{{ STATIC_URL }}";
+ var indicator_url = "/indicator/";
+ </script>
+{% endblock %}
+
+{% block page %}
<div id="edit_history_data_container">
<div class="edit_history_data_title_line">
<div class="edit_history_data_title">乙肝病毒核算定量(PCR)</div>
@@ -37,6 +55,6 @@
</div>
</div>
</div>
-</body>
-</html>
+{% endblock page %}
+
{# vim: set ts=2 sw=2 tw=0 fenc=utf-8 ft=htmldjango.html: #}
diff --git a/97suifangqa/apps/indicator/templates/indicator/popup/IndexDesc.html b/97suifangqa/apps/indicator/templates/indicator/popup/IndexDesc.html
index db83f19..ad9f20d 100644
--- a/97suifangqa/apps/indicator/templates/indicator/popup/IndexDesc.html
+++ b/97suifangqa/apps/indicator/templates/indicator/popup/IndexDesc.html
@@ -1,15 +1,24 @@
-<!DOCTYPE HTML>
-{% load staticfiles %}
-<html>
-<head>
- <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
- <title>指标注释</title>
+{% extends "base.html" %}
+{% load static from staticfiles %}
+
+{% block title %}
+指标注释 | 随访工具 | 97 随访
+{% endblock %}
+
+{% block css %}
<link rel="stylesheet" type="text/css" href="{% static "css/normalize.css" %}"/>
<link rel="stylesheet" type="text/css" href="{% static "css/index_desc.css" %}"/>
+{% endblock %}
+
+{% block jquery %}
<script type="text/javascript" src="{% static "javascripts/jquery-1.6.min.js" %}"></script>
+{% endblock %}
+
+{% block scripts %}
<script type="text/javascript" src="{% static "javascripts/index_desc.js" %}"></script>
-</head>
-<body>
+{% endblock %}
+
+{% block page %}
<div id="index_desc_container">
<div class="index_desc_title_line">
<div class="index_desc_title">乙肝病毒核算定量(PCR)</div>
@@ -23,6 +32,6 @@
<div class="collection">收藏该注释(已有 100 人收藏)</div>
<div class="go_library"><input type="button" class="go_library_btn" value="前往医学知识库" /></div>
</div>
-</body>
-</html>
+{% endblock page %}
+
{# vim: set ts=2 sw=2 tw=0 fenc=utf-8 ft=htmldjango.html: #}