aboutsummaryrefslogtreecommitdiffstats
path: root/97suifangqa/apps/indicator/views.py
diff options
context:
space:
mode:
authorAlvin Li <liweitianux@gmail.com>2013-08-14 00:05:31 +0800
committerAlvin Li <liweitianux@gmail.com>2013-08-14 00:05:31 +0800
commitbb095adf76bddc2f6c5925bcdebb52bff75e6578 (patch)
treec04b5ef145708e76eccc5b6e703c5742578ca4a8 /97suifangqa/apps/indicator/views.py
parent87ed76dd20431eb2a4216f9356b6da417fe003ce (diff)
download97dev-bb095adf76bddc2f6c5925bcdebb52bff75e6578.tar.bz2
* added 'templates/search/search.html'
* updated haystack settings * updated 'static' files settings * added 'search function' for 'apps/indicator': IndicatorCategory, Indicator * merged static files of '97suifang-front' by 'mjymjydark' * merged pages of '97suifang-front' by 'mjymjydark' * updated pages to use 'django templates syntax' for the static links TODO: to fix the 'static links' of 'indicator/static/javascripts/*.js'
Diffstat (limited to '97suifangqa/apps/indicator/views.py')
-rw-r--r--97suifangqa/apps/indicator/views.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/97suifangqa/apps/indicator/views.py b/97suifangqa/apps/indicator/views.py
index 1175d62..a8ee9dc 100644
--- a/97suifangqa/apps/indicator/views.py
+++ b/97suifangqa/apps/indicator/views.py
@@ -110,7 +110,7 @@ def get_record_view(request, indicator_id, date_range, **kwargs):
## add_edit_category # {{{
@login_required
-def add_edit_category(request, category_id=None, template='simple.html'):
+def add_edit_category(request, category_id=None, template='indicator/simple.html'):
"""
add/edit category: 'models.IndicatorCategory'
for 'staff' or 'normal user'
@@ -153,7 +153,7 @@ def add_edit_category(request, category_id=None, template='simple.html'):
# add_edit_indicator # {{{
@login_required
-def add_edit_indicator(request, indicator_id=None, template='simple.html'):
+def add_edit_indicator(request, indicator_id=None, template='indicator/simple.html'):
"""
add/edit indicator: 'models.Indicator'
for 'staff' or 'normal user'
@@ -194,7 +194,7 @@ def add_edit_indicator(request, indicator_id=None, template='simple.html'):
## add_edit_unit {{{
@login_required
-def add_edit_unit(request, unit_id=None, template='simple.html'):
+def add_edit_unit(request, unit_id=None, template='indicator/simple.html'):
"""
add unit for indicator
"""
@@ -233,7 +233,7 @@ def add_edit_unit(request, unit_id=None, template='simple.html'):
## add_edit_confine {{{
@login_required
-def add_edit_confine(request, confine_id=None, template='simple.html'):
+def add_edit_confine(request, confine_id=None, template='indicator/simple.html'):
"""
InnateConfine
add confines for indicator
@@ -273,7 +273,7 @@ def add_edit_confine(request, confine_id=None, template='simple.html'):
## add_edit_record {{{
@login_required
-def add_edit_record(request, record_id=None, template='simple.html'):
+def add_edit_record(request, record_id=None, template='indicator/simple.html'):
"""
add/edit 'IndicatorRecord'
@@ -325,7 +325,7 @@ def add_edit_record(request, record_id=None, template='simple.html'):
## modify_record {{{
@login_required
-def modify_record(request, record_id=None, template='simple.html'):
+def modify_record(request, record_id=None, template='indicator/simple.html'):
"""
modify an existing IndicatorRecord
@@ -373,7 +373,7 @@ def modify_record(request, record_id=None, template='simple.html'):
## add_recordhistory {{{
@login_required
-def add_recordhistory(request, record_id, template='simple.html'):
+def add_recordhistory(request, record_id, template='indicator/simple.html'):
"""
add 'RecordHistory' for a record by given