From 02afd8a32edb13ea7fc2266ac80092ea15c0930c Mon Sep 17 00:00:00 2001 From: Alvin Li Date: Wed, 9 Oct 2013 15:52:53 +0800 Subject: * treat 'apps/utils' as regular django app; which used to store general tools for used in other apps * moved 'templatetags' from 'apps/indicator' to 'apps/utils' * '.gitignore' to ignore 'fixtures_bak' * moved js plugins from 'apps/indicator/static/plugins' to 'staticfiles/plugins' apps/recommend: * updated 'recommend.models'; o commented 'recommend.models.ResearchCombination' (not used) * implemented views 'add_edit_blog_info' and 'ajax_add_edit_configs'; * added pages 'templates/recommend/add_edit_blog_info.html', 'add_edit_blog_info_error.html'; o related css and javascripts files * added 'tools.py'; * added 'utils/tools.py' for placing generic functions; * deleted 'initial_data.json' (mv 'fixtures' to 'fixtures_bak'); * small fixes to 'indicator.models', 'sciblog.models' and 'sfaccount.views' * fixed automatically show 'proper_nouns' annotation in blog: recovered the line 'import signals' in 'sciblog.models' * added 'is_ok()' method for 'recommend.models.ResearchConfig'; --- .../templates/recommend/add_edit_blog_info.html | 87 ++++++++++++++++++++++ .../recommend/add_edit_blog_info_error.html | 66 ++++++++++++++++ .../templates/recommend/recommend_index.html | 27 +++++++ 3 files changed, 180 insertions(+) create mode 100644 97suifangqa/apps/recommend/templates/recommend/add_edit_blog_info.html create mode 100644 97suifangqa/apps/recommend/templates/recommend/add_edit_blog_info_error.html create mode 100644 97suifangqa/apps/recommend/templates/recommend/recommend_index.html (limited to '97suifangqa/apps/recommend/templates') diff --git a/97suifangqa/apps/recommend/templates/recommend/add_edit_blog_info.html b/97suifangqa/apps/recommend/templates/recommend/add_edit_blog_info.html new file mode 100644 index 0000000..e646abf --- /dev/null +++ b/97suifangqa/apps/recommend/templates/recommend/add_edit_blog_info.html @@ -0,0 +1,87 @@ +{% extends "base.html" %} +{% load static from staticfiles %} +{% load dict_get %} + +{% block title %} +添加文章信息 | admin | 97 随访 +{% endblock %} + +{% block css %} + +{% endblock %} + +{% block scripts %} + + + + + +{% endblock %} + +{% block page %} + {% csrf_token %} + +

添加文章信息

+ +
+ id: {{ blog.id }} +
+ title: {{ blog.title }} +
+ +
+ +   |   + +
+ +
+ +
+
+ +
+ +
+
+ +
+ +
+
+ +
+

说明

+

权重: 浮点数,范围 0-10

+
+{% endblock page %} + +{# vim: set ts=2 sw=2 tw=0 fenc=utf-8 ft=htmldjango.html: #} diff --git a/97suifangqa/apps/recommend/templates/recommend/add_edit_blog_info_error.html b/97suifangqa/apps/recommend/templates/recommend/add_edit_blog_info_error.html new file mode 100644 index 0000000..e1a6434 --- /dev/null +++ b/97suifangqa/apps/recommend/templates/recommend/add_edit_blog_info_error.html @@ -0,0 +1,66 @@ +{% extends "base.html" %} +{% load static from staticfiles %} +{% load dict_get %} + +{% block title %} +添加文章信息 | admin | 97 随访 +{% endblock %} + +{% block css %} + +{% endblock %} + +{% block scripts %} + +{% endblock %} + +{% block page %} +

错误 | 添加文章信息

+ +
+ id: {{ blog.id }} +
+ title: {{ blog.title }} +
+ +
+ + 该文章未添加关联的研究指标"ResearchIndicator" + ({{ ResearchIndicatorName }}) + +
+ +
+ + 该文章关联的以下研究指标"ResearchIndicator" + 没有添加原子分类"ResearchAtom"({{ ResearchAtomName }}) + + {% if no_indicator_atom %} + + {% endif %} +
+ +
+ + 未添加全局的治疗反应"TreatResponse"({{ TreatResponseName }}) + +
+ +
+ +
+ +{% endblock page %} + +{# vim: set ts=2 sw=2 tw=0 fenc=utf-8 ft=htmldjango.html: #} diff --git a/97suifangqa/apps/recommend/templates/recommend/recommend_index.html b/97suifangqa/apps/recommend/templates/recommend/recommend_index.html new file mode 100644 index 0000000..fd05bf3 --- /dev/null +++ b/97suifangqa/apps/recommend/templates/recommend/recommend_index.html @@ -0,0 +1,27 @@ +{% extends "base.html" %} +{% load static from staticfiles %} +{% load dict_get %} + +{% block title %} +文章列表 | admin | 97 随访 +{% endblock %} + +{% block css %} + +{% endblock %} + +{% block page %} +

文章列表 | 添加文章信息

+ +

图例:已添加信息

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