From f5c889e36038366a0861d26953abcada23540423 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Mon, 09 Mar 2009 13:12:12 -0400
Subject: [PATCH] fixed database_edit.htm
---
interface/web/sites/database_edit.php | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/interface/web/sites/database_edit.php b/interface/web/sites/database_edit.php
index 485fb80..377f321 100644
--- a/interface/web/sites/database_edit.php
+++ b/interface/web/sites/database_edit.php
@@ -173,6 +173,13 @@
$app->tpl->setVar("database_name_prefix", $dbname_prefix);
$app->tpl->setVar("database_user_prefix", $dbuser_prefix);
}
+
+ if($this->id > 0) {
+ //* we are editing a existing record
+ $app->tpl->setVar("edit_disabled", 'disabled="disabled"');
+ } else {
+ $app->tpl->setVar("edit_disabled", '');
+ }
parent::onShowEnd();
}
--
Gitblit v1.9.1