From c9da4168874296cf4f5ba71b9a432ceae3c26130 Mon Sep 17 00:00:00 2001 From: Alvin Li Date: Fri, 20 Sep 2013 23:52:59 +0800 Subject: *** merged changes of front pages *** * merged changes from '97suifang-front' by mjymjydark; and modified to work with django * finished 'editing_data' div of 'SheetDefault' for add new record * added 'indicator.views.ajax_add_record()' *** search *** * improved 'search' function of 'NewDeleteIndex' page; employ AJAX to load search results; * added 'indicator.views.search_indicators()' *** recommend indicator *** * improved the functions of 'recommend_indicator' * added 'sciblog.models.UserCollection' to record the collection information for each user * improved 'sciblog.views.add_user_to_m2m()' to work with 'UserCollection' * added field 'lastRecommendTime' in 'indicator.models.UserIndicator' * updated 'indicator.views.indicator_status' against 'recommend_indicator' *** qtip2 for recommended indicator *** * added 'qtip2' tooltip for recommended indicator card * added '97suifang' qtip css (qtip-sf) * added tooltip for 'add record' when return error (SheetDefault page); * improved the style of 'collection_btn' and 'go_library_btn' of IndexDesc page; --- .../templates/indicator/NewDeleteIndex.html | 61 ++++-- .../templates/indicator/SheetDefault.html | 220 +++++++++++++-------- .../indicator/templates/indicator/SideBar.html | 27 +-- .../templates/indicator/popup/EditHistoryData.html | 26 +-- .../templates/indicator/popup/IndexDesc.html | 3 + 5 files changed, 198 insertions(+), 139 deletions(-) (limited to '97suifangqa/apps/indicator/templates') diff --git a/97suifangqa/apps/indicator/templates/indicator/NewDeleteIndex.html b/97suifangqa/apps/indicator/templates/indicator/NewDeleteIndex.html index 515adcc..24d8078 100644 --- a/97suifangqa/apps/indicator/templates/indicator/NewDeleteIndex.html +++ b/97suifangqa/apps/indicator/templates/indicator/NewDeleteIndex.html @@ -13,6 +13,8 @@ {% endblock %} {% block scripts %} + + @@ -23,14 +25,36 @@ {% endblock %} {% block page %} - - + + + +
+
+ + 6 + + username + + + +
+
{% comment %} Description: @@ -42,7 +66,7 @@
添加或删除关注指标
@@ -50,7 +74,7 @@
-
+ @@ -105,7 +129,7 @@ {% for l in letters %} {% with l_inds=indicators|dict_get:l %} {% if l_inds|length >= 1 %} -
+
{{ l|upper }}
{% for ind in l_inds %}
@@ -129,12 +153,14 @@
{{ selected_category.name }}
-
仿真化验单
+
{% if page_condition == "category" %} -
+
{% for ind in indicators %}
{{ ind.name }}
@@ -158,7 +184,7 @@
{% if page_condition == "search" %} -
+
{# 'indicators': list made up by the dumps of indicator #} {# check if search keyword empty & if search result empty #} {% if search_kw_empty %} @@ -188,7 +214,7 @@ {% endfor %} {% endif %}
- {% endif %} {# end: page_condition == "search" #} + {% endif %} {# end: page_condition #}
@@ -196,6 +222,7 @@
已关注指标
+ {% comment %}
{% csrf_token %} @@ -203,9 +230,10 @@
+ {% endcomment %}
-
+
{% for fi in followed_indicators %}
@@ -218,13 +246,12 @@
+
-