From b2673ae8036454a0e616a2891abc15da79f466e7 Mon Sep 17 00:00:00 2001
From: ftimme <ft@falkotimme.com>
Date: Thu, 29 Sep 2011 07:06:43 -0400
Subject: [PATCH] - Added datepicker widget to the "Virtual Servers" form.
---
interface/web/vm/openvz_vm_edit.php | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/interface/web/vm/openvz_vm_edit.php b/interface/web/vm/openvz_vm_edit.php
index f79a90b..2552c9d 100644
--- a/interface/web/vm/openvz_vm_edit.php
+++ b/interface/web/vm/openvz_vm_edit.php
@@ -166,6 +166,17 @@
$app->tpl->setVar("edit_disabled", 0);
}
+ // Datepicker
+ $date_format = $app->lng('conf_format_dateshort');
+ $trans = array("d" => "dd", "m" => "mm", "Y" => "yy");
+ $date_format = strtr($date_format, $trans);
+ $app->tpl->setVar("date_format", $date_format);
+ $app->tpl->setVar("datepicker_dayNamesMin", $app->lng('datepicker_dayNamesMin'));
+ $app->tpl->setVar("datepicker_dayNames", $app->lng('datepicker_dayNames'));
+ $app->tpl->setVar("datepicker_monthNamesShort", $app->lng('datepicker_monthNamesShort'));
+ $app->tpl->setVar("datepicker_nextText", $app->lng('datepicker_nextText'));
+ $app->tpl->setVar("datepicker_prevText", $app->lng('datepicker_prevText'));
+
parent::onShowEnd();
}
--
Gitblit v1.9.1