From e9d7622d55ca8456e36ea8a178e8b0286250fd1d Mon Sep 17 00:00:00 2001 From: rub Date: Wed, 1 Oct 2008 20:39:06 +0000 Subject: Purpose of datepicker with jQuery. I will open a french topic on forum to debate of implementation and possibles changes. git-svn-id: http://piwigo.org/svn/trunk@2632 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/template/goto/element_set_global.tpl | 9 ++ admin/template/goto/element_set_unit.tpl | 7 ++ admin/template/goto/history.tpl | 12 +++ admin/template/goto/include/datepicker.inc.tpl | 124 +++++++++++++++++++++++++ admin/template/goto/picture_modify.tpl | 10 ++ 5 files changed, 162 insertions(+) create mode 100644 admin/template/goto/include/datepicker.inc.tpl (limited to 'admin/template/goto') diff --git a/admin/template/goto/element_set_global.tpl b/admin/template/goto/element_set_global.tpl index 3bdf5688c..649948854 100644 --- a/admin/template/goto/element_set_global.tpl +++ b/admin/template/goto/element_set_global.tpl @@ -1,5 +1,13 @@ {* $Id$ *} +{include file='include/datepicker.inc.tpl'} + +{literal} + +{/literal} +

{'Batch management'|@translate}

{$CATEGORIES_NAV}

@@ -136,6 +144,7 @@ size="4" maxlength="4" value="{$DATE_CREATION_YEAR}" /> + diff --git a/admin/template/goto/element_set_unit.tpl b/admin/template/goto/element_set_unit.tpl index 4361efff2..6f2fc5569 100644 --- a/admin/template/goto/element_set_unit.tpl +++ b/admin/template/goto/element_set_unit.tpl @@ -1,4 +1,7 @@ {* $Id$ *} + +{include file='include/datepicker.inc.tpl'} + {known_script id="jquery.growfield" src=$ROOT_URL|@cat:"template-common/lib/plugins/jquery.growfield.packed.js"} diff --git a/admin/template/goto/history.tpl b/admin/template/goto/history.tpl index f3c3575b6..ffbf0994d 100644 --- a/admin/template/goto/history.tpl +++ b/admin/template/goto/history.tpl @@ -1,4 +1,14 @@ {* $Id$ *} + +{include file='include/datepicker.inc.tpl'} + +{literal} + +{/literal} +

{'History'|@translate} {$TABSHEET_TITLE}

@@ -19,6 +29,7 @@ {html_options options=$month_list selected=$START_MONTH_SELECTED} + diff --git a/admin/template/goto/include/datepicker.inc.tpl b/admin/template/goto/include/datepicker.inc.tpl new file mode 100644 index 000000000..8eb7016bd --- /dev/null +++ b/admin/template/goto/include/datepicker.inc.tpl @@ -0,0 +1,124 @@ +{* $Id$ *} +{known_script id="jquery.ui.datepicker" src=$ROOT_URL|@cat:"template-common/lib/ui/ui.datepicker.js"} +{known_script id="jquery.ui.datepicker-$lang_info.code" src=$ROOT_URL|@cat:"template-common/lib/ui/i18n/ui.datepicker-"|@cat:$lang_info.code|@cat:".js"} + + + +{literal} + +{/literal} + + diff --git a/admin/template/goto/picture_modify.tpl b/admin/template/goto/picture_modify.tpl index a92018732..8f2aacc03 100644 --- a/admin/template/goto/picture_modify.tpl +++ b/admin/template/goto/picture_modify.tpl @@ -1,4 +1,13 @@ {* $Id$ *} + +{include file='include/datepicker.inc.tpl'} + +{literal} + +{/literal} + {known_script id="jquery.growfield" src=$ROOT_URL|@cat:"template-common/lib/plugins/jquery.growfield.packed.js"}