From f133b015da20a4fb2c6173e4fc514f1ca5adbfae Mon Sep 17 00:00:00 2001 From: Andreas Brachold Date: Sun, 21 Jun 2009 11:25:33 +0000 Subject: * HTTPD: Add widget for input time based values * RECORDS: redit remove useless edit of recording 'priority' --- skins/deltab/widgets/time.tmpl | 16 ++++++++++++++++ skins/jason/form.js | 9 +++++++-- skins/stone/widgets/time.tmpl | 13 +++++++++++++ skins/xstyle/widgets/time.tmpl | 16 ++++++++++++++++ 4 files changed, 52 insertions(+), 2 deletions(-) create mode 100644 skins/deltab/widgets/time.tmpl create mode 100644 skins/stone/widgets/time.tmpl create mode 100644 skins/xstyle/widgets/time.tmpl diff --git a/skins/deltab/widgets/time.tmpl b/skins/deltab/widgets/time.tmpl new file mode 100644 index 0000000..15d3f42 --- /dev/null +++ b/skins/deltab/widgets/time.tmpl @@ -0,0 +1,16 @@ + + + + + + + + +

+ +

+ + + + + diff --git a/skins/jason/form.js b/skins/jason/form.js index c0a5fc0..e818c63 100644 --- a/skins/jason/form.js +++ b/skins/jason/form.js @@ -96,6 +96,7 @@ Ext.extend(Ext.xxv.Question, Ext.Window, { ,value: r[i].data.valuedef ,anchor: '100%' // anchor width by percentage ,stateful: false + ,tabIndex: i + 1 }; if(r[i].data.valuereq){ config.allowBlank = false; @@ -233,11 +234,15 @@ Ext.extend(Ext.xxv.Question, Ext.Window, { config.editable = false; break; - /*case 'date': + case 'date': + var today = new Date(); + today.clearTime(); config.xtype = 'datefield'; - break;*/ + config.minValue = today; + break; case 'time': config.xtype = 'timefield'; + config.increment = 15; break; case 'integer': config.xtype = 'numberfield'; diff --git a/skins/stone/widgets/time.tmpl b/skins/stone/widgets/time.tmpl new file mode 100644 index 0000000..8d12525 --- /dev/null +++ b/skins/stone/widgets/time.tmpl @@ -0,0 +1,13 @@ + + +> + + + + + + + + + + diff --git a/skins/xstyle/widgets/time.tmpl b/skins/xstyle/widgets/time.tmpl new file mode 100644 index 0000000..4e984bc --- /dev/null +++ b/skins/xstyle/widgets/time.tmpl @@ -0,0 +1,16 @@ + + + + + + + + + > + + + + > + + + -- cgit v1.2.3