From 3e34fa6a7ed18690b166a30a9147350738afce05 Mon Sep 17 00:00:00 2001 From: cajus Date: Thu, 19 Apr 2007 11:41:08 +0000 Subject: [PATCH] * Removed snapshot_ldap_base - where is it for? * fixed layout git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6123 594d385d-05f5-0310-b6e9-bd551577e9d8 --- contrib/gosa.conf | 3 - setup/class_setupStep_Config2.inc | 6 +- setup/setup_config1.tpl | 28 +++--- setup/setup_config2.tpl | 157 +++++++++++++++++++++--------- 4 files changed, 127 insertions(+), 67 deletions(-) diff --git a/contrib/gosa.conf b/contrib/gosa.conf index b4de9cee8..b3618e933 100644 --- a/contrib/gosa.conf +++ b/contrib/gosa.conf @@ -383,9 +383,6 @@ {if $cv.generic_settings.snapshot_base != ""} snapshot_base="{$cv.generic_settings.snapshot_base}" {/if} -{if $cv.generic_settings.snapshot_ldap_base != ""} - snapshot_ldap_base="{$cv.generic_settings.snapshot_ldap_base}" -{/if} {if $cv.generic_settings.snapshot_user != ""} snapshot_user="{$cv.generic_settings.snapshot_user}" {/if} diff --git a/setup/class_setupStep_Config2.inc b/setup/class_setupStep_Config2.inc index 4f4a9065d..78d609456 100644 --- a/setup/class_setupStep_Config2.inc +++ b/setup/class_setupStep_Config2.inc @@ -38,7 +38,6 @@ class Step_Config2 extends setup_step "wws_ou_active" => FALSE, "snapshot_active" => FALSE, "snapshot_base" => "ou=snapshots,%base%", - "snapshot_ldap_base" => "%base%", "snapshot_user" => "cn=ldapadmin,%base%", "snapshot_password" => "", "snapshot_server" => "%connection%"); @@ -72,7 +71,7 @@ class Step_Config2 extends setup_step { /* Update snapshot values, with already collected values */ foreach($this->generic_settings as $key => $value){ - foreach(array("snapshot_ldap_base","snapshot_base","snapshot_user","snapshot_server") as $attr){ + foreach(array("snapshot_base","snapshot_user","snapshot_server") as $attr){ foreach($this->parent->captured_values as $replace_name => $replace_value){ if(is_string($replace_value)) { $this->generic_settings[$attr] = preg_replace("/%".$replace_name."%/",$replace_value,$this->generic_settings[$attr]); @@ -141,9 +140,6 @@ class Step_Config2 extends setup_step if(isset($_POST['snapshot_server'])){ $this->generic_settings['snapshot_server'] = $_POST['snapshot_server']; } - if(isset($_POST['snapshot_ldap_base'])){ - $this->generic_settings['snapshot_ldap_base'] = $_POST['snapshot_ldap_base']; - } }else{ $this->generic_settings['snapshot_active'] = FALSE; } diff --git a/setup/setup_config1.tpl b/setup/setup_config1.tpl index 4a658a463..17bd18c6b 100644 --- a/setup/setup_config1.tpl +++ b/setup/setup_config1.tpl @@ -60,10 +60,10 @@ {if $id_settings.idgen_active == FALSE} - + {else} - + {/if} @@ -76,10 +76,10 @@ {if $id_settings.minid_active == FALSE} - + {else} - + {/if} @@ -90,18 +90,22 @@
-
+
+ +
+
+ {t}Hook for number base{/t} +
+
{if $base_hook_active == FALSE} - {t}Use hook{/t} {else} - {t}Use hook{/t} {/if} -
+
@@ -116,8 +120,6 @@ {html_options options=$crypt_methods selected=$encryption} -
-
@@ -151,7 +153,7 @@
-
+
{t}Password change hook{/t}
@@ -159,14 +161,14 @@ {if $pwd_rules.externalpwdhook_active == FALSE} - + {else} {/if}
-
+
{t}Use account expiration{/t}
diff --git a/setup/setup_config2.tpl b/setup/setup_config2.tpl index 2e07a049c..49a3e01a3 100644 --- a/setup/setup_config2.tpl +++ b/setup/setup_config2.tpl @@ -137,56 +137,121 @@
- - - - -
-

{t}Snapshots / Undo{/t}

-
+

{t}Snapshots / Undo{/t}

{if $generic_settings.snapshot_active == FALSE} +
+
{t}Enable{/t}
- {t}Snapshot base{/t}  -
- {t}Ldap base{/t}  -
- {t}Server{/t}  -
- {t}User{/t}  -
- {t}Password{/t}  - + onClick=' + changeState("snapshot_base"); + changeState("snapshot_ldap_base"); + changeState("snapshot_server"); + changeState("snapshot_user"); + changeState("snapshot_password");'>{t}Enable snapshots{/t} +
+
+
+
+
+ {t}Snapshot base{/t} +
+
+ +
+
+
+
+ {t}LDAP base{/t} +
+
+ +
+
+
+
+ {t}Server{/t} +
+
+ +
+
+
+
+ {t}User{/t} +
+
+ +
+
+
+
+ {t}Password{/t} +
+
+ +
+
+
+ {else} - {t}Enable{/t}
- {t}Snapshot base{/t}  -
- {t}Ldap base{/t}  -
- {t}Server{/t}  -
- {t}User{/t}  -
- {t}Password{/t}  - - {/if} +
+
+ {t}Enable snapshots{/t}
-
+
+
+
+
+ {t}Snapshot base{/t} +
+
+ +
+
+
+
+ {t}Ldap base{/t} +
+
+ +
+
+
+
+ {t}Server{/t} +
+
+ +
+
+
+
+ {t}User{/t} +
+
+ +
+
+
+
+ {t}Password{/t} +
+
+ +
+
+
+ {/if}
-- 2.30.2