From 52eebfa317cdc80739a19485880c2308c36eed91 Mon Sep 17 00:00:00 2001 From: Alvin Li Date: Tue, 27 Aug 2013 07:29:36 +0800 Subject: * added plugin 'qtip2' to provide 'tooltips'; employed in adding/modifying record data to provide validation info; * added 'ajax_modify_record' url; removed 'ajax_edit_history_data' url; * added 'indicator.views.ajax_modify_record()' for 'EditHistoryData.html'; * renamed 'indicator.views.add_recordhistory()' to 'add_recordhistory_view()'; * added 'indicator.tools.add_recordhistory()'; * added 'pytz' to 'env/requirements.pip'; 'pytz' to handle timezone in python & django (recommended) --- 97suifangqa/apps/indicator/urls.py | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to '97suifangqa/apps/indicator/urls.py') diff --git a/97suifangqa/apps/indicator/urls.py b/97suifangqa/apps/indicator/urls.py index 93f3c7b..5c4f5af 100644 --- a/97suifangqa/apps/indicator/urls.py +++ b/97suifangqa/apps/indicator/urls.py @@ -82,10 +82,6 @@ urlpatterns += patterns('indicator.views', url(r'^ajax/close_sub_title/$', 'ajax_close_sub_title', name='indicator_ajax_closesubtitle'), - # edit_history_data - url(r'^ajax/edit_history_data/$', - 'ajax_edit_history_data', - name='indicator_ajax_edithistorydata'), # get_card_data_chart url(r'^ajax/get_card_data_chart/$', 'ajax_get_card_data_chart', @@ -94,6 +90,10 @@ urlpatterns += patterns('indicator.views', url(r'^ajax/get_card_data_table/$', 'ajax_get_card_data_table', name='indicator_ajax_getcarddatatable'), + # modify_record + url(r'^ajax/modify_record/$', + 'ajax_modify_record', + name='indicator_ajax_modifyrecord'), # unfollow_indicator url(r'^ajax/unfollow_indicator/$', 'ajax_unfollow_indicator', @@ -172,10 +172,9 @@ urlpatterns += patterns('indicator.views', url(r'^edit/record/(?P\d+)/$', 'add_edit_record', name='edit_record'), ## add record history (modify history NOT allowed) - url(r'^add/recordhistory/$', 'add_recordhistory', - name='add_recordhistory'), - url(r'^add/recordhistory/(?P\d+)/$', 'add_recordhistory', - name='add_recordhistory'), + url(r'^add/recordhistory/(?P\d+)/$', + 'add_recordhistory_view', + name='add_recordhistory_view'), ) -- cgit v1.2.2