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'; --- .../jquery-ui/demos/datepicker/alt-field.html | 29 ++++++++++++ .../jquery-ui/demos/datepicker/animation.html | 51 +++++++++++++++++++++ .../jquery-ui/demos/datepicker/buttonbar.html | 28 +++++++++++ .../jquery-ui/demos/datepicker/date-formats.html | 40 ++++++++++++++++ .../jquery-ui/demos/datepicker/date-range.html | 44 ++++++++++++++++++ .../jquery-ui/demos/datepicker/default.html | 26 +++++++++++ .../demos/datepicker/dropdown-month-year.html | 29 ++++++++++++ .../jquery-ui/demos/datepicker/icon-trigger.html | 30 ++++++++++++ .../jquery-ui/demos/datepicker/images/calendar.gif | Bin 0 -> 269 bytes .../plugins/jquery-ui/demos/datepicker/index.html | 27 +++++++++++ .../plugins/jquery-ui/demos/datepicker/inline.html | 26 +++++++++++ .../demos/datepicker/jquery.ui.datepicker-ar.js | 23 ++++++++++ .../demos/datepicker/jquery.ui.datepicker-fr.js | 25 ++++++++++ .../demos/datepicker/jquery.ui.datepicker-he.js | 23 ++++++++++ .../demos/datepicker/jquery.ui.datepicker-zh-TW.js | 23 ++++++++++ .../jquery-ui/demos/datepicker/localization.html | 41 +++++++++++++++++ .../jquery-ui/demos/datepicker/min-max.html | 26 +++++++++++ .../demos/datepicker/multiple-calendars.html | 29 ++++++++++++ .../jquery-ui/demos/datepicker/other-months.html | 30 ++++++++++++ .../jquery-ui/demos/datepicker/show-week.html | 32 +++++++++++++ 20 files changed, 582 insertions(+) create mode 100644 97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker/alt-field.html create mode 100644 97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker/animation.html create mode 100644 97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker/buttonbar.html create mode 100644 97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker/date-formats.html create mode 100644 97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker/date-range.html create mode 100644 97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker/default.html create mode 100644 97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker/dropdown-month-year.html create mode 100644 97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker/icon-trigger.html create mode 100644 97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker/images/calendar.gif create mode 100644 97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker/index.html create mode 100644 97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker/inline.html create mode 100644 97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker/jquery.ui.datepicker-ar.js create mode 100644 97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker/jquery.ui.datepicker-fr.js create mode 100644 97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker/jquery.ui.datepicker-he.js create mode 100644 97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker/jquery.ui.datepicker-zh-TW.js create mode 100644 97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker/localization.html create mode 100644 97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker/min-max.html create mode 100644 97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker/multiple-calendars.html create mode 100644 97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker/other-months.html create mode 100644 97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker/show-week.html (limited to '97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker') diff --git a/97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker/alt-field.html b/97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker/alt-field.html new file mode 100644 index 0000000..98bf0ae --- /dev/null +++ b/97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker/alt-field.html @@ -0,0 +1,29 @@ + + + + + jQuery UI Datepicker - Populate alternate field + + + + + + + + + + +

Date:  

+ +
+

Populate an alternate field with its own date format whenever a date is selected using the altField and altFormat options. This feature could be used to present a human-friendly date for user selection, while passing a more computer-friendly date through for further processing.

+
+ + diff --git a/97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker/animation.html b/97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker/animation.html new file mode 100644 index 0000000..a9872e5 --- /dev/null +++ b/97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker/animation.html @@ -0,0 +1,51 @@ + + + + + jQuery UI Datepicker - Animations + + + + + + + + + + + + + + + + + +

Date:

+ +

Animations:
+ +

+ +
+

Use different animations when opening or closing the datepicker. Choose an animation from the dropdown, then click on the input to see its effect. You can use one of the three standard animations or any of the UI Effects.

+
+ + diff --git a/97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker/buttonbar.html b/97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker/buttonbar.html new file mode 100644 index 0000000..c430872 --- /dev/null +++ b/97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker/buttonbar.html @@ -0,0 +1,28 @@ + + + + + jQuery UI Datepicker - Display button bar + + + + + + + + + + +

Date:

+ +
+

Display a button for selecting Today's date and a Done button for closing the calendar with the boolean showButtonPanel option. Each button is enabled by default when the bar is displayed, but can be turned off with additional options. Button text is customizable.

+
+ + diff --git a/97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker/date-formats.html b/97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker/date-formats.html new file mode 100644 index 0000000..44cfba8 --- /dev/null +++ b/97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker/date-formats.html @@ -0,0 +1,40 @@ + + + + + jQuery UI Datepicker - Format date + + + + + + + + + + +

Date:

+ +

Format options:
+ +

+ +
+

Display date feedback in a variety of ways. Choose a date format from the dropdown, then click on the input and select a date to see it in that format.

+
+ + diff --git a/97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker/date-range.html b/97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker/date-range.html new file mode 100644 index 0000000..7a4dbfc --- /dev/null +++ b/97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker/date-range.html @@ -0,0 +1,44 @@ + + + + + jQuery UI Datepicker - Select a Date Range + + + + + + + + + + + + + + + +
+

Select the date range to search for.

+
+ + diff --git a/97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker/default.html b/97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker/default.html new file mode 100644 index 0000000..1d01133 --- /dev/null +++ b/97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker/default.html @@ -0,0 +1,26 @@ + + + + + jQuery UI Datepicker - Default functionality + + + + + + + + + + +

Date:

+ +
+

The datepicker is tied to a standard form input field. Focus on the input (click, or use the tab key) to open an interactive calendar in a small overlay. Choose a date, click elsewhere on the page (blur the input), or hit the Esc key to close. If a date is chosen, feedback is shown as the input's value.

+
+ + diff --git a/97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker/dropdown-month-year.html b/97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker/dropdown-month-year.html new file mode 100644 index 0000000..1a04ef7 --- /dev/null +++ b/97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker/dropdown-month-year.html @@ -0,0 +1,29 @@ + + + + + jQuery UI Datepicker - Display month & year menus + + + + + + + + + + +

Date:

+ +
+

Show month and year dropdowns in place of the static month/year header to facilitate navigation through large timeframes. Add the boolean changeMonth and changeYear options.

+
+ + diff --git a/97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker/icon-trigger.html b/97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker/icon-trigger.html new file mode 100644 index 0000000..d956168 --- /dev/null +++ b/97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker/icon-trigger.html @@ -0,0 +1,30 @@ + + + + + jQuery UI Datepicker - Icon trigger + + + + + + + + + + +

Date:

+ +
+

Click the icon next to the input field to show the datepicker. Set the datepicker to open on focus (default behavior), on icon click, or both.

+
+ + diff --git a/97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker/images/calendar.gif b/97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker/images/calendar.gif new file mode 100644 index 0000000..d0abaa7 Binary files /dev/null and b/97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker/images/calendar.gif differ diff --git a/97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker/index.html b/97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker/index.html new file mode 100644 index 0000000..eb903a2 --- /dev/null +++ b/97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker/index.html @@ -0,0 +1,27 @@ + + + + + jQuery UI Datepicker Demos + + + + + + + diff --git a/97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker/inline.html b/97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker/inline.html new file mode 100644 index 0000000..5c52b3d --- /dev/null +++ b/97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker/inline.html @@ -0,0 +1,26 @@ + + + + + jQuery UI Datepicker - Display inline + + + + + + + + + + +Date:
+ +
+

Display the datepicker embedded in the page instead of in an overlay. Simply call .datepicker() on a div instead of an input.

+
+ + diff --git a/97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker/jquery.ui.datepicker-ar.js b/97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker/jquery.ui.datepicker-ar.js new file mode 100644 index 0000000..cef0f08 --- /dev/null +++ b/97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker/jquery.ui.datepicker-ar.js @@ -0,0 +1,23 @@ +/* Arabic Translation for jQuery UI date picker plugin. */ +/* Khaled Alhourani -- me@khaledalhourani.com */ +/* NOTE: monthNames are the original months names and they are the Arabic names, not the new months name فبراير - يناير and there isn't any Arabic roots for these months */ +jQuery(function($){ + $.datepicker.regional['ar'] = { + closeText: 'إغلاق', + prevText: '<السابق', + nextText: 'التالي>', + currentText: 'اليوم', + monthNames: ['كانون الثاني', 'شباط', 'آذار', 'نيسان', 'مايو', 'حزيران', + 'تموز', 'آب', 'أيلول', 'تشرين الأول', 'تشرين الثاني', 'كانون الأول'], + monthNamesShort: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12'], + dayNames: ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'], + dayNamesShort: ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'], + dayNamesMin: ['ح', 'ن', 'ث', 'ر', 'خ', 'ج', 'س'], + weekHeader: 'أسبوع', + dateFormat: 'dd/mm/yy', + firstDay: 6, + isRTL: true, + showMonthAfterYear: false, + yearSuffix: ''}; + $.datepicker.setDefaults($.datepicker.regional['ar']); +}); diff --git a/97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker/jquery.ui.datepicker-fr.js b/97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker/jquery.ui.datepicker-fr.js new file mode 100644 index 0000000..934afd1 --- /dev/null +++ b/97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker/jquery.ui.datepicker-fr.js @@ -0,0 +1,25 @@ +/* French initialisation for the jQuery UI date picker plugin. */ +/* Written by Keith Wood (kbwood{at}iinet.com.au), + Stéphane Nahmani (sholby@sholby.net), + Stéphane Raimbault */ +jQuery(function($){ + $.datepicker.regional['fr'] = { + closeText: 'Fermer', + prevText: 'Précédent', + nextText: 'Suivant', + currentText: 'Aujourd\'hui', + monthNames: ['Janvier','Février','Mars','Avril','Mai','Juin', + 'Juillet','Août','Septembre','Octobre','Novembre','Décembre'], + monthNamesShort: ['Janv.','Févr.','Mars','Avril','Mai','Juin', + 'Juil.','Août','Sept.','Oct.','Nov.','Déc.'], + dayNames: ['Dimanche','Lundi','Mardi','Mercredi','Jeudi','Vendredi','Samedi'], + dayNamesShort: ['Dim.','Lun.','Mar.','Mer.','Jeu.','Ven.','Sam.'], + dayNamesMin: ['D','L','M','M','J','V','S'], + weekHeader: 'Sem.', + dateFormat: 'dd/mm/yy', + firstDay: 1, + isRTL: false, + showMonthAfterYear: false, + yearSuffix: ''}; + $.datepicker.setDefaults($.datepicker.regional['fr']); +}); diff --git a/97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker/jquery.ui.datepicker-he.js b/97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker/jquery.ui.datepicker-he.js new file mode 100644 index 0000000..b9e8dee --- /dev/null +++ b/97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker/jquery.ui.datepicker-he.js @@ -0,0 +1,23 @@ +/* Hebrew initialisation for the UI Datepicker extension. */ +/* Written by Amir Hardon (ahardon at gmail dot com). */ +jQuery(function($){ + $.datepicker.regional['he'] = { + closeText: 'סגור', + prevText: '<הקודם', + nextText: 'הבא>', + currentText: 'היום', + monthNames: ['ינואר','פברואר','מרץ','אפריל','מאי','יוני', + 'יולי','אוגוסט','ספטמבר','אוקטובר','נובמבר','דצמבר'], + monthNamesShort: ['ינו','פבר','מרץ','אפר','מאי','יוני', + 'יולי','אוג','ספט','אוק','נוב','דצמ'], + dayNames: ['ראשון','שני','שלישי','רביעי','חמישי','שישי','שבת'], + dayNamesShort: ['א\'','ב\'','ג\'','ד\'','ה\'','ו\'','שבת'], + dayNamesMin: ['א\'','ב\'','ג\'','ד\'','ה\'','ו\'','שבת'], + weekHeader: 'Wk', + dateFormat: 'dd/mm/yy', + firstDay: 0, + isRTL: true, + showMonthAfterYear: false, + yearSuffix: ''}; + $.datepicker.setDefaults($.datepicker.regional['he']); +}); diff --git a/97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker/jquery.ui.datepicker-zh-TW.js b/97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker/jquery.ui.datepicker-zh-TW.js new file mode 100644 index 0000000..b9105ea --- /dev/null +++ b/97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker/jquery.ui.datepicker-zh-TW.js @@ -0,0 +1,23 @@ +/* Chinese initialisation for the jQuery UI date picker plugin. */ +/* Written by Ressol (ressol@gmail.com). */ +jQuery(function($){ + $.datepicker.regional['zh-TW'] = { + closeText: '關閉', + prevText: '<上月', + nextText: '下月>', + currentText: '今天', + monthNames: ['一月','二月','三月','四月','五月','六月', + '七月','八月','九月','十月','十一月','十二月'], + monthNamesShort: ['一月','二月','三月','四月','五月','六月', + '七月','八月','九月','十月','十一月','十二月'], + dayNames: ['星期日','星期一','星期二','星期三','星期四','星期五','星期六'], + dayNamesShort: ['周日','周一','周二','周三','周四','周五','周六'], + dayNamesMin: ['日','一','二','三','四','五','六'], + weekHeader: '周', + dateFormat: 'yy/mm/dd', + firstDay: 1, + isRTL: false, + showMonthAfterYear: true, + yearSuffix: '年'}; + $.datepicker.setDefaults($.datepicker.regional['zh-TW']); +}); diff --git a/97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker/localization.html b/97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker/localization.html new file mode 100644 index 0000000..67d55fd --- /dev/null +++ b/97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker/localization.html @@ -0,0 +1,41 @@ + + + + + jQuery UI Datepicker - Localize calendar + + + + + + + + + + + + + + +

Date:   +

+ +
+

Localize the datepicker calendar language and format (English / Western formatting is the default). The datepicker includes built-in support for languages that read right-to-left, such as Arabic and Hebrew.

+
+ + diff --git a/97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker/min-max.html b/97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker/min-max.html new file mode 100644 index 0000000..480282e --- /dev/null +++ b/97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker/min-max.html @@ -0,0 +1,26 @@ + + + + + jQuery UI Datepicker - Restrict date range + + + + + + + + + + +

Date:

+ +
+

Restrict the range of selectable dates with the minDate and maxDate options. Set the beginning and end dates as actual dates (new Date(2009, 1 - 1, 26)), as a numeric offset from today (-20), or as a string of periods and units ('+1M +10D'). For the last, use 'D' for days, 'W' for weeks, 'M' for months, or 'Y' for years.

+
+ + diff --git a/97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker/multiple-calendars.html b/97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker/multiple-calendars.html new file mode 100644 index 0000000..6d06a47 --- /dev/null +++ b/97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker/multiple-calendars.html @@ -0,0 +1,29 @@ + + + + + jQuery UI Datepicker - Display multiple months + + + + + + + + + + +

Date:

+ +
+

Set the numberOfMonths option to an integer of 2 or more to show multiple months in a single datepicker.

+
+ + diff --git a/97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker/other-months.html b/97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker/other-months.html new file mode 100644 index 0000000..5242869 --- /dev/null +++ b/97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker/other-months.html @@ -0,0 +1,30 @@ + + + + + jQuery UI Datepicker - Dates in other months + + + + + + + + + + +

Date:

+ +
+

The datepicker can show dates that come from other than the main month + being displayed. These other dates can also be made selectable.

+
+ + diff --git a/97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker/show-week.html b/97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker/show-week.html new file mode 100644 index 0000000..0c1264e --- /dev/null +++ b/97suifangqa/staticfiles/plugins/jquery-ui/demos/datepicker/show-week.html @@ -0,0 +1,32 @@ + + + + + jQuery UI Datepicker - Show week of the year + + + + + + + + + + +

Date:

+ +
+

The datepicker can show the week of the year. The default calculation follows + the ISO 8601 definition: the week starts on Monday, the first week of the year + contains the first Thursday of the year. This means that some days from one + year may be placed into weeks 'belonging' to another year.

+
+ + -- cgit v1.2.2