From: hickert Date: Wed, 5 Dec 2007 13:04:43 +0000 (+0000) Subject: Added edit locking to setup. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f46f54004cbf4e19845d74f118884735f02f1a9d;p=gosa.git Added edit locking to setup. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8014 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/contrib/gosa.conf b/contrib/gosa.conf index 97c6ad3c1..26a9ee26d 100644 --- a/contrib/gosa.conf +++ b/contrib/gosa.conf @@ -442,6 +442,11 @@ compressed="true" {else} compressed="false" +{/if} +{if $cv.optional.uniq_identifier_active } + uniq_identifier="{$cv.optional.uniq_identifier}" +{else} + uniq_identifier="" {/if} lang="{$cv.lang_selected}" theme="{$cv.theme}" diff --git a/setup/class_setupStep_Config3.inc b/setup/class_setupStep_Config3.inc index f0f30057c..eaa5368b1 100644 --- a/setup/class_setupStep_Config3.inc +++ b/setup/class_setupStep_Config3.inc @@ -56,6 +56,9 @@ class Step_Config3 extends setup_step "notifydir" => "", "notifydir_active" => FALSE, + "uniq_identifier" => "entryCSN", + "uniq_identifier_active" => TRUE, + "kioskpath" => "/var/spool/kiosk", "kioskpath_active" => FALSE, @@ -84,6 +87,8 @@ class Step_Config3 extends setup_step { $smarty = get_smarty(); $smarty->assign("bool",array(FALSE => _("No"), TRUE => _("Yes"))); + $smarty->assign("uniq_identifiers",array( "entryCNS" => "entryCSN", + "contextCSN"=>"contextCSN" )); $smarty->assign("optional", $this->optional); foreach($this->attributes as $attr){ $smarty->assign($attr,$this->$attr); @@ -172,6 +177,15 @@ class Step_Config3 extends setup_step }else{ $this->optional['notifydir_active'] = FALSE; } + + if(isset($_POST['uniq_identifier_active'])){ + $this->optional['uniq_identifier_active'] = TRUE; + if(isset($_POST['uniq_identifier'])){ + $this->optional['uniq_identifier'] = get_post('uniq_identifier'); + } + }else{ + $this->optional['uniq_identifier_active'] = FALSE; + } } $tmp = $this->check(); diff --git a/setup/setup_config3.tpl b/setup/setup_config3.tpl index 3093c34cb..a3d2a55c3 100644 --- a/setup/setup_config3.tpl +++ b/setup/setup_config3.tpl @@ -65,7 +65,8 @@ onClick='changeState("ppd_path");'> {else} - + {/if} @@ -82,7 +83,8 @@ {else} - + {/if} @@ -100,7 +102,8 @@ {else} - + {/if} @@ -119,7 +122,8 @@ {else} - + {/if} @@ -137,7 +141,8 @@ {else} - + {/if} @@ -155,13 +160,35 @@ {else} - + {/if} +
+
+ {t}Enable edit locking{/t} +
+
+ {if $optional.uniq_identifier_active == FALSE} + + + {else} + + + {/if} +
+
+

{t}Login and session{/t}